Validate a batch of catalog writes together, without writing anything
Runs every item as its own write would run with ?dry_run=true, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product’s usage price naming a new meter by meter_external_id), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without id an item runs as the keyed upsert of its kind (POST /v1/products, POST /v1/meters) with the same body; with id it runs as that resource’s PATCH with PATCH’s rules, which is meant for a migrator adopting an existing resource (giving it an external_id). Requires products:write and the write scope of every kind in the batch (meters:write for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.
POST
/
v1
/
catalog
/
validate
Validate a batch of catalog writes together, without writing anything.
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 400validate_batch_too_large and nothing is checked.
Show child attributes
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.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Creem","colors":{"primary":"#FFBE98","light":"#FFBE98","dark":"#B09CFB"},"logo":{"light":"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/logo/light.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=686f06f43a3d7e4c0456e22de64c8bae","dark":"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/logo/dark.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=7c9135ca8b2365d6ec3728dc087f694d"},"favicon":"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/favicon.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=92df9cacbac6c8f17dbeb2d8b6befb93","navbar":{"links":[{"href":"https://creem.io/contact","label":"Support"},{"href":"https://docs.creem.io/llms.txt","label":"llms.txt"},{"href":"https://docs.creem.io/llms-full.txt","label":"llms-full.txt"}],"primary":{"type":"button","label":"Creem","href":"https://creem.io"}},"footer":{"socials":{"x":"https://x.com/creem_io","linkedin":"https://www.linkedin.com/company/creemio"}},"seo":{"metatags":{"twitter:site":"@creem_io","og:site_name":"Creem Documentation","keywords":"merchant of record, payment api, saas billing, subscription management, global payments, MoR, affiliate program, affiliate marketing, referral program"},"indexing":"all"},"integrations":{"posthog":{"apiKey":"phc_placeholder_gabriel_will_provide","apiHost":"https://us.posthog.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/q3GKZs92Av"},{"anchor":"Blog","icon":"newspaper","href":"https://creem.io/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"creem","hasAudioNarration":false,"actualSubdomain":"creem","customDomains":["docs.creem.io"],"gitSource":{"type":"github","owner":"armitage-labs","repo":"creem","deployBranch":"main","contentDirectory":"packages/docs","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6b088b3491ec34b505a10a57","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"default","tag":"Documentation","count":106},{"language":"default","tag":"API Reference","count":78},{"language":"default","tag":"Features","count":45},{"language":"default","tag":"Code","count":22},{"language":"default","tag":"Customer Credits","count":19},{"language":"default","tag":"SDKs","count":19},{"language":"default","tag":"Guides","count":18},{"language":"default","tag":"Get Started","count":12},{"language":"default","tag":"Meters","count":9},{"language":"default","tag":"AI","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#topbar-cta-button{color:#000000}"}]}
{"page":{"pagePath":"api-reference/endpoint/validate-catalog","slug":"/api-reference/endpoint/validate-catalog","pageMetadata":{"title":"Validate a batch of catalog writes together, without writing anything","description":"Runs every item as its own write would run with `?dry_run=true`, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product's usage price naming a new meter by `meter_external_id`), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without `id` an item runs as the keyed upsert of its kind (`POST /v1/products`, `POST /v1/meters`) with the same body; with `id` it runs as that resource's `PATCH` with `PATCH`'s rules, which is meant for a migrator adopting an existing resource (giving it an `external_id`). Requires `products:write` and the write scope of every kind in the batch (`meters:write` for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.","openapi":"post /v1/catalog/validate","href":"/api-reference/endpoint/validate-catalog"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Runs every item as its own write would run with \", _jsx(_components.code, {\n children: \"?dry_run=true\"\n }), \", but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product’s usage price naming a new meter by \", _jsx(_components.code, {\n children: \"meter_external_id\"\n }), \"), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without \", _jsx(_components.code, {\n children: \"id\"\n }), \" an item runs as the keyed upsert of its kind (\", _jsx(_components.code, {\n children: \"POST /v1/products\"\n }), \", \", _jsx(_components.code, {\n children: \"POST /v1/meters\"\n }), \") with the same body; with \", _jsx(_components.code, {\n children: \"id\"\n }), \" it runs as that resource’s \", _jsx(_components.code, {\n children: \"PATCH\"\n }), \" with \", _jsx(_components.code, {\n children: \"PATCH\"\n }), \"’s rules, which is meant for a migrator adopting an existing resource (giving it an \", _jsx(_components.code, {\n children: \"external_id\"\n }), \"). Requires \", _jsx(_components.code, {\n children: \"products:write\"\n }), \" and the write scope of every kind in the batch (\", _jsx(_components.code, {\n children: \"meters:write\"\n }), \" for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Validate a batch of catalog writes together, without writing anything","description":"Runs every item as its own write would run with `?dry_run=true`, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product's usage price naming a new meter by `meter_external_id`), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without `id` an item runs as the keyed upsert of its kind (`POST /v1/products`, `POST /v1/meters`) with the same body; with `id` it runs as that resource's `PATCH` with `PATCH`'s rules, which is meant for a migrator adopting an existing resource (giving it an `external_id`). Requires `products:write` and the write scope of every kind in the batch (`meters:write` for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.","openapi":"post /v1/catalog/validate","href":"/api-reference/endpoint/validate-catalog"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/creem/ff82c2fd59431fcd/scripts/generate-api-docs.js"],"openApiReferenceData":{"operation":{"operationId":"validateCatalog","x-speakeasy-name-override":"validate","summary":"Validate a batch of catalog writes together, without writing anything.","description":"Runs every item as its own write would run with `?dry_run=true`, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product's usage price naming a new meter by `meter_external_id`), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without `id` an item runs as the keyed upsert of its kind (`POST /v1/products`, `POST /v1/meters`) with the same body; with `id` it runs as that resource's `PATCH` with `PATCH`'s rules, which is meant for a migrator adopting an existing resource (giving it an `external_id`). Requires `products:write` and the write scope of every kind in the batch (`meters:write` for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.","parameters":[],"requestBody":"1269505d-2579-455d-b3e1-3933aee40bf8","responses":{"200":"b5833af5-f347-4680-84dd-1c2dd5779f8e","400":"d175dddf-0a05-43b7-b113-13ebf2f2d06f","401":"bd8b0d6c-45d7-437e-ba2d-aec2b38e9956","403":"3240c0fc-730f-4222-9273-bf426a1ba6f8","404":"2dd7dcc0-7f33-4f8e-9426-86d29560fb4e","422":"af4a4eea-2b14-4ea5-ab35-49c8d031d74f"},"tags":["Catalog"],"security":["dfff46cc-0fd4-45ff-987e-ecca099bfa69"],"method":"post","type":"path","servers":["31665feb-482b-4353-8ac5-f6916acb7a8f","6c07f73e-92c3-48a8-87dd-e830da7c99ad"],"path":"/v1/catalog/validate","baseUrlOptions":["https://api.creem.io","https://test-api.creem.io"],"title":"Validate a batch of catalog writes together, without writing anything.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"description":"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.","type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["meter","product","product_group","discount"],"description":"The kind of resource the item writes. `meter` and `product` can be validated; `product_group` and `discount` answer `400` `dry_run_not_supported` until their writes support a dry run.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].kind","typeLabel":"enum\u003cstring>"},"body":{"type":"object","additionalProperties":true,"description":"The request body of the write: without `id` the body of the kind’s create or upsert (`POST /v1/products`, `POST /v1/meters`), with `id` the body of its `PATCH`. It is validated as that endpoint validates it.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].body","typeLabel":"object"},"id":{"type":"string","description":"For a migrator adopting an existing resource only: the id of the resource the item updates. With `id` the item runs as that resource’s `PATCH` (`PATCH /v1/products/{id}`, `PATCH /v1/meters/{id}`) with `PATCH`’s rules, for example to give a product without an `external_id` its key. Without `id` the item runs as the keyed upsert of its kind (`POST /v1/products`, `POST /v1/meters`).","uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string"}},"required":["kind","body"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"}},"required":["items"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"items":[{"body":{},"id":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b5833af5-f347-4680-84dd-1c2dd5779f8e":{"description":"Every item passes. One answer per item, in the order of the request.","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","description":"Always `catalog_validation`.","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"valid":{"type":"boolean","description":"Whether every item passes. The status is `200` when it is true and `422` otherwise.","isRequired":true,"uniqueKey":"valid","typeLabel":"boolean"},"items":{"description":"One entry per item, in the order of the request.","type":"array","items":{"type":"object","properties":{"kind":{"type":"string","description":"The item’s `kind`: `meter`, `product`, `product_group` or `discount`.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].kind","typeLabel":"string"},"id":{"oneOf":[{"type":"string","description":"The item’s `id`, or null for an upsert item.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The item’s `id`, or null for an upsert item.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string | null"},"valid":{"type":"boolean","description":"Whether the item’s write would succeed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].valid","typeLabel":"boolean"},"status":{"type":"number","description":"The status the item’s own endpoint answers for this write: `200` or `201` when it passes, its error status (`400`, `404`, `409`, `412`, `422`, …) when it fails.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].status","typeLabel":"number"},"response":{"oneOf":[{"type":"object","additionalProperties":true,"description":"When the item passes: what its endpoint answers with `?dry_run=true`, the resource with `write_result` (`dry_run` `true`), for a product the `POST` or `PATCH /v1/products` response, for a meter the `POST` or `PATCH /v1/meters` response. Ids of resources the batch would create are never stored. Null when the item fails.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].response.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"When the item passes: what its endpoint answers with `?dry_run=true`, the resource with `write_result` (`dry_run` `true`), for a product the `POST` or `PATCH /v1/products` response, for a meter the `POST` or `PATCH /v1/meters` response. Ids of resources the batch would create are never stored. Null when the item fails.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].response.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].response","typeLabel":"object | null"},"error":{"oneOf":[{"type":"object","additionalProperties":true,"description":"When the item fails: the error body its endpoint answers, in that endpoint’s envelope, with its stable `code` (for example `external_id_taken`, `usage_price_in_use`, `meter_name_taken`). Null when the item passes.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].error.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"When the item fails: the error body its endpoint answers, in that endpoint’s envelope, with its stable `code` (for example `external_id_taken`, `usage_price_in_use`, `meter_name_taken`). Null when the item passes.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].error","typeLabel":"object | null"}},"required":["kind","id","valid","status","response","error"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"}},"required":["object","valid","items"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"\u003cstring>","valid":true,"items":[{"kind":"\u003cstring>","id":"\u003cstring>","valid":true,"status":123,"response":{},"error":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"},"d175dddf-0a05-43b7-b113-13ebf2f2d06f":{"description":"Bad request, and nothing was checked. Besides validation errors of the request itself: `validate_batch_too_large`: the batch holds more than 100 items (`details.max_items`, `details.items`); split it, for example one dependency layer per call. `dry_run_not_supported`: an item's `kind` can't be validated yet (`details.kind`: `product_group` or `discount`), or the request sent `dry_run` (validate never writes). `validate_batch_timeout`: the batch couldn't be checked within 15 seconds (`details.timeout_ms`), because its items are large or one waited on a resource another request was writing; nothing was written. Split it into smaller batches; sending the same batch again takes as long. An item's own validation error is not a `400` of the call: it is that item's answer in a `422`.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"bd8b0d6c-45d7-437e-ba2d-aec2b38e9956":{"description":"Unauthorized - Invalid or missing API key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"3240c0fc-730f-4222-9273-bf426a1ba6f8":{"description":"Forbidden: the API key or access token lacks `products:write` or the write scope of a kind in the batch (`meters:write`, `discounts:write`). Nothing was checked.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"2dd7dcc0-7f33-4f8e-9426-86d29560fb4e":{"description":"Not Found - Resource does not exist","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"af4a4eea-2b14-4ea5-ab35-49c8d031d74f":{"description":"At least one item fails. The same answer as `200`, with `valid` `false`: each failing item carries its endpoint’s status and error body. Nothing was written.","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"type":"string","description":"Always `catalog_validation`.","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"valid":{"type":"boolean","description":"Whether every item passes. The status is `200` when it is true and `422` otherwise.","isRequired":true,"uniqueKey":"valid","typeLabel":"boolean"},"items":{"description":"One entry per item, in the order of the request.","type":"array","items":{"type":"object","properties":{"kind":{"type":"string","description":"The item’s `kind`: `meter`, `product`, `product_group` or `discount`.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].kind","typeLabel":"string"},"id":{"oneOf":[{"type":"string","description":"The item’s `id`, or null for an upsert item.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The item’s `id`, or null for an upsert item.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].id","typeLabel":"string | null"},"valid":{"type":"boolean","description":"Whether the item’s write would succeed.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].valid","typeLabel":"boolean"},"status":{"type":"number","description":"The status the item’s own endpoint answers for this write: `200` or `201` when it passes, its error status (`400`, `404`, `409`, `412`, `422`, …) when it fails.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].status","typeLabel":"number"},"response":{"oneOf":[{"type":"object","additionalProperties":true,"description":"When the item passes: what its endpoint answers with `?dry_run=true`, the resource with `write_result` (`dry_run` `true`), for a product the `POST` or `PATCH /v1/products` response, for a meter the `POST` or `PATCH /v1/meters` response. Ids of resources the batch would create are never stored. Null when the item fails.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].response.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"When the item passes: what its endpoint answers with `?dry_run=true`, the resource with `write_result` (`dry_run` `true`), for a product the `POST` or `PATCH /v1/products` response, for a meter the `POST` or `PATCH /v1/meters` response. Ids of resources the batch would create are never stored. Null when the item fails.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].response.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].response","typeLabel":"object | null"},"error":{"oneOf":[{"type":"object","additionalProperties":true,"description":"When the item fails: the error body its endpoint answers, in that endpoint’s envelope, with its stable `code` (for example `external_id_taken`, `usage_price_in_use`, `meter_name_taken`). Null when the item passes.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].error.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":true,"description":"When the item fails: the error body its endpoint answers, in that endpoint’s envelope, with its stable `code` (for example `external_id_taken`, `usage_price_in_use`, `meter_name_taken`). Null when the item passes.","isRequired":true,"uniqueKey":"\\items.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"\\items.items.[INDEX].error","typeLabel":"object | null"}},"required":["kind","id","valid","status","response","error"],"uniqueKey":"\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"\\items","typeLabel":"object[]"}},"required":["object","valid","items"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"\u003cstring>","valid":true,"items":[{"kind":"\u003cstring>","id":"\u003cstring>","valid":true,"status":123,"response":{},"error":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"dfff46cc-0fd4-45ff-987e-ecca099bfa69":{"ApiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.","scopes":[],"schemeName":"ApiKey"}}},"servers":{"31665feb-482b-4353-8ac5-f6916acb7a8f":{"url":"https://api.creem.io","description":"Production — live API for processing real transactions and data.","x-speakeasy-server-id":"prod"},"6c07f73e-92c3-48a8-87dd-e830da7c99ad":{"url":"https://test-api.creem.io","description":"Test — sandbox API for development and testing with no real charges.","x-speakeasy-server-id":"test"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.","scopes":[],"schemeName":"ApiKey"},"schema":{"title":"x-api-key","type":"string","description":"API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"x-api-key"}],"title":"ApiKey"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"creem","siteName":"Creem","title":"Validate a batch of catalog writes together, without writing anything - Creem","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-26T18:21:07.748Z","originalFileLocation":"api-reference/endpoint/validate-catalog.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Runs every item as its own write would run with ?dry_run=true, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product\u0026#x27;s usage price naming a new meter by meter_external_id), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without id an item runs as the keyed upsert of its kind (POST /v1/products, POST /v1/meters) with the same body; with id it runs as that resource\u0026#x27;s PATCH with PATCH\u0026#x27;s rules, which is meant for a migrator adopting an existing resource (giving it an external_id). Requires products:write and the write scope of every kind in the batch (meters:write for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.\">\u003cmeta data-mint-head name=\"keywords\" content=\"merchant of record, payment api, saas billing, subscription management, global payments, MoR, affiliate program, affiliate marketing, referral program\">\u003cmeta data-mint-head name=\"application-name\" content=\"Creem\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Validate a batch of catalog writes together, without writing anything - Creem\">\u003cmeta data-mint-head property=\"og:description\" content=\"Runs every item as its own write would run with ?dry_run=true, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product\u0026#x27;s usage price naming a new meter by meter_external_id), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without id an item runs as the keyed upsert of its kind (POST /v1/products, POST /v1/meters) with the same body; with id it runs as that resource\u0026#x27;s PATCH with PATCH\u0026#x27;s rules, which is meant for a migrator adopting an existing resource (giving it an external_id). Requires products:write and the write scope of every kind in the batch (meters:write for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Creem Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.creem.io/api-reference/endpoint/validate-catalog\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://creem.mintlify.site/_mintlify/api/og/v2?division=Catalog\u0026amp;title=Validate+a+batch+of+catalog+writes+together%2C+without+writing+anything\u0026amp;description=Runs+every+item+as+its+own+write+would+run+with+%60%3Fdry_run%3Dtrue%60%2C+but+all+of+them+in+one+database+transaction+that+is+always+rolled+back%2C+so+the+batch+is+checked\u0026amp;theme=19d74014ebb4a0780d75c372\u0026amp;signature=ecb42ea6ddc2ef973fce9786aaf7dbafc7f9531705dbb174d23e6eb56b01cfc5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Validate a batch of catalog writes together, without writing anything - Creem\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Runs every item as its own write would run with ?dry_run=true, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product\u0026#x27;s usage price naming a new meter by meter_external_id), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without id an item runs as the keyed upsert of its kind (POST /v1/products, POST /v1/meters) with the same body; with id it runs as that resource\u0026#x27;s PATCH with PATCH\u0026#x27;s rules, which is meant for a migrator adopting an existing resource (giving it an external_id). Requires products:write and the write scope of every kind in the batch (meters:write for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://creem.mintlify.site/_mintlify/api/og/v2?division=Catalog\u0026amp;title=Validate+a+batch+of+catalog+writes+together%2C+without+writing+anything\u0026amp;description=Runs+every+item+as+its+own+write+would+run+with+%60%3Fdry_run%3Dtrue%60%2C+but+all+of+them+in+one+database+transaction+that+is+always+rolled+back%2C+so+the+batch+is+checked\u0026amp;theme=19d74014ebb4a0780d75c372\u0026amp;signature=ecb42ea6ddc2ef973fce9786aaf7dbafc7f9531705dbb174d23e6eb56b01cfc5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/creem/nizlPYWnvgrMkN5E/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Creem\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FFBE98\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.creem.io/api-reference/endpoint/validate-catalog\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/validate-catalog.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.creem.io/#organization\",\"name\":\"Creem\",\"url\":\"https://docs.creem.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/creem/-AIVGXbrCJu_8i70/logo/light.svg?fit=max\u0026auto=format\u0026n=-AIVGXbrCJu_8i70\u0026q=85\u0026s=686f06f43a3d7e4c0456e22de64c8bae\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.creem.io#website\",\"name\":\"Creem\",\"url\":\"https://docs.creem.io\",\"publisher\":{\"@id\":\"https://docs.creem.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog#webpage\",\"url\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog\",\"name\":\"Validate a batch of catalog writes together, without writing anything\",\"description\":\"Runs every item as its own write would run with ?dry_run=true, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product's usage price naming a new meter by meter_external_id), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without id an item runs as the keyed upsert of its kind (POST /v1/products, POST /v1/meters) with the same body; with id it runs as that resource's PATCH with PATCH's rules, which is meant for a migrator adopting an existing resource (giving it an external_id). Requires products:write and the write scope of every kind in the batch (meters:write for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.\",\"dateModified\":\"2026-11-26T18:21:07.748Z\",\"isPartOf\":{\"@id\":\"https://docs.creem.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Creem\",\"item\":\"https://docs.creem.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Validate a batch of catalog writes together, without writing anything\",\"item\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog#apireference\",\"headline\":\"Validate a batch of catalog writes together, without writing anything\",\"name\":\"Validate a batch of catalog writes together, without writing anything\",\"description\":\"Runs every item as its own write would run with ?dry_run=true, but all of them in one database transaction that is always rolled back, so the batch is checked as a whole: an item may name a resource another item of the batch creates (a product's usage price naming a new meter by meter_external_id), and every check, uniqueness rule and guard runs against what the earlier items would have written. Items run in dependency order (meters, products, product groups, discounts) and are answered in the order of the request. Without id an item runs as the keyed upsert of its kind (POST /v1/products, POST /v1/meters) with the same body; with id it runs as that resource's PATCH with PATCH's rules, which is meant for a migrator adopting an existing resource (giving it an external_id). Requires products:write and the write scope of every kind in the batch (meters:write for meters). Nothing is written and nothing is triggered. A batch that passes can still fail when it is applied, if the catalog changes in between; validate it again right before applying it.\",\"url\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog\",\"mainEntityOfPage\":{\"@id\":\"https://docs.creem.io/api-reference/endpoint/validate-catalog#webpage\"},\"dateModified\":\"2026-11-26T18:21:07.748Z\",\"publisher\":{\"@id\":\"https://docs.creem.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.creem.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Creem\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Creem\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/validate-catalog.md","siteName":"Creem","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.gg/q3GKZs92Av"},{"anchor":"Blog","icon":"newspaper","href":"https://creem.io/blog"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","icon":"book","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Error Handling","href":"/api-reference/error-codes"}]},{"group":"Checkout","icon":"shopping-cart","pages":[{"title":"Creates a new checkout session","openapi":"post /v1/checkouts","href":"/api-reference/endpoint/create-checkout"},{"title":"Retrieve a checkout session","openapi":"get /v1/checkouts","href":"/api-reference/endpoint/get-checkout"}]},{"group":"Product","icon":"box","pages":[{"title":"Creates a product, or updates the one with the same external_id","openapi":"post /v1/products","href":"/api-reference/endpoint/create-product"},{"title":"Get a product by ID","openapi":"get /v1/products/{id}","href":"/api-reference/endpoint/get-product"},{"title":"List all products","openapi":"get /v1/products/search","href":"/api-reference/endpoint/search-products"},{"title":"Update a product","openapi":"patch /v1/products/{id}","href":"/api-reference/endpoint/update-product"},{"title":"Archive a product","openapi":"delete /v1/products/{id}","href":"/api-reference/endpoint/archive-product"},{"title":"List the price versions of a product","openapi":"get /v1/products/{id}/prices","href":"/api-reference/endpoint/list-product-prices"}]},{"group":"Product Groups","icon":"layer-group","pages":[{"title":"Create a product group","openapi":"post /v1/product-groups","href":"/api-reference/endpoint/create-product-group"},{"title":"List product groups","openapi":"get /v1/product-groups","href":"/api-reference/endpoint/list-product-groups"},{"title":"Retrieve a product group","openapi":"get /v1/product-groups/{id}","href":"/api-reference/endpoint/get-product-group"},{"title":"Update a product group","openapi":"patch /v1/product-groups/{id}","href":"/api-reference/endpoint/update-product-group"},{"title":"Delete a product group","openapi":"delete /v1/product-groups/{id}","href":"/api-reference/endpoint/delete-product-group"},{"title":"Add a product to a product group","openapi":"post /v1/product-groups/{id}/products","href":"/api-reference/endpoint/add-product-to-product-group"},{"title":"Remove a product from a product group","description":"Remove one product from the group. The product itself and its subscriptions stay.","openapi":"delete /v1/product-groups/{id}/products/{product_id}","href":"/api-reference/endpoint/remove-product-from-product-group"}]},{"group":"Catalog","icon":"list-check","pages":[{"title":"Validate a batch of catalog writes together, without writing anything","openapi":"post /v1/catalog/validate","href":"/api-reference/endpoint/validate-catalog"},{"title":"Promote the test catalog to live (meters and products)","description":"Copies the store’s test catalog into live by `external_id`: each selected test item is matched to the live item with the same key and written as that kind’s keyed upsert (`POST /v1/meters`, `POST /v1/products`); a keyed test item without a live match is created with its key. Test is the source for every field it sets; promote never clears a `metadata` key only live has (`conflict`), and live items without a test counterpart are not listed and never touched. A test item without a key is `needs_key`, with ranked `candidates` and a `proposed_external_id`: give both sides the same key, then promote again. Archived test items are included only when live has an item with the same key, and a paired meter’s archive state follows test’s.\nEvery item reports one `result`; the real run writes only `created`, `updated` and `unchanged` items. Before its first write the real run checks every write together in one rolled-back transaction (one dependency layer at a time above the batch limit) and writes nothing when one fails, unless `force` is `true`. The check runs within the time budget too: until it is done a page has no items and a `next_cursor`, and `validation.checked_batches` says how far it got. Then the run writes only what it checked: an item changed after the check is `not_written` (`changed_since_check`). Items run meters first, then products, then the meters test archived (a meter's archive is part of its own write, after the products that may stop pricing it), and pages end after a time budget: follow `next_cursor` with the same `select` and `dry_run` until it is null. Every run and item is recorded under `run_id`, dry runs included.\nRequires `products:write` and `meters:write` when meters are promoted. Answers `503` `test_environment_unavailable` when the test environment can’t be reached; try again later.","openapi":"post /v1/catalog/promote","href":"/api-reference/endpoint/promote-catalog"}]},{"group":"Files","icon":"file","pages":[{"title":"Upload a file","openapi":"post /v1/files","href":"/api-reference/endpoint/create-file-upload"},{"title":"Confirm an uploaded file","openapi":"post /v1/files/{id}/confirm","href":"/api-reference/endpoint/confirm-file-upload"}]},{"group":"Customer","icon":"users","pages":[{"title":"Retrieve a customer","openapi":"get /v1/customers","href":"/api-reference/endpoint/get-customer"},{"title":"Update a customer","openapi":"patch /v1/customers","href":"/api-reference/endpoint/update-customer"},{"title":"List all customers","openapi":"get /v1/customers/list","href":"/api-reference/endpoint/list-customers"},{"title":"Generate Customer Links","openapi":"post /v1/customers/billing","href":"/api-reference/endpoint/create-customer-billing"}]},{"group":"Transactions","icon":"receipt","pages":[{"title":"Get a transaction by ID","openapi":"get /v1/transactions","href":"/api-reference/endpoint/get-transaction"},{"title":"List all transactions","openapi":"get /v1/transactions/search","href":"/api-reference/endpoint/get-transactions"},{"title":"Refund a payment","openapi":"post /v1/refunds","href":"/api-reference/endpoint/refund-payment"}]},{"group":"Affiliate","icon":"users","pages":[{"title":"List all affiliates","openapi":"get /v1/affiliates","href":"/api-reference/endpoint/list-affiliates"},{"title":"Retrieve an affiliate","openapi":"get /v1/affiliates/{id}","href":"/api-reference/endpoint/retrieve-affiliate"},{"title":"List affiliate commissions","openapi":"get /v1/affiliates/{id}/commissions","href":"/api-reference/endpoint/list-affiliate-commissions"},{"title":"Create an affiliate invitation","openapi":"post /v1/affiliates/invites","href":"/api-reference/endpoint/create-affiliate-invite"},{"title":"List affiliate invitations","openapi":"get /v1/affiliates/invites","href":"/api-reference/endpoint/list-affiliate-invites"}]},{"group":"License","icon":"key","pages":[{"title":"Validates a license key or instance","openapi":"post /v1/licenses/validate","href":"/api-reference/endpoint/validate-license"},{"title":"Activates a license key","openapi":"post /v1/licenses/activate","href":"/api-reference/endpoint/activate-license"},{"title":"Deactivate a license key instance","openapi":"post /v1/licenses/deactivate","href":"/api-reference/endpoint/deactivate-license"},{"title":"List license instances","openapi":"get /v1/licenses/{id}/instances","href":"/api-reference/endpoint/list-license-instances"}]},{"group":"Discount Code","icon":"tag","pages":[{"title":"Creates a discount, or updates the one with the same external_id","openapi":"post /v1/discounts","href":"/api-reference/endpoint/create-discount-code"},{"title":"Update a discount","openapi":"patch /v1/discounts/{id}","href":"/api-reference/endpoint/update-discount-code"},{"title":"Delete a discount","openapi":"delete /v1/discounts/{id}/delete","href":"/api-reference/endpoint/delete-discount-code"},{"title":"Retrieve discount","openapi":"get /v1/discounts","href":"/api-reference/endpoint/get-discount-code"},{"title":"Search discounts","openapi":"get /v1/discounts/search","href":"/api-reference/endpoint/search-discounts"}]},{"group":"Subscription","icon":"repeat","pages":[{"title":"Retrieve a subscription","openapi":"get /v1/subscriptions","href":"/api-reference/endpoint/get-subscription"},{"title":"List all subscriptions","openapi":"get /v1/subscriptions/search","href":"/api-reference/endpoint/search-subscriptions"},{"title":"Update a subscription","openapi":"post /v1/subscriptions/{id}","href":"/api-reference/endpoint/update-subscription"},{"title":"Upgrade a subscription to a different product","openapi":"post /v1/subscriptions/{id}/upgrade","href":"/api-reference/endpoint/upgrade-subscription"},{"title":"Pause a subscription","openapi":"post /v1/subscriptions/{id}/pause","href":"/api-reference/endpoint/pause-subscription"},{"title":"Resume a subscription","openapi":"post /v1/subscriptions/{id}/resume","href":"/api-reference/endpoint/resume-subscription"},{"title":"Cancel a subscription","openapi":"post /v1/subscriptions/{id}/cancel","href":"/api-reference/endpoint/cancel-subscription"}]},{"group":"Splits","icon":"arrows-split-up-and-left","pages":[{"title":"Create a split","openapi":"post /v1/splits","href":"/api-reference/endpoint/create-split"},{"title":"List all splits","openapi":"get /v1/splits","href":"/api-reference/endpoint/list-splits"},{"title":"Retrieve a split","openapi":"get /v1/splits/{id}","href":"/api-reference/endpoint/retrieve-split"},{"title":"Delete a split","openapi":"delete /v1/splits/{id}","href":"/api-reference/endpoint/delete-split"}]},{"group":"Stats","icon":"chart-line","pages":[{"title":"Get store metrics summary","openapi":"get /v1/stats/summary","href":"/api-reference/endpoint/get-stats-summary"}]},{"group":"Customer Credits","icon":"coins","pages":[{"title":"Create a customer credits account","openapi":"post /v1/customer-credits/accounts","href":"/api-reference/endpoint/create-credits-account"},{"title":"List customer credits accounts","openapi":"get /v1/customer-credits/accounts","href":"/api-reference/endpoint/list-credits-accounts"},{"title":"Retrieve a customer credits account","openapi":"get /v1/customer-credits/accounts/{id}","href":"/api-reference/endpoint/get-credits-account"},{"title":"Get account balance","openapi":"get /v1/customer-credits/accounts/{id}/balance","href":"/api-reference/endpoint/get-credits-account-balance"},{"title":"List account entries","openapi":"get /v1/customer-credits/accounts/{id}/entries","href":"/api-reference/endpoint/list-credits-entries"},{"title":"Credit an account","openapi":"post /v1/customer-credits/accounts/{id}/credit","href":"/api-reference/endpoint/credit-account"},{"title":"Debit an account","openapi":"post /v1/customer-credits/accounts/{id}/debit","href":"/api-reference/endpoint/debit-account"},{"title":"Reverse a transaction","openapi":"post /v1/customer-credits/accounts/{id}/reverse","href":"/api-reference/endpoint/reverse-credits-transaction"},{"title":"Freeze an account","openapi":"post /v1/customer-credits/accounts/{id}/freeze","href":"/api-reference/endpoint/freeze-credits-account"},{"title":"Unfreeze an account","openapi":"post /v1/customer-credits/accounts/{id}/unfreeze","href":"/api-reference/endpoint/unfreeze-credits-account"},{"title":"Close an account","openapi":"post /v1/customer-credits/accounts/{id}/close","href":"/api-reference/endpoint/close-credits-account"},{"title":"Post a transaction","openapi":"post /v1/customer-credits/transactions","href":"/api-reference/endpoint/post-credits-transaction"},{"title":"Retrieve a transaction","openapi":"get /v1/customer-credits/transactions/{id}","href":"/api-reference/endpoint/get-credits-transaction"},{"title":"Reverse a transaction","openapi":"post /v1/customer-credits/transactions/{id}/reverse","href":"/api-reference/endpoint/reverse-credits-transaction-by-id"},{"title":"List transactions by reference","openapi":"get /v1/customer-credits/transactions","href":"/api-reference/endpoint/list-credits-transactions"}]},{"group":"Moderation","icon":"shield-check","pages":[{"title":"Screen a prompt","openapi":"post /v1/moderation/prompt","href":"/api-reference/endpoint/screen-prompt"}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"List webhook endpoints","openapi":"get /v1/webhooks","href":"/api-reference/endpoint/list-webhooks"},{"title":"Create a webhook endpoint","openapi":"post /v1/webhooks","href":"/api-reference/endpoint/create-webhook"},{"title":"Retrieve a webhook endpoint","openapi":"get /v1/webhooks/{id}","href":"/api-reference/endpoint/get-webhook"},{"title":"Update a webhook endpoint","openapi":"patch /v1/webhooks/{id}","href":"/api-reference/endpoint/update-webhook"},{"title":"Delete a webhook endpoint","openapi":"delete /v1/webhooks/{id}","href":"/api-reference/endpoint/delete-webhook"},{"title":"Retrieve a webhook signing secret","openapi":"get /v1/webhooks/{id}/secret","href":"/api-reference/endpoint/get-webhook-secret"},{"title":"List pending events for a CLI webhook endpoint","openapi":"get /v1/webhooks/{id}/events/pending","href":"/api-reference/endpoint/list-pending-webhook-events"},{"title":"Acknowledge a CLI webhook event","openapi":"post /v1/webhooks/{id}/events/{event_id}/ack","href":"/api-reference/endpoint/acknowledge-webhook-event"}]}]}]},"basePath":"","title":"Validate a batch of catalog writes together, without writing anything - Creem","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CWRF67qg.js","snippetPresets-BR8BoZAC.js","utils-D5WEoDBM.js","style-to-object-BY3JEAdk.js","utils-B79vXYXV.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-C59iNs-S.js","conditional-requirements-CFM0id0Q.js","cloneDeep-455jK_K_.js","_Uint8Array-BEecbuUl.js","isObject-FP1Yky1u.js","ApiExamples-CFRHL52q.js","usePlaygroundInputsStore-Caip2xMX.js","shallow-BS-qcxmX.js","isEqual-CEpbaqh9.js","CodeSnippets-B-R0FAqw.js","CodeSnippet-Bkkti1IB.js","use-playground-group-access-BLvLSz8w.js","Page-UFatEFaf.js","api-description-markdown-Cny85OC3.js","DynamicMarkdown-Czhs88Hc.js","SectionHeading-B08KBUKT.js","MethodPill-D8OvWg5y.js","getPastedJson-tB5m0_yh.js","Check2Icon-CeP__a4S.js","axios-CsQoIw0U.js","Markdown-LI7DSqeK.js","AssistantPageLink-bYxdsqKl.js","dist-DXTH2WLA.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}