Create the price record of a catalogue item
POST/item-prices
Creates the ItemPrice aggregate for a catalogue item that exists in the local CatalogItemView (fed by offer-availability events). The initial list price is set here; sale windows are scheduled separately. An id outside 1-64 characters of A-Z a-z 0-9 . _ : - (starting with a letter or digit) is 422 validation-failed.
Request
Responses
- 201
- 400
- 409
- 422
The created item price.
Response Headers
"true" when this response is the stored answer of an earlier request carrying the same Idempotency-Key (the handler did not run again). Absent on the first execution.
idempotency-key-required (header missing), idempotency-key-invalid (not 1-128 printable ASCII characters) or malformed-request (bad JSON, an unknown field, a wrong type, an empty body, trailing data, a body over 64 KiB or a NUL character in the body or query string).
concurrent-update (including a second create for the same item) or idempotency-key-reused.
validation-failed (including an amount above 1000000000 minor units), negative-amount (ErrNegativeAmount), currency-mismatch (ErrCurrencyMismatch) or unknown-catalog-item (ErrUnknownCatalogItem: the item is not known or is discontinued in the CatalogItemView).