Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Get order

Returns Order details, including the recorded item quantities and prices.

Order Lifecycle
GET/api/v1/orders/{id}

GetOrder queries Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs (GET /ordering/api/v1/orders/{id}) to retrieve a single order’s header metadata, purchase-time unit prices, quantities, and book display names. Standard customers can retrieve only their own orders, while administrators (admin role) can retrieve any order; nonexistent and out-of-scope orders both return 404 Not Found.

Overview

PropertyValue
Bounded ContextOrdering
Owner ServiceOrder APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs
Protocol / FormatHTTP GET, application/json response
Gateway EndpointGET /ordering/api/v1/orders/{id} (service path /api/v1/orders/{id})
Authentication & AuthorizationMicrosoft Entra ID JWT — customer or admin role plus scopes ordering_read, ordering_write
Idempotency / ConcurrencyRead-only and naturally idempotent
Rate Limit / CachingGlobal concurrency (100), per-IP fixed-window (30 req/min), and per-user token bucket (30 limit, 20 per 10s, queue 5)
Contract Version1.0.0 (ApiVersions.V1)

Request & Response Contract

Path Parameters

NameTypeRequiredConstraintsDescription
idstring (uuid)YesValid UUIDUnique identifier of the order to retrieve

Success Response (200 OK)

NameTypeRequiredConstraintsDescription
idstring (uuid)YesValid UUIDUnique identifier of the order
datestring (date-time)YesISO 8601 UTC timestampUTC timestamp when the order was placed
totalnumberYesDecimal currency amountTotal order amount computed from recorded item prices and quantities
statusstringYesEnum: New, Cancelled, CompletedCurrent lifecycle status of the order
itemsobject[]YesArrayLine items recorded at checkout
items[].idstring (uuid)YesValid UUIDCatalog book identifier
items[].quantityintegerYes> 0Purchased unit quantity
items[].pricenumberYesDecimal currency amountUnit price locked at checkout (does not change if Catalog prices update later)
items[].namestring | nullNoNullableBook title enriched via Get books over gRPCQueryv1.0.0Get books over gRPCReturns multiple Catalog books by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs (null if unavailable)

Behavior & Side Effects

  • Catalog enrichment: Reads recorded order items from PostgreSQL and enriches items[].name via Get books over gRPCQueryv1.0.0Get books over gRPCReturns multiple Catalog books by identifier through the book.v1 gRPC contract.Ownercatalog-experience-teamSchemaDiagramOpen docs when items exist.
  • No state mutation: Pure read query with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
401 UnauthorizedMissing, expired, or invalid Entra ID bearer tokenRe-authenticate and retry
403 ForbiddenCaller lacks Ordering API roles or scopesRequest a token with customer or admin role and Ordering scopes
404 Not FoundOrder does not exist, is soft-deleted, or belongs to another buyer outside the caller’s role scopeDisplay a not-found state; do not assume whether the ID belongs to another customer
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After duration before retrying

Get order schema

9 properties

Order detail response documented by the Ordering API OpenAPI contract.

idstring<uuid>
required
datestring<date-time>
required
totalnumber
required
statusstring
required
Allowed values: New Cancelled Completed
itemsarray[object]
required