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

Read the architecture guide →

List buyers

Returns Buyer profiles with pagination.

Customer Management
GET/api/v1/buyers

ListBuyers 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/buyers) to return a paginated slice of registered buyer profiles for store administrators. The endpoint requires the Microsoft Entra ID admin policy and emits total item counts and navigation URIs in HTTP response headers.

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/buyers (service path /api/v1/buyers)
Authentication & AuthorizationMicrosoft Entra ID JWT — admin policy (role admin 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 buyer profiles per page

Response Headers (200 OK)

NameTypeRequiredConstraintsDescription
Pagination-CountstringYesInteger string (e.g., 128)Total number of buyer profiles across all pages
LinkstringYesComma-separated <uri>;rel=<rel> entriesNavigation URIs with first, self, last, and conditional previous / next relations

Success Response (200 OK)

Returns a JSON array of buyer summary objects.

NameTypeRequiredConstraintsDescription
[].idstring (uuid)YesValid UUIDUnique identifier of the buyer profile
[].namestring | nullYesNullableBuyer display name (null when unset)
[].addressstring | nullYesNullableFormatted shipping address (null when unset)

Behavior & Side Effects

  • Admin-scoped listing: Returns paginated buyer profiles from PostgreSQL with Pagination-Count and Link headers.
  • 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, or non-integer paging valueFix paging parameters to positive integers; do not retry unchanged
401 UnauthorizedMissing, expired, or invalid Entra ID bearer tokenRe-authenticate and retry
403 ForbiddenCaller does not satisfy the admin authorization policyAuthenticate with an administrator account
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After duration before retrying
  • 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 — Service overview, persistence, and endpoints.
  • BuyerEntityv1.0.0BuyerRepresents a customer's ordering profile and delivery address within the Ordering bounded context.Ownercommerce-fulfillment-teamOpen docs — Buyer entity model.
  • Get buyerQueryv1.0.0Get buyerReturns the Buyer profile selected by identifier, subject to the caller's authorization.Ownercommerce-fulfillment-teamSchemaDiagramOpen docs — Retrieve a single buyer profile.

List buyers schema

3 properties
Array Schemaarray[object]

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

Buyer list response documented by the Ordering API OpenAPI contract.

idstring<uuid>
required
namestring | null
required
addressstring | null
required