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

Read the architecture guide →

List orders

Returns Orders with pagination and optional status and Buyer filters.

Order Lifecycle
GET/api/v1/orders

ListOrders 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) to return a paginated list of order summaries with optional status and buyer filters. Non-administrator callers are automatically scoped to their own authenticated Microsoft Entra ID buyer ID, while administrators (admin role) can filter across buyers.

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 (service path /api/v1/orders)
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

Query Parameters

NameTypeRequiredConstraintsDescription
PageIndexintegerNoDefault 1; must be > 01-based page number to retrieve
PageSizeintegerNoDefault 20; must be > 0Maximum number of order summaries per page
StatusstringNoEnum: New, Cancelled, CompletedFilters orders by lifecycle status
BuyerIdstring (uuid)NoValid UUIDFilters orders by buyer ID for admin callers; overridden with the caller’s own buyer ID for non-admin callers

Response Headers (200 OK)

NameTypeRequiredConstraintsDescription
Pagination-CountstringYesInteger string (e.g., 57)Total number of orders matching the active status and buyer filters across all pages
LinkstringYesComma-separated <uri>;rel=<rel> entriesNavigation URIs with first, self, last, and conditional previous / next relations preserving query filters

Success Response (200 OK)

Returns a JSON array of order summary objects. To retrieve line items for an order, call Get orderQueryv1.0.0Get orderReturns Order details, including the recorded item quantities and prices.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs.

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 recorded amount for the order
[].statusstringYesEnum: New, Cancelled, CompletedCurrent lifecycle status of the order

Behavior & Side Effects

  • Role-scoped filtering: Standard customers only see their own orders (any BuyerId parameter is overridden); administrators can filter across all buyers.
  • No state mutation: Pure read query with no database writes or integration events.

Error Responses

Status / CodeConditionClient Recovery Action
400 Bad RequestPageIndex <= 0, PageSize <= 0, unrecognized Status enum value, or malformed BuyerId UUIDCorrect invalid query parameters; do not retry unchanged
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
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After duration before retrying

List orders schema

4 properties
Array Schemaarray[object]

This schema defines an array of objects. Each item in the array has the properties shown below.

Order list response documented by the Ordering API OpenAPI contract.

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