API Reference
Lightning
Pay Invoice [POST]

Pay Invoice

https://sandboxapi.bitnob.co/api/v1/wallets/ln/pay (opens in a new tab)

Paying a lightning invoice


Body Parameters

ParametertypeRequired
request Defaults to lntb10u1pssyl2lpp5ff82hm7d..
Invoice request
string
customerEmail
Email. of paying customer
string
reference Defaults to hdhdsujhbkanmsnjsanasjas
reference set by company to be able to track payment
string

Request

lightning/ Pay Invoice [POST]
curl --request POST \
     --url https://sandboxapi.bitnob.co/api/v1/wallets/ln/pay \
     --header 'Authorization: Bearer API-KEY' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "request": "lntb10u1pssyl2lpp5ff82hm7d84eq2peuxgu7cmexrjs9l052v75yxrfehzt20ull9j5sdpsd4hkueteypehgmmswvsxummwwdjkuum9yphkugrnw4hxgctecqzpgxqr23sfppqagwazd3amftr505rtmywgl8f7f37845rsp52xz472j6yg7vpk6964l3u9px6f2srr6k793hv4hkl7sx99wv8h2s9qyyssq3xzh9mcaclyjdnkydgly88l4tyc8rw5m78gkdc9l0dnud5c9z7kzuqmkk3nutcj4ypn4wc4rwnx95vyfwpzmul6xkezkadexspkyqvqpjgqufp",
  "reference": "hdhdsujhbkanmsnjsanasjas",
  "customerEmail": "customer@email.com"
}
'

Responses

🟢 200 - Result example
{
"status": true,
"message": "Transaction summary",
"data": {
  "reference": "skjrjfr",
  "amount": "0.93",
  "fees": "0",
  "btcFees": "0",
  "btcAmount": "0.0000193",
  "satFees": "0",
  "satAmount": "1930",
  "spotPrice": "47979.76",
  "action": "send_bitcoin",
  "type": "debit",
  "status": "pending",
  "channel": "lightning",
  "paymentRequest": "lntb19300n1ps5xxgepp5r6w7hpqzfe5f5eg9ep98u0243qtnqn9e7xmwvjynzf25kyyghr9sdpsd4hkueteypehgmmswvsxummwwdjkuum9yphkugrnw4hxgctecqzpgxqr23sfppq97tmvgjq9r4s24047zukwvqrmz5g720wsp5hjxvud80p7yc8p58vdgj8d30c7t8nv5d9rnd59vftccxqvvwk3ns9qyyssq87pa3vxsntqturd5r6n9g57gv964r80q0wcnjcakzsuuqk3xkpgpxul304v7n82xhju8xcjkgckywwhfqzshj5w9q7apat08nm2nh8cpczpu6n",
  "description": null,
  "address": null,
  "hash": null,
  "confirmations": null,
  "invoiceId": null,
  "id": "5c3683d3-5e73-4d15-a910-74c8cba6c8ef",
  "createdAt": "2021-09-16T10:15:26.711Z",
  "updatedAt": "2021-09-16T10:15:26.711Z"
}
}