Skip to main content
POST
/
api
/
pricing
/
batches
/
{key}
/
add-records-by-product
Add Records By Product
curl --request POST \
  --url https://api.merchantops.ai/api/pricing/batches/{key}/add-records-by-product \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_keys": [
    "<string>"
  ],
  "price_types": [
    "<string>"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "ctx": {},
      "input": "<unknown>"
    }
  ]
}

Headers

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

Path Parameters

key
string
required

Cookies

stytch_session
string | null

Body

application/json

Resolve "all latest active prices for these products" into a republish batch. Default price_types is ['msrp'] — enough for VTEX, since the worker resolves the basePrice partner at publish time. Callers can override (e.g. ['msrp','map']) when targeting a system that needs both records.

product_keys
string[]
required
Minimum array length: 1
price_types
string[] | null

Response

Successful Response