Use this file to discover all available pages before exploring further.
Your merchant server needs three things to accept UCP payments through Prism: a discovery endpoint, a checkout call, and a settle call. Everything else (token math, chain selection, x402 formatting) is handled by Prism.
When a platform creates a checkout session (POST /checkout-sessions), call Prism to get the x402 payment requirements for that order:
POST https://prism-gw.fd.xyz/api/v2/merchant/checkout-prepareX-Project-Identify-Token: {YOUR_PRISM_IDENTIFY_TOKEN}Content-Type: application/json{ "amount": "12000", "currency": "USD", "resource": { "url": "https://merchant.example/checkout-sessions/sess_abc123", "description": "Coldplay World Tour - Floor Standing GA" }}
Return the payment_handlers field from Prism’s response directly inside your checkout session response. The config field contains x402 payment requirements resolved against your Prism account:
Amounts are in token base units. The tokens that appear in accepts depend on what you have enabled in your Prism Console:
Token
Decimals
Example for $120.00
USDC
6
"120000000"
FDUSD
18
"120000000000000000000"
UCP requires payments to be bound to the specific product or service being
purchased. Set resource.url to the unique checkout session URL. The agent
wallet includes this URL in the signed authorization, tying the credential to
that session.
When the platform completes checkout (POST /checkout-sessions/{id}/complete), extract the credential from payment.instruments[0].credential and forward it to Prism’s settlement endpoint:
POST https://prism-gw.fd.xyz/api/v2/payment/settleX-Project-Identify-Token: {YOUR_PRISM_IDENTIFY_TOKEN}Content-Type: application/json{ ...entire credential object from the platform... }
Return the confirmed order to the platform with payment.status: "settled" and payment.transaction set to the returned txHash.
Do not call the settle endpoint more than once per checkout session. If a
complete request arrives for an already-settled session, return the previous
order without re-submitting to Prism.
Prism Console
Configure your chains, tokens, and settlement address
End-to-End Flow
See a complete request/response trace for the full purchase cycle