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": "3210938120313912312",
  "name": "Iphone6",
  "price": 748.45,
  "currency": "EUR",
  "description": "3D Touch. 12MP photos. 4K video.One powerful phone.",
  "url": "http://www.apple.com/shop/buy-iphone/iphone6s/5.5-inch-display-128gb-gold",
  "image_url": "http://store.storeimages.cdn-apple.com/4973/as-images.apple.com/is/image/AppleInc/aos/published/images/i/ph/iphone6s/plus/iphone6s-plus-gold-select-2015?wid=470&hei=556&fmt=png-alpha&qlt=95&.v=7DNkd1"
}

Response

Status
201
Body
{
  "product": {
    "UUID": "3210938120313912312",
    "created_at": "2016-06-22T14:24:07Z",
    "updated_at": "2016-06-22T14:24:07Z",
    "name": "Iphone6",
    "price": 748.45,
    "currency": "EUR",
    "description": "3D Touch. 12MP photos. 4K video.One powerful phone.",
    "url": "http://www.apple.com/shop/buy-iphone/iphone6s/5.5-inch-display-128gb-gold",
    "image_url": "http://store.storeimages.cdn-apple.com/4973/as-images.apple.com/is/image/AppleInc/aos/published/images/i/ph/iphone6s/plus/iphone6s-plus-gold-select-2015?wid=470&hei=556&fmt=png-alpha&qlt=95&.v=7DNkd1"
  }
}