Skip to main content
POST
/
api
/
v1
/
lightning
/
receives
/
invoice
Create a BOLT11 invoice
curl --request POST \
  --url https://api.example.com/api/v1/lightning/receives/invoice \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount_sat": 1
}
'
{
  "invoice": "<string>"
}

Body

application/json
amount_sat
integer<int64>
required

The amount to create invoice for (in satoshis)

Required range: x >= 0

Response

Returns the created invoice

invoice
string
required

The invoice string