Integration guide
Architect a production shopping agent integration against Finqu stores using the Universal Commerce Protocol (UCP) . For endpoint contracts, authentication tiers, and MCP tool schemas, see the UCP API reference.
Audience: Developers building shopping agents, agent platforms, or commerce integrations.
Protocol version: 2026-08-25
Integration flow
Every UCP integration follows seven stages:
- Discover the merchant profile at
https://{shop-domain}/.well-known/ucp. - Authenticate using a supported agent tier.
- Negotiate capabilities by declaring your platform profile.
- Browse the catalog and build a cart with canonical variant IDs.
- Inspect the
ucpblock andmessagesarray on every response. - Complete checkout with supported fulfillment and payment handlers (falling back to Finqu’s hosted checkout handoff).
- Access orders where enabled and authorized.
All UCP traffic is scoped to the merchant’s storefront domain. Domains without UCP enabled return 404.
Choose a transport
Finqu exposes shopping and common services over REST and optional MCP:
Check the store’s discovery profile to see which transports are active. See REST API and MCP transport for full wire contracts.
Discovery profile
Fetch the public, cacheable discovery profile before calling any capability endpoint:
GET https://{shop-domain}/.well-known/ucpKey fields to inspect:
Treat the store’s discovery profile as the source of truth for what that channel supports.
Capabilities
Capabilities use reverse-DNS identifiers (such as dev.ucp.shopping.cart). Finqu computes the active set per request by intersecting what the merchant advertises with what your platform profile declares.
The 2026-08-25 release covers catalog search and lookup, carts, checkout, fulfillment, discounts, orders, identity linking, buyer consent, permalinks, split payments, invoice payment terms, pickup locations, loyalty, and Finqu product customizations (com.finqu.schemas.shopping.customizations, version 2026-11-24). Installed apps can also register additional capabilities and service bindings on a channel.
See the capability reference for the full list and specification links. Respect each capability’s extends relationships, store configuration (such as allowed fulfillment types and split-payment rules), and required authentication tier.
Capability negotiation
Negotiation keeps both sides aligned on protocol version and supported capabilities. Publish your platform profile at a public HTTPS URL (for example https://your-platform.example/.well-known/ucp) and declare it on every request.
On REST capability routes, UCP-Agent is required; omitting it returns 400 invalid_profile_url. (If UCP-Agent is sent without a non-empty profile parameter, Finqu uses the store’s full advertised capability set.) On MCP, every tool call requires meta["ucp-agent"].profile.
REST
Send the UCP-Agent header in RFC 8941 dictionary syntax:
UCP-Agent: profile="https://your-platform.example/.well-known/ucp"MCP
Include your platform profile in tool call metadata:
{
"meta": {
"ucp-agent": {
"profile": "https://your-platform.example/.well-known/ucp"
}
}
}Negotiation rules
- Protocol versions must match
2026-08-25(if your profile’s top-levelucp.versiondiffers, Finqu also checksucp.supported_versions["2026-08-25"]before returning422 version_unsupported). - Only capabilities declared in both profiles are active for the request.
- Extension capabilities whose parent capability was not negotiated are dropped automatically.
- Inspect the returned
ucpblock andmessagesarray on every response against the advertised schema.
Building a shopping flow
1. Search or look up products
Use catalog search to browse products and /catalog/lookup to resolve up to 50 product IDs, variant IDs, handles, SKUs, or GTINs/EANs into canonical numeric variant IDs (variants[].id). Pass context.language to localize copy; prices always return in the store’s currency (see REST API: Catalog and Money and localization).
2. Handle product customizations
Check metadata.customizations on the chosen variant before adding it to a cart, and supply valid option IDs for all required customization groups. See REST API: Product customizations for the required line-item format.
3. Create and update carts
Pass canonical numeric variant IDs (variants[].id) in line_items[].item.id rather than SKUs, handles, GTINs, or parent product IDs. Send Idempotency-Key on cart creation and cancellation (and on checkout creation, completion, and cancellation) to prevent duplicate side effects; reusing a key with a different payload returns 409 idempotency_conflict.
See REST API: Carts for the full cart contract and response fields.
4. Complete checkout
Drive checkout using the negotiated checkout, fulfillment, and discount capabilities, copying method, group, and option IDs from the session response. See Getting started: Checkout for a runnable walkthrough.
Finqu always advertises com.finqu.hosted_checkout (redirect and gift-card instruments), and stores with installed payment apps (for example Klarna via Paytrail) can also advertise app-registered payment handlers. On checkout responses, Finqu intersects app handlers with the ucp.payment_handlers in your platform profile. Submitting a credentialed app instrument on completion settles payment directly (or returns a provider continue_url), while any remaining balance without an app instrument escalates to com.finqu.hosted_checkout via continue_url. Read supported fulfillment methods and split-payment rules from each store’s profile instead of hardcoding them; the discovery profile’s checkout_url is never a live payment session.
5. Continue after purchase
Use the order capability when authorized, and use Identity linking when you need buyer-scoped order access or customer-attached checkouts. Where enabled on the channel, pickup location and loyalty capabilities extend the shopping experience; inspect their configuration in the discovery profile before calling them.
MCP transport
When the merchant enables the MCP server on the channel, the same shopping and common capabilities are exposed as Streamable HTTP MCP tools at https://{shop-domain}/mcp. Every tool call requires meta["ucp-agent"].profile. See MCP transport for the 16 tools, argument wrapping, idempotency requirements, and error shapes.
Integration checklist
- Enable UCP on a Finqu storefront domain (Activating UCP).
- Fetch
/.well-known/ucpand read advertised services, capabilities, and payment handlers. - Configure channel API keys, platform keys, or RFC 9421 signed requests (Authentication).
- Publish your platform profile at a public HTTPS
/.well-known/ucpURL. - Resolve products and canonical variant IDs through the catalog endpoints.
- Create and update carts with any required product customizations.
- Drive checkout and hand the buyer
continue_urlwhenever payment escalation is required. - Add order reads and Identity linking where authorized.
- Handle
messages, HTTP200business errors, rate limits, and idempotency in your agent loop (Responses and errors).
Specification references
Finqu implements the canonical UCP 2026-08-25 specification. The spec and schema URLs inside each store’s discovery profile are authoritative for that store: