Update Product Prices

Updated 1 week ago ​by nussi

Overview

In order to update product prices, you can consume the endpoint presented in this article. In order to consume it, you must:

  • Be authenticated user

For information on how you can authenticate, see: Authentication

As soon as you do authentication and receive a valid token, it needs to be passed to the service call.

Endpoint

Example for such endpoint for TT server is:

https://tt.api.sellercloud.com/rest/api/Catalog/{id}/Prices​​

For your server endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/Catalog/{id}/Prices

Request

Information about expected request parameters can be found on swagger UI https://tt/api.sellercloud.com/rest/swagger.

  • Method Type: HttpPut
  • Authorization: Use Bearer Token (where 'Token' is the token received from token authentication)
  • Header info: Content-Type: application/json
  • Parameters: ID of existing product
  • Request Body:
{
"SitePrice": 0,
"ChannelsPrices": [
{
"ChannelID": "Local_Store",
"Price": 0,
"UseDefaultSitePrice": true
}
]
}

Parameter

Data Type

Description

Is Required

SitePrice

decimal

Product site price.

This is the price that will be used for the channels that have "UseDefaultSItePrice" set to 'true'.

Do not provide or set to "null" if no update is needed.

false

ChannelPrices

Array

List of channel prices to update.

Do not provide or set to "null" if no update is needed.

false

ChannelPrice.ChannelID

enum

The ID of the channel.

Possible values can be found here.

true

ChannelPrice.Price

decimal

Product price for the channel.

Can be updated only if "UseDefaultSItePrice" is set to 'false'.

To update a channel price that uses the default site price, the 'SitePrice' has to be updated which will update the price of all channels that uses the default site price.

Do not provide or set to "null" if no update is needed.

false

ChannelPrice.UseDefaultSItePrice

bool

Indicates if the channel uses the default site price for the product.

Note: For channel eBay the UseDefaultSitePrice can only be set to true when client setting 'Enable Default Price for eBay' is enabled and the Company is configured to allow default price for eBay.

Do not provide or set to "null" if no update is needed.

false

Response

  • If user is authenticated and vendor prices update is successful, then response will be Status Code 200 => OK
  • If user is not authenticated, then response will be Status Code 401 => Not Valid Token
  • In case of error, response will be Status Code 500 => Internal Server Error


How did we do?