{"_id":"5b19742cb3baf90003cab4ff","category":{"_id":"5b19742cb3baf90003cab4ec","version":"5b19742cb3baf90003cab5ae","project":"57336fd5a6a9c40e00e13a0b","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-05-12T15:22:00.041Z","from_sync":false,"order":4,"slug":"coupon","title":"Catalog"},"project":"57336fd5a6a9c40e00e13a0b","user":"560d5913af97231900938124","parentDoc":null,"version":{"_id":"5b19742cb3baf90003cab5ae","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"5adf4e59ac13b80003d23152","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z","categories":["5b19742cb3baf90003cab4e8","5b19742cb3baf90003cab4e9","5b19742cb3baf90003cab4ea","5b19742cb3baf90003cab4eb","5b19742cb3baf90003cab4ec","5b19742cb3baf90003cab4ed","5b19742cb3baf90003cab4ee","5b19742cb3baf90003cab4ef","5b19742cb3baf90003cab4f0","5b19742cb3baf90003cab4f1","5b19742cb3baf90003cab4f2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"3.26 Release","version_clean":"8976.0.0-Extended","version":"8976-Extended"},"githubsync":"","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-12T15:08:27.997Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"put","results":{"codes":[]},"settings":"","auth":"optional","params":[],"url":""},"isReference":true,"order":1,"body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/catalog/products/:product-id</span>\n\n<hr>\n\n##Documentation\nThe Update Product request enables you to update the settings of an existing product in your account.\n\n###Request Content\n`product` &nbsp;&nbsp;&nbsp;<span style=\"color:#F37500\">**required**</span>, contains the following properties (see [product](doc:product)):\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-status` *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-name` *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-short-description` *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-long-description` *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-info-url` *decimal* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-image` *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-merchant-descriptor` *string* &nbsp;&nbsp;&nbsp;optional\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`product-support-email` *string* &nbsp;&nbsp;&nbsp;optional\n\n###Response Details\nIf successful, the response HTTP status code is 204 No Content.\nThere is no content in the response body.\nFor details about possible errors, see: [General Errors](doc:general-errors) and [Catalog Errors](doc:catalog-errors).\n\n<hr>\n\n##Examples\n\n###Request Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -v -X PUT https://sandbox.bluesnap.com/services/2/catalog/products/307634 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<product xmlns=\\\"http://ws.plimus.com\\\">\\n  <product-name>new product name</product-name>\\n  <product-short-description>new short description</product-short-description>\\n  <product-long-description>new long description</product-long-description>\\n  <product-info-url>http://www.myurl.com</product-info-url>\\n  <product-merchant-descriptor>merchantname123456</product-merchant-descriptor>\\n  <product-support-email>product:::at:::newproduct.com</product-support-email>\\n</product>'\",\n      \"language\": \"curl\",\n      \"name\": \"Update Product Request: change product settings\"\n    },\n    {\n      \"code\": \"curl -v -X PUT https://sandbox.bluesnap.com/services/2/catalog/products/307634 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \\\\\\n-d '\\n<product xmlns=\\\"http://ws.plimus.com\\\">\\n  <product-status>D</product-status>\\n</product>'\",\n      \"language\": \"curl\",\n      \"name\": \"delete product\"\n    }\n  ]\n}\n[/block]\n###Response Examples\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"HTTP/ 1.1 204 No Content\",\n      \"language\": \"http\",\n      \"name\": \"Update Product Response: 204 No Content\"\n    }\n  ]\n}\n[/block]\n<hr>\n\n##Example Descriptions\n \n###Update Product: change product settings\nThis example shows how to update product settings. Simply include the fields that you want to update in the request, with the new values.\n\n###Update Product: delete product\nThis 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).\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","excerpt":"","slug":"update-product","type":"endpoint","title":"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>product@newproduct.com</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