Create Lightning invoice
Creates a single-use BOLT11 payment request for depositing an exact amount to the selected account over the Bitcoin Lightning Network.
Each successful request creates a new invoice. The invoice must be paid in full, in a single payment, before expires_at. A paid invoice cannot be reused, and payments to an expired invoice are rejected by the network. Use the deposit-methods endpoint to discover the Lightning deposit limits that apply to the account; amounts outside those limits are rejected with 400.
This operation is not idempotent. If a request times out or otherwise has an unknown outcome, create a new invoice instead of reusing the earlier response; unpaid invoices expire on their own.
Completed deposits appear in the account’s Portfolio transactions and are announced by transaction.deposit webhook events when a webhook subscription is configured.
Authorizations
Your public API key. Identifies the partner making the request.
HMAC signature over the request, computed with your private key.
Monotonically increasing nonce included in the request signature.
Path Parameters
Public identifier of the account that will receive the deposit.
1 - 64Body
Asset and exact amount the Lightning invoice should request.
Symbol of the asset to deposit over the Bitcoin Lightning Network. Use a symbol returned by the PWS Assets API, such as BTC.
1 - 16Exact decimal amount the invoice requests, denominated in asset_symbol and represented as a string to preserve precision.
1 - 64^[0-9]+(\.[0-9]+)?$Response
Lightning invoice created for the selected account.
Lightning invoice created for the selected account.
Single-use BOLT11 payment request for a Bitcoin Lightning Network deposit.