Skip to main content
POST
/
api
/
products
/
batch
Create Products Batch
curl --request POST \
  --url https://api.merchantops.ai/api/products/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "products": [
    {
      "key": "<string>",
      "productType": {},
      "source": "<string>",
      "enrichProduct": true,
      "isPublished": false,
      "properties": {},
      "properties_metadata": {},
      "scrapeBrandSite": true,
      "searchLakehouse": true,
      "status": "<string>"
    }
  ],
  "batch_size": 25,
  "validate": false
}
'
{
  "created": 123,
  "failed": 123,
  "total": 123,
  "errors": [
    {}
  ],
  "job_id": "<string>",
  "skipped": 0
}

Headers

authorization
string | null
X-Organization-ID
string | null

Cookies

stytch_session
string | null

Body

application/json

Request model for batch product creation.

products
ProductCreateRequest · object[]
required

List of products to create

batch_size
integer
default:25

Batch size for processing (1-50)

Required range: 1 <= x <= 50
validate
boolean
default:false

Validate against ProductType

Response

Successful Response

Response model for batch product creation.

created
integer
required

Number successfully created

failed
integer
required

Number that failed

total
integer
required

Total products submitted

errors
Errors · object[]

List of errors

job_id
string | null

Job ID for tracking batch progress

skipped
integer
default:0

Number unchanged (no new version created)