Update Vendor Product

Overview

In order to update an existing vendor product, 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

NOTE: Endpoint “PUT /api/Vendors/{vendorId}/products/{productSKU}” is obsolete as it does not support special characters in the productID. Use the new endpoint presented in this article.

Example for such endpoint for TT server is:

https://tt.api.sellercloud.com/rest/api/Vendors/{vendorId}/products​​

For your server endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/Vendors/{vendorId}/products

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
  • Request Body:

ParameterData TypeDescriptionIs Required
ProductIDstringID if existing producttrue
PricedecimalProduct site price

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

false
PricePerCasedecimalProduct price per case

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

false
QtyPerCaseintegerProduct quantity per case

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

false
IsAvailableboolIndicates if product is available

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

false
QtyintegerProduct quantity

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

false

Response

  • If user is authenticated and vendor product update is successful, then response will be Status Code 200 => OK
  • If no product is found for the specified vendor id and product SKU, then response will be Status Code 404 => Not Found
  • 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

Was this article helpful?

Next
Update Basic Catalog Info for Single Product