{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"optional","examples":{"codes":[]},"method":"get","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Retrieve Product","type":"endpoint","slug":"retrieve-product","excerpt":"","body":"##Definition\nhttps<span>://sandbox.bluesnap.com/services/2/catalog/products/:product-id</span>\n\n<hr>\n\n##Documentation\nThe Retrieve Product request enables you to retrieve details of an existing product in your account.\nThe response includes the URLs of all linked SKUs.\n\n###Request Content\nEnter the `product-id` into the web service URL, in the format:\n`services/2/catalog/products/{product-id}`\n\nFor example:\n`services/2/catalog/products/12345`\n\n###Response Details\nIf successful, the response HTTP status code is 200 OK.\nThe response contains the retrieved `product` resource (see [product](doc:product)).\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 Example\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"curl -v -X GET https://sandbox.bluesnap.com/services/2/catalog/products/307634 \\\\\\n-H 'Content-Type: application/xml' \\\\\\n-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='\",\n \"language\": \"curl\",\n \"name\": \"Retrieve Product Request\"\n }\n ]\n}\n[/block]\n###Response Example\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<product xmlns=\\\"http://ws.plimus.com\\\">\\n <product-status>A</product-status>\\n <product-name>new product</product-name>\\n <product-short-description>This is the product short description</product-short-description>\\n <product-long-description>This is the product 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-skus>\\n <url>https://sandbox.bluesnap.com/services/2/catalog/skus/2180636</url>\\n </product-skus>\\n</product>\",\n \"language\": \"xml\",\n \"name\": \"Retrieve Product Response\"\n }\n ]\n}\n[/block]\n<br>\n<a class=\"btn btn-primary\" href=\"#\" role=\"button\">Back to Top</a>","updates":[],"order":2,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"61a5033cd3c4d201e7b583d0","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Catalog","slug":"coupon","order":4,"from_sync":false,"reference":true,"_id":"61a5033cd3c4d201e7b583be","version":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","createdAt":"2016-05-12T15:22:00.041Z","__v":0},"project":"57336fd5a6a9c40e00e13a0b","parentDoc":null,"user":"560d5913af97231900938124","version":{"version":"8976-Extended","version_clean":"8976.0.0-Extended","codename":"3.40 Release","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["61a5033cd3c4d201e7b583ba","61a5033cd3c4d201e7b583bb","61a5033cd3c4d201e7b583bc","61a5033cd3c4d201e7b583bd","61a5033cd3c4d201e7b583be","61a5033cd3c4d201e7b583bf","61a5033cd3c4d201e7b583c0","61a5033cd3c4d201e7b583c1","61a5033cd3c4d201e7b583c2","61a5033cd3c4d201e7b583c3","61a5033cd3c4d201e7b583c4"],"_id":"61a5033cd3c4d201e7b5848b","project":"57336fd5a6a9c40e00e13a0b","__v":0,"forked_from":"6040037678d626005641a154","createdAt":"2018-04-24T15:33:45.744Z","releaseDate":"2018-04-24T15:33:45.744Z"},"createdAt":"2016-05-12T15:08:47.740Z","githubsync":"","__v":0}
getRetrieve Product
Definition
https://sandbox.bluesnap.com/services/2/catalog/products/:product-id
Documentation
The Retrieve Product request enables you to retrieve details of an existing product in your account.
The response includes the URLs of all linked SKUs.
Request Content
Enter the product-id
into the web service URL, in the format:services/2/catalog/products/{product-id}
For example:services/2/catalog/products/12345
Response Details
If successful, the response HTTP status code is 200 OK.
The response contains the retrieved product
resource (see product).
For details about possible errors, see: General Errors and Catalog Errors.
Examples
Request Example
curl -v -X GET https://sandbox.bluesnap.com/services/2/catalog/products/307634 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ='
<product xmlns="http://ws.plimus.com">
<product-status>A</product-status>
<product-name>new product</product-name>
<product-short-description>This is the product short description</product-short-description>
<product-long-description>This is the product 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-skus>
<url>https://sandbox.bluesnap.com/services/2/catalog/skus/2180636</url>
</product-skus>
</product>