Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Consumer integration: REST API

Integrate with the Commerce Orchestrator by calling its deployed HTTP service. No library dependency in your app; use any HTTP client and the JSON API.

Integration surface

Deploy the orchestrator as an HTTP service (orchestrator-server). Your app (Agent, backend, or other clients) calls REST endpoints under /api/v1. The service runs the orchestration logic and routes to your catalog, pricing, tax, geo, payment, and receipt APIs via its own configuration (see Config reference and deploy/README.md).

Endpoints

AreaEndpoints
DiscoveryGET /.well-known/ucp (UCP 2026-08-25 business profile with keys[] and payment_handlers; ACP/MCP/A2A/AP2 metadata under the top-level orchestrator member)
Cart & checkoutPOST /api/v1/cart/commands, /api/v1/ucp/cart and /api/v1/ucp/checkout routes, POST /api/v1/checkout/execute, POST /api/v1/a2a/cart, POST /api/v1/a2a/checkout
ACP/api/v1/acp/checkout_sessions (+ complete/cancel), POST /api/v1/acp/delegate_payment — require API-Version: 2026-04-17
Catalog & ordersGET /api/v1/catalog/items/:id, /api/v1/ucp/catalog routes, GET /api/v1/orders/:id, GET /api/v1/ucp/orders/:id
Identity linkingPOST /api/v1/a2a/identity/link (A2A-Version: 1.0 or 0.3)
A2A 1.0GET /.well-known/agent-card.json, POST /api/v1/a2a/message:send, POST /api/v1/a2a/message:stream (SSE), POST /api/v1/a2a/jsonrpc (JSON-RPC, including UCP’s A2A checkout binding)
PaymentsPOST /api/v1/payments/capture, void, refund; GET /api/v1/ucp/payment-handlers
MCPPOST /api/v1/mcp/message (dual-era: 2026-07-28 + legacy initialize)
EventsPOST /api/v1/events/incoming (idempotent ingest)
OperationsPOST /api/v1/ops/outbox/process, GET /api/v1/ops/dead-letter, POST /api/v1/ops/dead-letter/replay, POST /api/v1/ops/reconciliation
HealthGET /health/live, GET /health/ready, GET /metrics

In production the service requires a Bearer token; send Authorization: Bearer <token> on every request. The token is the value configured as AUTH_BEARER_TOKEN on the server.

Do not modify this repository

  • Do not fork to change orchestrator behavior. Consume the deployed API; fixes and features belong upstream.
  • Pin to a released tag (e.g. v0.11.0) for the deployment you use. Upgrade using release notes and CHANGELOG.md.

Summary

You doYou do not
Call the deployed REST API with HTTP + JSONFork or patch this repo
Configure the orchestrator service to point at your catalog (and other backends) via its env/configImplement provider code in your app; the service owns adapters
Send Bearer token when the service is in production modeCall without auth in production

For request/response shapes, error handling, and deployment, see Consumption guide (REST API) and deploy/README.md.