Send All to invoice

Sweeps an account's entire balance into a single amountless Lightning invoice.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Pays an amountless bolt11 invoice with everything in the account, minus the Lightning routing fee. Used when an account holder wants to fully drain an account in one call without having to compute the sendable amount themselves.

The server:

Decodes the bolt11 and rejects any invoice that already has an amount baked in — the invoice must be amountless so the server can derive how much to send.

Minimum: the account balance must be ≥ 5 sats and must still cover the fee margin after the routing-fee estimate. Anything below that returns 400 insufficient balance after fees.

Optional webhook: pass webhookUrl and webhookSecret in the body to be notified when the payment settles.

Path Params
string
required

The account ID

Body Params
string
required

The invoice should be amountless.

string

The webhook url to get notified about the payment status.

string

Secret field for the webhook. Make sure to use a filtering on IP address to be perfectly secure.

Responses
200

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json