API Reference
Lightning Address
Pay a Lightning Address [POST]

Pay Lightning Address

https://sandboxapi.bitnob.co/api/v1/lnurl/paylnaddress (opens in a new tab)

Pay a lightning address


🚧

Before paying a lightning address

Before you pay a lightning address, you first need to decode the address, you will see the amount (range) that can be paid to that address, then select the amount before sending it to the API for final payment

Body Parameters

ParametertypeRequired
lnAddress
the lightning address to pay to e.g
string
satoshis
the amount to send in sats
int32
reference
a unique reference you create to track payment
string
customerEmail
the email of the customer making the payment
string

Request

lightning address/Pay Lightning Address
curl --request POST \
     --url https://sandboxapi.bitnob.co/api/v1/lnurl/paylnaddress \
     --header 'Authorization: Bearer API-KEY' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "lnAddress": "satoshi@bitcoin.org",
  "satoshis": 10,
  "reference": "testpayment",
  "customerEmail": "satoshi@bitnob.com"
}
'

Responses

🟢 200 - Result example
{}