Product

Create

POST method to create a Product

Parameters

Name Description
account_id required Your account unique identifier to access API.
UUID required Unique identifier of the product
name required Name of the product
price required Price of the product
currency required Currency of the product
description Description of the product
url The external link of the product
image_url The external image link of the product
'Your variable product' You can create a variable product and use it within your API request: 'https://www.cendyncrm.com/settings/product_custom_fields'

Request

Route
POST 
/v2/account/:account_id/products/
Headers
Accept: application/json 
Authorization: Token token={account.secret}
Content-Type: application/json
Body
{
  "UUID": "321093",
  "name": "Hotel Paris",
  "price": 300.1,
  "currency": "EUR",
  "description": "PUSHOTEL Paris hotel with more than 400 rooms in center city.",
  "url": "https://www.pushotels.com/",
  "image_url": "https://www.pushotels.com/assets/img/gallery/g3@2x.jpg"
}

Response

Status
201
Body
{
  "product": {
    "UUID": "321093",
    "created_at": "2016-06-22T14:24:07Z",
    "updated_at": "2016-06-22T14:24:07Z",
    "name": "Hotel Paris",
    "price": 748.45,
    "currency": "EUR",
    "description": "PUSHOTEL Paris hotel with more than 400 rooms in center city.",
    "url": "https://www.pushotels.com/",
    "image_url": "https://www.pushotels.com/assets/img/gallery/g3@2x.jpg"
  }
}