Skip to main content
Reference for each Prism Gateway API endpoint. See Introduction for base URLs, authentication, and error handling. All authenticated endpoints require the 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.
Request Body
Response (PaymentRequiredResponse)
The 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.
Request Body (PaymentSubmissionRequest2) Response (VerifyResponse2)

Settle Payment

Settle a verified payment on-chain. Executes the transferWithAuthorization (ERC-3009) call to move tokens from the payer to the merchant.
Request Body (PaymentSubmissionRequest2) Same structure as Verify Payment. Response (SettleResponse)
Returns 502 Bad Gateway with a ProblemDetails body if the on-chain transaction fails.

Merchant

Endpoints for UCP and ACP merchants to build discovery profiles and prepare checkout sessions. The endpoints below are the UCP variants; ACP merchants use the parallel /api/v2/merchant/acp/handlers and /api/v2/merchant/acp/payment-requirements endpoints with identical request/response shapes.
The generic /api/v2/merchant/payment-profile and /api/v2/merchant/checkout-prepare endpoints still work but are deprecated aliases of the UCP endpoints below. Use the protocol-split endpoints for new integrations.

Get Payment Profile

Returns the payment_handlers block for your UCP discovery profile. Include this in your storefront’s UCP profile so agents can discover your supported payment methods.
Response (PaymentProfileResponse)
Returns 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 checkout payment_handlers block with concrete token prices.
Request Body
Response (CheckoutPrepareResponse)
The response contains one 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 the xyz.fd.prism_payment handler.

Handler Specification

Returns the human-readable specification for the xyz.fd.prism_payment handler in Markdown format.
Last modified on July 10, 2026