Update Product

Definition

https://sandbox.bluesnap.com/services/2/catalog/products/:product-id


Documentation

The Update Product request enables you to update the settings of an existing product in your account.

Request Content

product    required, contains the following properties (see product):
     product-status string    optional
     product-name string    optional
     product-short-description string    optional
     product-long-description string    optional
     product-info-url decimal    optional
     product-image string    optional
     product-merchant-descriptor string    optional
     product-support-email string    optional

Response Details

If successful, the response HTTP status code is 204 No Content.
There is no content in the response body.
For details about possible errors, see: General Errors and Catalog Errors.


Examples

Request Examples

curl -v -X PUT https://sandbox.bluesnap.com/services/2/catalog/products/307634 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<product xmlns="http://ws.plimus.com">
  <product-name>new product name</product-name>
  <product-short-description>new short description</product-short-description>
  <product-long-description>new long description</product-long-description>
  <product-info-url>http://www.myurl.com</product-info-url>
  <product-merchant-descriptor>merchantname123456</product-merchant-descriptor>
  <product-support-email>[email protected]</product-support-email>
</product>'
curl -v -X PUT https://sandbox.bluesnap.com/services/2/catalog/products/307634 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<product xmlns="http://ws.plimus.com">
  <product-status>D</product-status>
</product>'

Response Examples

HTTP/ 1.1 204 No Content

Example Descriptions

Update Product: change product settings

This example shows how to update product settings. Simply include the fields that you want to update in the request, with the new values.

Update Product: delete product

This example shows how to delete a product by entering D in the product-status field. Deleting a product also deletes all of that product's SKUs (contracts).


Back to Top

Language
Authorization
:
Click Try It! to start a request and see the response here!