Pay a Lightning Invoice
POST/api/v2/:coin/wallet/:id/lightning/payment
Submits a payment for a BOLT #11 lightning invoice. The payment is signed with the user's authentication key and submitted to MagFi. If the payment requires additional approvals (based on wallet policy), returns pending approval details. Otherwise, the payment is immediately submitted to the Lightning Network.
Fee limits can be controlled using either feeLimitMsat (absolute limit) or feeLimitRatio
(as a ratio of payment amount). If both are provided, the more restrictive limit applies.
For zero-amount invoices (invoices without a specified amount), the amountMsat field is required.
Request
Responses
- 200
- 400
OK
Bad Request
Environment: