Skip to main content
UCP Pay is Clink’s API-style checkout flow for supported merchants. It covers product discovery, checkout preparation, user authorization, payment completion, order retrieval, and digital delivery.

When to use UCP Pay

Use UCP Pay when the merchant supports UCP and the checkout needs structured product, fulfillment, order, or digital-delivery state. Use Browser Pay when the Agent needs to operate a regular merchant web page.

Payment flow

  1. Discover a product with Catalog tools, or parse an exact product URL.
  2. Confirm the SKU, options, quantity, price, currency, and fulfillment details.
  3. Call create_checkout and continue according to its next_action.
  4. Use update_checkout when the user changes supported checkout details.
  5. Call complete_checkout once with the current confirmation identifiers.
  6. Read the UCP order and wait for digital delivery when needed.

Sequence diagram

UCP Checkout uses its own Operation and order lifecycle. Do not call Browser Pay’s confirm_result for a UCP payment.

Code examples

The examples below are grouped by integration method. MCP uses tools/call to call Clink tools; RESTful API uses the platform integration HTTP endpoints. Both methods must use the latest operationId, actionId, and revision from the preceding response rather than reusing expired confirmation identifiers.

MCP

Search products

Create checkout

Update checkout and complete payment

When next_action asks for shipping information, update the checkout using the current revision:
Read the updated response, then complete the checkout with the latest confirmation identifiers:

Read order and digital delivery

For digital goods, continue waiting for delivery:

RESTful API

The endpoint paths and fields for the RESTful API depend on the UCP service enabled for your platform. The examples below show the corresponding HTTP calls; replace {UCP_API_BASE_URL}, {USER_ACCESS_TOKEN}, and placeholder IDs from responses with actual values.

Search products

Create checkout

Update and complete checkout

Read order and digital delivery

For fields, scopes, and recovery rules, see Catalog and UCP Checkout.