Skip to Content
ReferenceUCP API ReferenceResponses & Errors

Responses and errors

Every UCP REST response includes protocol metadata. Inspect both the HTTP status and the ucp and messages fields on every call, because business errors return HTTP 200.

Success envelope

Successful REST responses are JSON objects with a top-level ucp block alongside resource fields (products, id, line_items, etc.):

{ "ucp": { "version": "2026-08-25", "status": "success", "capabilities": { } } }

Error envelope

UCP REST uses three error response shapes depending on whether the failure is a business outcome, a protocol rejection, or an authentication/input error. Checking only status >= 400 misses HTTP 200 business errors.

1. Business errors (HTTP 200)

Per the UCP REST binding, business outcomes return HTTP 200 with the standard UCP error envelope (ucp.status: "error", messages, and an optional fallback continue_url):

{ "ucp": { "version": "2026-08-25", "status": "error", "capabilities": {} }, "messages": [ { "type": "error", "code": "validation_error", "content": "Human-readable description", "severity": "recoverable" } ], "continue_url": "https://{shop-domain}/" }

Finqu uses this shape for cart and checkout validation_error, customization validation errors (customization_*), not_found (cart, checkout, order, and /catalog/product), cart_*_failed / cart_unavailable, checkout_*_failed / cancel_failed, location validation_error / cart_error, and capabilities_incompatible.

2. Protocol errors (HTTP 4xx, bare body)

Transport and protocol-level rejections return a non-200 HTTP status with a bare JSON object containing code, content, and optional continue_url, without a ucp block or messages array:

{ "code": "invalid_profile_url", "content": "The UCP-Agent header is required.", "continue_url": "https://{shop-domain}/" }

Finqu uses this shape for 400 invalid_profile_url (missing or invalid UCP-Agent), 409 idempotency_conflict, 422 profile_malformed, 422 version_unsupported, and 424 profile_unreachable.

3. Authentication, policy, and input errors (HTTP 4xx/5xx)

Authentication, tier, rate-limit, availability, OAuth scope, and catalog/location request-shape failures return a 4xx or 5xx HTTP status with the { "ucp": { "version": "2026-08-25", "status": "error" }, "messages": [...] } envelope. Examples include 400 validation_error, request_too_large, digest_mismatch, algorithm_unsupported, 401 unauthenticated, identity_required, signature_*, key_not_found, 403 tier_denied, profile_mismatch, insufficient_scope, 404 channel_not_found, 424 profile_unreachable, 429 rate_limited, 500 catalog_error, and 503 service_unavailable.

Common error codes

CodeHTTP statusShapeDescription
not_found200UCP envelopeCart, checkout session, order, or product ID does not exist (also used as an info message for unmatched IDs in /catalog/lookup)
validation_error200 / 400UCP envelopeInvalid request payload (200 on cart, checkout, and location postal-code errors; 400 on catalog and missing location ids)
customization_*200UCP envelopeMissing or invalid product customization (customization_required, customization_unknown_option, customization_invalid_id, customization_not_supported, customization_min_length, customization_max_length)
capabilities_incompatible200UCP envelopePlatform and merchant profiles have no compatible capability intersection
request_too_large400UCP envelope/catalog/lookup received more than 50 unique identifiers
invalid_profile_url400Bare protocolMissing UCP-Agent header or non-public/non-HTTPS profile URL
unauthenticated401UCP envelopeMissing, invalid, or expired credentials, or Bearer ucp_at_... sent without an agent credential
identity_required401UCP envelopeInvalid, expired, revoked, or mismatched buyer token (includes WWW-Authenticate)
tier_denied403UCP envelopeAuthentication tier not allowed for this resource bucket
profile_mismatch403UCP envelopePlatform key or signing key does not match the claimed UCP-Agent profile origin
insufficient_scope403UCP envelopeBuyer token lacks the required OAuth scope (includes WWW-Authenticate)
channel_not_found404UCP envelopeStorefront domain not found or UCP is not enabled on the channel
idempotency_conflict409Bare protocolIdempotency-Key was already used with a different request payload or target
profile_malformed422Bare protocolFetched platform profile is not valid UCP JSON
version_unsupported422Bare protocolPlatform profile does not support protocol version 2026-08-25
profile_unreachable424Bare protocol / UCP envelopePlatform or signer profile could not be fetched
rate_limited429UCP envelopeRate limit exceeded (includes Retry-After)
service_unavailable503UCP envelopeService temporarily unavailable (includes Retry-After; safe to retry)

Severity

The severity field indicates whether the agent can retry or must escalate to the buyer:

SeverityAction
recoverableRetry or adjust the request
unrecoverableStop and report the error
requires_buyer_inputCollect buyer input (triggers status: "requires_escalation" on checkout)
requires_buyer_reviewAsk the buyer to authorize or review (for example identity_required, insufficient_scope, or policy rules; also triggers status: "requires_escalation" on checkout)

Rate limiting

When a caller exceeds its quota, the API returns HTTP 429 with a rate_limited error (severity: "recoverable"). Responses include X-RateLimit-Remaining and X-RateLimit-Reset headers, and 429 responses include Retry-After in seconds. Transient 503 (service_unavailable) responses also include Retry-After and can be retried.

See Authentication: Rate limits for resource buckets and tier quotas.

Order notifications and signing keys

The release profile advertises the dev.ucp.shopping.order capability and publishes the store’s public ES256 (P-256) JWK in the top-level keys array.

  • Subscription registration: When a checkout is created with a negotiated dev.ucp.shopping.order capability, Finqu reads config.webhook_url (must be a public HTTPS URL) from your platform profile and automatically registers an order webhook subscription for that checkout’s originating platform.
  • Events: Finqu delivers full UCP Order JSON snapshots for order.created, order.updated, and order.fulfilled.
  • Headers and signing: Outbound POST deliveries carry Webhook-Id, Webhook-Timestamp, UCP-Event, UCP-Agent, an RFC 9530 Content-Digest (sha-256), and RFC 9421 Signature-Input / Signature headers signed with raw 64-byte r||s ES256 (intentionally omitting created so retries remain verifiable against keys[]). Follow the order specification  and the store’s advertised schemas for verification requirements.

UCP order notifications are separate from Events in Work Hub, which trigger Workers and Playbooks, and from Admin REST webhooks, which notify external applications.