Skip to main content

Order Management

4.1 Capability Identifier

The order management namespace is dev.ucp.shopping.order. It covers the complete post-checkout lifecycle — from order confirmation through final delivery (or return and refund).

4.2 Line Item Status

UCP manages orders at the line item level, giving each product its own independent status tracking. This supports complex scenarios such as partial shipments and partial refunds:

4.3 Fulfillment Events

UCP defines standardized fulfillment event types that cover every logistics milestone from shipment to delivery: Each fulfillment event includes a timestamp, description, and optional tracking information:

4.4 Adjustments

After an order is placed, various adjustments may be necessary. UCP defines standardized adjustment types:

Return / Refund Request

Response:

4.5 Querying Orders

Returns the complete order state, including all line items, fulfillment events, and adjustment history.

Listing Orders

4.6 Webhook Notifications

When an order status changes, the merchant proactively notifies the AI agent via Webhooks. UCP Webhooks use RFC 9421 HTTP Message Signatures to ensure data integrity and source authenticity.

Webhook Request Format

Webhook Signature Verification

When an AI agent receives a Webhook, it must verify the signature:
  1. Parse Signature-Input to extract signature parameters (covered components, creation time, key ID)
  2. Retrieve the corresponding public key (JWK) by kid from the merchant’s /.well-known/ucp Profile
  3. Verify the request body’s SHA-256 hash using the Content-Digest header
  4. Verify the ES256 signature in the Signature header using the public key
  5. Check the created timestamp and reject expired signatures (recommended window: 5 minutes)

Webhook Event Types

4.7 Order Lifecycle Overview


Next chapter: Product Data and Transports — MCP tools, four transport mechanisms, and data formats