Lightning API Playground
Send real, HMAC-signed requests to the lightning endpoints and inspect the live response.
POST/api/lightning/invoices
cURL
- curl --location --request POST 'https://api.bitnob.com/api/lightning/invoices' \
- --header 'Content-Type: application/json' \
- --header 'X-Auth-Client: {{clientId}}' \
- --header 'X-Auth-Timestamp: {{timestamp}}' \
- --header 'X-Auth-Nonce: {{nonce}}' \
- --header 'X-Auth-Signature: {{signature}}' \
- --data '{
- "reference": "LTG-invoice",
- "customer_id": "3257cdc0-f55b-46a5-85e5-74f57003a3f9",
- "amount": 1,
- "description": "Payment for order",
- "expiry": 3600
- }'
Response
// Awaiting response...