Back to Lightning docs

Lightning API Playground

Send real, HMAC-signed requests to the lightning endpoints and inspect the live response.

POST/api/lightning/invoices
cURL
  1. curl --location --request POST 'https://api.bitnob.com/api/lightning/invoices' \
  2. --header 'Content-Type: application/json' \
  3. --header 'X-Auth-Client: {{clientId}}' \
  4. --header 'X-Auth-Timestamp: {{timestamp}}' \
  5. --header 'X-Auth-Nonce: {{nonce}}' \
  6. --header 'X-Auth-Signature: {{signature}}' \
  7. --data '{
  8. "reference": "LTG-invoice",
  9. "customer_id": "3257cdc0-f55b-46a5-85e5-74f57003a3f9",
  10. "amount": 1,
  11. "description": "Payment for order",
  12. "expiry": 3600
  13. }'
Response
// Awaiting response...
Did you find this page useful?

Join our Discord