X-API-Key header. Request and response bodies are JSON.
x402 Settlement
Facilitator endpoints for the x402 payment flow. The server-side SDKs call these automatically. Use them directly for custom integrations.Get Payment Requirements
Generate x402 payment requirements for a resource. Returns the accepted payment methods, token amounts, and settlement addresses.| Field | Type | Required | Description |
|---|---|---|---|
resourceUrl | string | Yes | URL of the protected resource |
requestedAmount | number | Yes | Amount to charge (in the resource’s currency) |
description | string | No | Human-readable description of the resource |
mimeType | string | No | MIME type of the resource content |
PaymentRequiredResponse)
accepts array contains one entry per token/chain combination the merchant supports. Clients pick one and construct a signed authorization against it.
Verify Payment
Verify a signed x402 payment authorization without settling it on-chain.PaymentSubmissionRequest2)
| Field | Type | Required | Description |
|---|---|---|---|
paymentPayload | object | Yes | Signed payment authorization (see below) |
paymentRequirements | object | Yes | The accepted payment requirement this authorization targets |
VerifyResponse2)
| Field | Type | Description |
|---|---|---|
isValid | boolean | Whether the authorization is valid |
payer | string | Payer wallet address (if valid) |
invalidReason | string | Reason for rejection (if invalid) |
Settle Payment
Settle a verified payment on-chain. Executes thetransferWithAuthorization (ERC-3009) call to move tokens from the payer to the merchant.
PaymentSubmissionRequest2)
Same structure as Verify Payment.
Response (SettleResponse)
| Field | Type | Description |
|---|---|---|
success | boolean | Whether settlement succeeded |
payer | string | Payer wallet address |
transaction | string | On-chain transaction hash |
network | string | Chain the settlement executed on |
errorReason | string | Reason for failure (if unsuccessful) |
502 Bad Gateway with a ProblemDetails body if the on-chain transaction fails.
Merchant
Endpoints for UCP merchants to build discovery profiles and prepare checkout sessions.Get Payment Profile
Returns thepayment_handlers block for your UCP discovery profile. Include this in your storefront’s UCP profile so agents can discover your supported payment methods.
PaymentProfileResponse)
404 if the merchant is not configured in Prism Console.
Prepare Checkout
Convert a fiat amount into x402 payment handler entries with resolved token amounts. Use this when a buyer selects items and you need to build the checkoutpayment_handlers block with concrete token prices.
| Field | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | Fiat amount (e.g. "10.00") |
currency | string | Yes | Fiat currency code (e.g. "USD") |
resource | object | Yes | Resource being purchased |
resource.url | string | Yes | URL identifying the resource |
resource.description | string | No | Human-readable description |
CheckoutPrepareResponse)
accepts entry per token/chain combination the merchant supports, with amount resolved from the fiat price. Include this in your UCP checkout response so agents can select a payment option and authorize the transfer.
Returns 404 if the merchant is not configured in Prism Console.
Gateway
Public endpoints serving the UCP handler reference. No authentication required.Handler Schema
Returns the JSON schema for thexyz.fd.prism_payment handler.
Handler Specification
Returns the human-readable specification for thexyz.fd.prism_payment handler in Markdown format.