Skip to main content
POST
Get L402 Lightning invoice for generation

Body

application/json
offer_id
string
required

Unique identifier for the payment offer

payment_context_token
string
required

Token to identify the payment context

payment_method
string | null

Payment method to be used, e.g. lightning. The server also accepts the offer's payment_methods array.

Example:

"lightning"

Response

Payment request details including offer ID, payment request, and QR code SVG.

payment_request
Payment Request · object
required

Payment request details

version
string

Version of the payment request response schema

expires_at
string<date-time> | null

Expiration time for the payment request