Skip to main content

Create Product

POST 

/commerce/products

Create product for a specified user and credential set

Request

Query Parameters

    credentialId stringrequired

    The ID of the credential.

Header Parameters

    Authorization stringrequired

    Default value: bearer YOUR_API_KEY

Body

    productName stringrequired

    A string used to retrieve products with a specific product name.

    description stringrequired

    A string used to retrieve products with a specific description.

    productStatus stringrequired

    Possible values: [DRAFT, ACTIVE, INACTIVE, UNLISTED]

    A string used to retrieve products with a specific product status.

    tags string[]

    An array of tags associated with the product.

    vendor string

    A string used to retrieve products from a specific vendor.

    variants

    object[]

    required

    An array of product variants, you should add at least 1 variant for a product

  • Array [

  • title string

    The title of the product variant (read only)

    price doublerequired

    The price of the product variant

    sku stringrequired

    The SKU (stock-keeping unit) of the variant.

    weight

    object

    An object containing the weight value and unit of measure for the variant.

    value stringrequired
    unit stringrequired

    optionValues

    object[]

    An array of objects containing the option name and value for the variant.

  • Array [

  • name stringrequired
    value stringrequired
  • ]

  • customFieldsMappings json

    An object containing custom fields for the model. The keys are the names of the fields of the corresponding resource in the connected app, and the values can be strings, numbers, arrays or objects.

  • ]

  • remoteFields json

    An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.

Responses

200

Schema

    any

Loading...