curl --request POST \
--url https://api.example.com/api/v1/lightning/receives/invoice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount_sat": 1,
"description": "<string>"
}
'{
"invoice": "<string>"
}Generates a new BOLT11 invoice for the specified amount via the Ark server, creating a pending Lightning receive.
curl --request POST \
--url https://api.example.com/api/v1/lightning/receives/invoice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount_sat": 1,
"description": "<string>"
}
'{
"invoice": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://second.tech/docs/llms.txt
Use this file to discover all available pages before exploring further.
Base64url-encoded auth token
The amount to create invoice for (in satoshis). This is the amount the payee will pay but the final amount received by the client will have any server-configured LightningReceiveFees [blocked] deducted.
x >= 0Optional description embedded in the invoice as its memo.
Returns the created invoice
The invoice string
Was this page helpful?