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. The UCP flow has two calls: fetch the handlers declaration for your UCP version, and call Payment Requirements at checkout. ACP merchants use the same Payment Requirements call and fetch the declaration from /api/v2/merchant/acp/handlers, which needs the API key.

Get Handlers

Returns the xyz.fd.prism_payment handler declaration for a UCP version. Put it in your storefront’s UCP profile. Cache it. This route is public and needs no API key.
It returns the 2026-10-07 handler for UCP 2026-01-23, 2026-04-08 and 2026-08-25. See Prism contract selection.
An unsupported version returns 422 version_unsupported. The unversioned GET /api/v2/merchant/ucp/handlers stays as a legacy route for older plugins. The versioned /api/v2/merchant/ucp/{ucpVersion}/handlers form was removed. Use the route above. Response (UcpHandlersResponse)
Unsupported version (422)

Payment Requirements

Convert a fiat amount into the raw x402 PaymentRequired object. Call it at checkout, when a buyer selects items. The response has no protocol wrapper and does not depend on the UCP version. Requires the API key.
Request Body
Response
The response has one accepts entry per token and chain the merchant supports, with amount resolved from the fiat price. It may also include promotions. Returns 404 if the merchant is not configured in Prism Console. Build the UCP checkout entry from the handlers declaration for your UCP version and this object:

Gateway

Public endpoints serving the UCP handler reference. No authentication required.

Handler Schema

Returns the JSON schema for the xyz.fd.prism_payment handler. The handler config schema is the entry schema. The instrument schema is linked at $defs["xyz.fd.prism_payment"].instrument.

Handler Specification

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