Skip to main content
Version: v3

Create Product

POST 

/products/

The "Create Product" API allows adding a new product to the system. Use this endpoint to create a product with the specified details. Ensure that the required information is provided in the request payload.

Request

Version stringrequired

API Version

Available optionsv3
application/json

Bodyrequired

    namestringrequired

    The name of the product.

    locationIdstringrequired

    The unique identifier for the location.

    descriptionstring

    A brief description of the product.

    productTypestringrequired
    Available optionsDIGITALPHYSICALSERVICEPHYSICAL/DIGITAL
    imagestring

    The URL for the product image.

    statementDescriptorstring

    The statement descriptor for the product.

    availableInStoreboolean

    Indicates whether the product is available in-store.

    mediasobject[]

    An array of medias for the product.

    variantsobject[]

    An array of variants for the product.

    collectionIdsstring[]

    An array of category Ids for the product

    isTaxesEnabledboolean

    Are there any taxes attached to the product. If this is true, taxes array cannot be empty.

    Default value: false
    taxesstring[]

    List of ids of Taxes attached to the Product. If taxes are passed, isTaxesEnabled should be true.

    automaticTaxCategoryIdstring

    Tax category ID for Automatic taxes calculation.

    isLabelEnabledboolean

    Is the product label enabled. If this is true, label object cannot be empty.

    Default value: false
    labelobject

    Details for Product Label

    slugstring

    The slug using which the product navigation will be handled

    seoobject

    SEO data for the product that will be displayed in the preview

    taxInclusiveboolean

    Whether the taxes should be included in the purchase price

    Default value: false
application/json

Successful response

Schema
    _idstringrequired

    The unique identifier for the product.

    descriptionstring

    product description

    variantsobject[]

    An array of variants for the product.

    locationIdstringrequired

    The unique identifier for the location.

    namestringrequired

    The name of the product.

    productTypestringrequired

    The type of the product (e.g., PHYSICAL).

    availableInStoreboolean

    Indicates whether the product is available in-store.

    createdAtstring<date-time>required

    The creation timestamp of the product.

    updatedAtstring<date-time>required

    The last update timestamp of the product.

    statementDescriptorstring

    The statement descriptor for the product.

    imagestring

    The URL for the product image.

    collectionIdsstring[]

    An array of category Ids for the product

    isTaxesEnabledboolean

    The field indicates whether taxes are enabled for the product or not.

    Default value: false
    taxesstring[]

    An array of ids of Taxes attached to the Product. If the expand query includes tax, the taxes will be of type ProductTaxDto. Please refer to the ProductTaxDto for additional details.

    automaticTaxCategoryIdstring

    Tax category ID for Automatic taxes calculation.

    labelobject

    The Product label details

    slugstring

    The slug of the product by which the product will be navigated