Create a catalogue item (CreateCatalogItem)
POST/catalog-items
Creates an ACTIVE catalogue item under a new catalogItemId and publishes CatalogItemCreated (with identifiers.gtin when given). Dimensions and weight must be positive. identifiers.gtin is optional and checked (GS1 mod-10); a GTIN another item or pack level holds is 409 gtin-already-assigned.
Request
Responses
- 201
- 400
- 409
- 413
- 422
- 500
Created.
Response Headers
"true" when the response replays the stored answer of the same Idempotency-Key (only a success, a final refusal or a recorded outcome is stored; see the Idempotency-Key parameter).
idempotency-key-required or idempotency-key-invalid (state-changing routes); invalid-limit, invalid-cursor or unknown-query-parameter (list reads); malformed-request-body (bad JSON, an unknown field, a wrong type, an empty body, trailing data or a NUL character) or malformed-request-query (a NUL character).
gtin-already-assigned (identifiers.gtin belongs to another item or pack level), or idempotency-key-reused.
request-body-too-large: the request body is over 64 KiB.
invalid-item-dimensions (ErrInvalidItemDimensions), invalid-gtin, or validation-failed (a malformed title).
internal-error: an unmapped failure; the detail never leaks the internal message.