Lightning Invoice Creation Example
Swagger UI: POST /gateway/api/lightning/v1/invoice
Curl example:
curl --location --request POST 'https://api.kaminari.cloud/gateway/api/lightning/v1/invoice' \
--header 'X-kaminari-api-key: <API_KEY>' \
--header 'X-kaminari-api-signature: <API_SIGNATURE>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": "3",
"description": "test_description",
"merchant_id": "test_merchant_id",
"nonce" : "1699926593"
}'
Response:
{
"id": "ebda54e038f5e485b6463bfdb3183fc53a4c7e2f9476bb24c6182df20ade6095",
"invoice": "lnbcrt30n1pjyhhm0pp5a0d9fcpc7hjgtdjx807mxxplc5aycl30j3mtkfxxrqklyzk7vz2sdqqcqzpgxqyz5vqsp59frlcse2rhe87j7fjuqt9rcuwjjqmh8e7yuplmkxhx0mksypvdys9qyyssqz57l8jlt3gtjxnf8udmsjqhu80p7cd3dcatx8tv55ww5wz8aymthpxspvh3tlpygjufxhak2ucvym2vz955y4wcrcvv4d322gwk2ancpraul9r"
}
Field id
you could use as internal unique identifier for invoice request.
Last updated