Create Product

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Definition

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


Documentation

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

Request Content

product    required, contains the following properties (see product):
      product-status string    optional
      product-name string    required
      product-short-description string    required
      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 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

Example Description

The example above shows a Create Product request with all of the basic product attributes, such as the name, image, description, URL, email, and descriptor.\

Back to Top

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!