DeliveryCharges
The delivery charge per service tier (DeliveryChargeSchedule, one current, versioned).
Introduction
REST contract of the pricing bounded context of the digital storefront, derived from storefront/model/model.yaml (contexts[pricing].rest). Pricing owns what a shopper pays: list prices and sale windows per catalogue item, the delivery charge per service tier, a synthetic tax table, and the binding, immutable, expiring PriceQuote a checkout session is confirmed against. One configured currency (ISO 4217), integer minor units. Errors are RFC 9457 problem details (application/problem+json) whose type is /problems/<slug>. The shared problem types are not-found (404), illegal-transition (409), concurrent-update (409) and validation-failed (422); each Err of the model adds one kebab-case slug. Every POST takes an Idempotency-Key header (PUT needs none); the first answer final for the request is stored and replayed (a 2xx and the final refusals), a retryable refusal releases the key so the retry executes again, and a key reused with a different request is 409 idempotency-key-reused. Collections are keyset-paged with limit and cursor and answer { items, nextCursor }. No authentication, consistent with the rest of the estate.
Cancel a scheduled sale window
CancelSale. Transition resource: answers 200 with the updated item price. Cancelling a live sale emits ItemPriceChanged at the boundary.
Create the price record of a catalogue item
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.
DeliveryCharges
DeliveryCharges
Get the current delivery charge schedule
Returns the one current DeliveryChargeSchedule.
Get the current tax table
Returns the one current TaxTable.
Get the price record of one catalogue item
Returns the ItemPrice with its list price, sale windows and version.
Get a price quote
Returns the immutable PriceQuote, ISSUED or EXPIRED.
Issue a binding price quote for a checkout
IssuePriceQuote. The quote is binding, immutable and expiring (policy QuoteTtl, default 15 minutes): lines with unit and line totals, groups with tier and delivery charge, tax, total, and the versions of price, schedule and tax table used. PriceQuoteIssued is published to the analytics topic. Called by checkout at session open.
ItemPrices
ItemPrices
List item prices, keyset-paged (projection bootstrap)
Keyset-paged list of item prices ordered by (catalogItemId). Used by product-discovery's projection rebuild (snapshot + catch-up); not part of a user request path. Follow nextCursor until it is absent. Any query parameter other than limit and cursor is answered 400 unknown-query-parameter.
PriceQuotes
PriceQuotes
Publish a new delivery charge schedule
PublishChargeSchedule. A schedule names a charge (and optional free-over threshold) for every classic service tier (SAME_DAY, NEXT_DAY, TWO_DAY, STANDARD) and may name one for CONSOLIDATED, which is free when the schedule does not declare it; the new version supersedes the current one and DeliveryChargeScheduleChanged is published.
Publish a new tax table
PublishTaxTable. Basis-point rates by destination postal-prefix band; bands never overlap. The new version supersedes the current one and TaxTableChanged is published.
Schedule a sale window for a catalogue item
ScheduleSale. A sale price is always below the list price and windows of one item never overlap; a window ends after it starts, ends in the future, and an item holds at most 50 live windows (else 422 validation-failed). PublishEffectivePriceOnWindowBoundary emits ItemPriceChanged when the sale starts or ends.
Set the list price of a catalogue item
SetListPrice. Replaces the list price attribute of the item price (PUT, idempotent by method; an Idempotency-Key header is accepted and ignored). Publishes ItemPriceChanged when the effective price changes.
TaxTables
TaxTables
Withdraw the price of a catalogue item
WithdrawPrice (merchandising). ACTIVE to WITHDRAWN; the item can no longer be quoted and ItemPriceWithdrawn is published. The same transition runs automatically when the item is discontinued (WithdrawOnDiscontinue). Transition resource: answers 200 with the withdrawn item price.