Skip to main content
POST
Validate a batch of catalog writes together, without writing anything.

Authorizations

x-api-key
string
header
required

API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.

Body

application/json
items
object[]
required

The writes to check together, at most 100. They run in dependency order (meters, products, product groups, discounts), so an item may name a resource another item of the batch creates (a usage price's meter_external_id). A larger batch answers 400 validate_batch_too_large and nothing is checked.

Response

Every item passes. One answer per item, in the order of the request.

object
string
required

Always catalog_validation.

valid
boolean
required

Whether every item passes. The status is 200 when it is true and 422 otherwise.

items
object[]
required

One entry per item, in the order of the request.