Skip to main content
DELETE
/
api
/
pricing
/
records
/
batch
Batch Delete Records
curl --request DELETE \
  --url https://api.merchantops.ai/api/pricing/records/batch \
  --header 'Content-Type: application/json' \
  --data '
{
  "date_from": "<string>",
  "date_to": "<string>",
  "keys": [
    "<string>"
  ],
  "product_keys": [
    "<string>"
  ],
  "temporal_filter": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "ctx": {},
      "input": "<unknown>"
    }
  ]
}

Headers

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

Cookies

stytch_session
string | null

Body

application/json
date_from
string | null
date_to
string | null
keys
string[] | null

Specific record keys to delete

product_keys
string[] | null

Product keys — deletes all matching records

temporal_filter
string | null

Temporal filter when using product_keys

Response

Successful Response