Create lightning payment quote
Endpoint accepts idempotency-key header to prevent the same quote from being created twice. In case of a duplicate request, the error
code DUPLICATE_PAYMENT_QUOTE containing the id of the original quote (paymentQuoteId) will be returned.
The key should be a random v4 UUID to avoid false collisions.
Required scopes:
- partner.payment-quote.lightning.create
| Header Parameters |
|---|
idempotency-key uuid |
| Request Body — REQUIRED | |||
|---|---|---|---|
lnInvoice string — REQUIREDPossible values: 1 ≤ length LN invoice to pay. | |||
sourceCurrency stringPossible values: [ Currency to send from. Defaults to the user's default currency. | |||
amount objectAmount to send if using zero amount invoice. Must be omitted otherwise. FeePolicy defaults to EXCLUSIVE.
|
| Responses | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200OK
|