Skip to main content
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 require x-session-token + x-signature (browser-safe auth).

Request

SDK

cURL

Response

Notes:
  • remaining_time is milliseconds until expiration (clamped at 0).
  • remaining_seconds is seconds until expiration (clamped at 0).

Errors

  • 401 invalid session token/signature
  • 404 session not found / expired

Examples

  • Render a checkout UI by combining session details + available tokens + payment addresses.
Next: Payment status

Authorizations

x-session-token
string
header
required

Payment session token (opaque). Returned when creating an invoice; send on every request.

x-signature
string
header
required

Payment session signature in the format signature_hash.timestamp_ms (returned with the invoice/session).

Response

Session details

invoice_id
string<uuid>
amount_usd
number
description
string | null
expires_at
integer

Session expiration timestamp (epoch seconds).

invoice_status
enum<string>
Available options:
unpaid,
underpaid,
paid,
expired,
canceled
remaining_time
number | null

Milliseconds until expiration (clamped at 0).

remaining_seconds
integer | null

Seconds until expiration (clamped at 0).

amount_remaining_usd
number | null
merchant_name
string
merchant_email
string
network_environment
enum<string>
Available options:
mainnet,
devnet
locked_network
string | null

Network locked for remaining payment when status is underpaid.

locked_token_id
integer | null

Token locked for remaining payment when status is underpaid.

locked_payment_address
string | null

Current payment address for the locked network/token (underpaid only).