Create Product

Definition

https://sandbox.bluesnap.com/services/2/catalog/products


The Create Product request enables you to create a new product in your catalog.

Request Content

product    required, contains the following properties (see product):

PropertyTypeRequired
product-statusstringoptional
product-namestringrequired
product-short-descriptionstringrequired
product-long-descriptionstringoptional
product-info-urldecimaloptional
product-imagestringoptional
product-merchant-descriptorstringoptional
product-support-emailstringoptional

Response Details

If successful, the response HTTP status code is 201 Created.
The product-id appears in the URL in the location header. In the example below, the product-id is 307634.
There is no content in the response body.
For details about possible errors, see: General Errors and Catalog Errors.


Example

Request Example

curl -v -X POST https://sandbox.bluesnap.com/services/2/catalog/products \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<product xmlns="http://ws.plimus.com">
  <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-image>image.jpg</product-image>
</product>

Response Example

HTTP/ 1.1 201 Created
Location: https://sandbox.bluesnap.com/services/2/catalog/products/307634

Back to Top