catalog.digital.codes.add
Add e-pin codes to a pooled digital product (sealed at rest; duplicates skipped).
- scope:
catalog:write - storefront-visible (bumps the catalog generation): no
- destructive: no
Payload
| field | type | required | notes |
|---|---|---|---|
productId | string (/^prd_[a-zA-Z0-9]{1,32}$/) | yes | |
codes | array<string (≤200 chars)> (≤1000) | yes |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^prd_[a-zA-Z0-9]{1,32}$"
},
"codes": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"type": "string",
"minLength": 4,
"maxLength": 200
}
}
},
"required": [
"productId",
"codes"
],
"additionalProperties": false
}Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/catalog.digital.codes.add.md