Pay over Lightning
Pays a bolt11 invoice or a Lightning address. Send one of `invoice` or `lightning_address`. `amount_sat` is required with a Lightning address, and refused with an invoice, which carries its own amount.
Authorization
KeyID Timestamp Nonce Signature Your key id, gyv_k_live_... or gyv_k_sandbox_....
In: header
Unix seconds. Must be within 5 minutes of our clock.
In: header
A unique value per request. Replays are rejected.
In: header
Ed25519 signature over the canonical string. See the Signing guide.
In: header
Header Parameters
Unique per payment. Retrying with the same key returns the same order.
length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
A bolt11. Mutually exclusive with lightning_address.
Required with lightning_address, refused with invoice.
Only for a network whose addresses take a memo. Refused with memo_not_accepted on any other. No network we send on takes one today.
Optional. Your own note on this payment, such as March salary. Kept with the payment and returned on it; not sent to the recipient.
length <= 255Optional. The customer this payment is for.
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/lightning/pay" \ -H "Idempotency-Key: 9f1c2f7e-3a55-4a1f-9d3f-6f6a0f4e51b2" \ -H "Content-Type: application/json" \ -d '{ "invoice": "lnbc250u1p4fsmyc..." }'{ "data": { "id": "5a7e2c90-1f3b-4d68-8e2a-9c4b6d1f0e37", "reference": "SEND_GHS_K3M8Q2ZP7XW4NB6T", "status": "pending", "currency": "BTC", "amount": "0.00025000", "amount_minor": "25000", "fee": "0.00000000", "fee_minor": "0", "created_at": "2026-08-28T09:12:40Z" }}Create an invoice
Returns the payable invoice for your `reference`, creating it if needed. A retry with the same `reference` gets the same invoice back while it can still be paid. Once it is paid or expires, the same `reference` creates a new one. Needs the `receive` capability.
Payouts
Pay out in local currency to mobile money and bank accounts, from a Bitcoin or stablecoin balance.