REST API
All UCP REST endpoints live under https://{shop-domain}/api/ucp. Mutating endpoints accept Content-Type: application/json, except /oauth/*, which uses application/x-www-form-urlencoded. CORS is supported for browser-based integrations.
Service root: GET /api/ucp returns {"protocol":"ucp","version":"2026-08-25","status":"ok"} to confirm reachability. It is exempt from UCP-Agent, but subject to agent authentication unless anonymous access is enabled on the channel.
Standard headers
See Authentication for tier details.
Catalog
Pagination on /catalog/search: Pass pagination: { "limit": 20, "cursor": "..." } (default 20, max 50). Top-level limit and cursor are accepted as a legacy fallback.
Lookup identifiers on /catalog/lookup: The ids array accepts product IDs, variant IDs, handles, SKUs, and GTINs/EANs, resolved in precedence order: direct product or variant ID, then handle, then SKU and GTIN/EAN (so a direct ID or handle takes precedence over a numeric SKU).
- Batch limit: Duplicates are removed, and at most 50 unique identifiers are accepted per call. Sending more than 50 returns HTTP
400with coderequest_too_large. - Multi-match: One SKU or GTIN can match up to 5 products or variants, returning all matched products and variants.
- Response shape: Each matched product includes only the matching variants, and each variant carries
inputs: [{ "id": "...", "match": "exact" | "featured" }](exactfor variant ID, SKU, or GTIN;featuredfor parent product ID or handle). Unmatched identifiers appear inmessagesastype: "info",code: "not_found". - Lookup filters: Optional
filters(price,available,on_sale) narrow the returned variants; other filter keys return anunsupported_filterwarning.
Single product on /catalog/product: Accepts one product ID or variant ID only (not handles, SKUs, or GTINs) and returns { "ucp": { ... }, "product": { ... } }.
Context object (optional on catalog calls): Pass language (BCP 47), currency (ISO 4217), address_country, address_region, and postal_code. See Money and localization for language fallback and currency rules.
Search responses include products and pagination (with has_next_page, cursor, and total_count). Lookup and product responses return full product objects including variants, pricing, and customization metadata, with lookup narrowing variants to the matched variants.
Carts
Line items reference a variant by its canonical numeric variant ID (variants[].id from catalog search, lookup, or product) in item.id, plus quantity. Do not pass SKUs, handles, GTINs, or parent product IDs in item.id. Products with customizations require a customizations array; see Product customizations.
Cart responses include:
Idempotency: POST /carts and POST /carts/{id}/cancel honor the Idempotency-Key header. Keys are cached for 24 hours with a request fingerprint and scoped per channel and authenticated caller identity (per downstream profile origin for broker platform keys). Replaying the same request returns the original response; reusing a key with a different request payload or target returns HTTP 409 (idempotency_conflict).
Checkout sessions
POST /checkout-sessions returns 201. POST /checkout-sessions, POST .../complete, and POST .../cancel honor Idempotency-Key with the same 24-hour TTL, caller scoping, and 409 idempotency_conflict behavior as carts.
Copy fulfillment method, group, and option IDs from the session instead of inventing them. When identity linking is negotiated and the request has no buyer token, the session includes an identity_optional message and checkout still proceeds as a guest.
See Getting started: Checkout for a runnable sequence.
Orders
Token and Signed callers can read an order by the opaque public order ID returned on checkout without buyer linking.
To read orders as a linked buyer (User tier, scoped to that customer’s own orders), send Authorization: Bearer ucp_at_... with scope dev.ucp.shopping.order:read together with the agent’s own credential (X-API-Key: fq_secret_... or fq_platform_..., or RFC 9421 signature headers). Sending Authorization: Bearer ucp_at_... alone returns 401. A buyer token without dev.ucp.shopping.order:read returns 403 and an insufficient_scope WWW-Authenticate challenge. See Identity linking.
Locations
Both /locations/search and /locations/lookup require a postal_code in serves.address (preferred when serves.address is present) or in context. Omitting a postal code returns HTTP 200 with a validation_error message.
Permalinks
Permalink routes live on the storefront root outside /api/ucp, require no agent authentication, and return a 303 redirect (Cache-Control: no-store) to the initialized hosted checkout session. Read the advertised endpoint from dev.ucp.shopping.permalink in /.well-known/ucp.
Loyalty, buyer consent, and invoice payment terms extend the cart, checkout, catalog, and order payloads listed in the capability reference. Order webhook delivery and verification are covered in Responses and errors.
OAuth
Both endpoints take application/x-www-form-urlencoded and do not use the channel API key or UCP-Agent. See Identity linking.
Money and localization
- All monetary amounts are integers in minor currency units (cents, öre, etc.).
- Currency codes are ISO 4217 three-letter strings.
- Country codes are ISO 3166-1 alpha-2 strings.
context.language(BCP 47) localizes product content on catalog and cart calls, falling back to the channel’s default language with alanguage_unavailableinfo message when unsupported.context.currencydoes not convert prices. Prices always return in the store’s currency; on catalog calls,context.currencyonly determines whetherfilters.priceapplies (a mismatch emits aprice_filter_ignoredwarning).
Product customizations
Many Finqu products support buyer customizations such as text fields, option groups, and required selections. The catalog returns customization definitions in variant metadata. When adding customized items to a cart:
- Search for or look up the product first.
- Read
metadata.customizationson the chosen variant. - Include a
customizationsarray on each line item with{ "id": "...", "value": "..." }, whereidis the option ID (options[].id). - Provide at least one selection for every required customization group.
Missing or invalid customizations return validation errors with field-level messages.