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
Severity
The severity field indicates whether the agent can retry or must escalate to the buyer:
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.ordercapability, Finqu readsconfig.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, andorder.fulfilled. - Headers and signing: Outbound
POSTdeliveries carryWebhook-Id,Webhook-Timestamp,UCP-Event,UCP-Agent, an RFC 9530Content-Digest(sha-256), and RFC 9421Signature-Input/Signatureheaders signed with raw 64-byter||sES256 (intentionally omittingcreatedso retries remain verifiable againstkeys[]). 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.