Get payment session details
Payment Session Details
Fetch the current payment session context for a browser/client checkout.
GET
Get payment session details
Overview
Use this endpoint in a browser/client checkout to fetch the session’s invoice context (amount, addresses, supported tokens, and more).Authentication
Payment session endpoints requirex-session-token + x-signature (browser-safe auth).
Request
SDK
cURL
Response
remaining_timeis milliseconds until expiration (clamped at 0).remaining_secondsis seconds until expiration (clamped at 0).
Errors
401invalid session token/signature404session not found / expired
Examples
- Render a checkout UI by combining session details + available tokens + payment addresses.
Authorizations
Payment session token (opaque). Returned when creating an invoice; send on every request.
Payment session signature in the format signature_hash.timestamp_ms (returned with the invoice/session).
Response
Session details
Session expiration timestamp (epoch seconds).
Available options:
unpaid, underpaid, paid, expired, canceled Milliseconds until expiration (clamped at 0).
Seconds until expiration (clamped at 0).
Available options:
mainnet, devnet Network locked for remaining payment when status is underpaid.
Token locked for remaining payment when status is underpaid.
Current payment address for the locked network/token (underpaid only).

