Poll (or long-poll) a payment session
Changed onRequest
- Base URLhttp://localhost:3773
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
When true, the server blocks up to 60 seconds waiting for the session to transition to a terminal state (completed, failed, expired). Useful to avoid tight-loop polling.
Response
Payment session state
Example response
{
"asset": "USDC",
"network": "base-sepolia"
}Changes
- breaking
the response's body type changed from
objectto no type for status - breaking
removed the media type
application/jsonfor the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
api operation id
getPaymentStatusremoved and replaced with - info
the endpoint scheme security
BearerAuthwas removed from the API - info
api tag
Payment (x402)added - info
api tag
Paymentremoved - info
added the new optional
queryrequest parameterwait - info
added
subschema #2to the response bodyallOflist for the response status - info
removed the non-success response with the status
- breaking