UpsertProduct

UpsertProduct

This endpoint creates the insert products. Products coming from the request body. Insert script should do an update on conflict.

Body Params

Product information should be inserted into the product table

Variants should be inserted into the product_variant table. Variants are optional. can be null or empty

Maximum 1000 products can be passed to this endpoint.

Product Validation:

  • product_id, title, category_path, price, discounted_price, link, image_link columns are required and can not be null or empty
  • discounted_price <= price (discounted_price should be smaller or equal to price)
  • stock_count >= 0 (stock_count can not be negative)

Product Variant Validation:

  • Every column type and length must be validated according to the database columns.
  • product_variant_id, title, price, discounted_price, image_link columns are required and can not be null or empty
  • No need for product_id. It should come to the outer product object
  • discounted_price <= price (discounted_price should be smaller or equal to price)
  • stock_count >= 0 (stock_count can not be negative)
products
array of objects
products
Headers
string
Defaults to {$$.env.access_token}
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Not-authenticated. Please re-login.

403
429

Too Many Requests

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
TooManyRequest