BramaPay Docs

cURL

Create and verify an invoice from the command line.

curl -X POST 'https://api.bramapay.com/v1/invoices' \
  -H 'X-Api-Key: sk_live_REPLACE_ME' \
  -H 'Idempotency-Key: order-1001-attempt-1' \
  -H 'Content-Type: application/json' \
  -d '{"amount":"25.00","asset":"USDT","network":"TRON","externalId":"ORDER-1001"}'

Reuse the same idempotency key after a timeout. Do not use a real credential in shell history on shared machines.