DEVELOPERSBuild your own Brislet integration.
Most merchants use the WHMCS module. If you run your own billing system, the same API creates payments and sends signed updates when they are paid.
ONE CONNECTED WORKFLOW · ILLUSTRATION
Signed updates, connected end to end.
One payment. A clear trail of updates.
KEYS AND MODES
One key per mode.
Live
Real Bitcoin. Keys start with np_live_.
Test mode
Free test coins and test credit with no value. Keys start with np_test_. Start here.
Creating keys
In Brislet open WHMCS → Manage keys. A key is shown once. Keep it on your server only; requests from web browsers are refused.
FIRST REQUEST
Check your key works.
curl https://app.brislet.com/v1/merchant \
-H "Authorization: Bearer $BRISLET_API_KEY"
Every answer has data or error, plus a request_id to quote if you contact support.
MAIN ROUTES
What you can call.
POST /v1/payments
Create a payment for an invoice: invoice_reference, currency (USD) and amount. Send an Idempotency-Key so a retry returns the same payment and address.
GET /v1/payments/{id}
The amount, address, confirmations and status. Show a QR code only when can_pay is true.
POST /v1/payments/{id}/refresh
A new price for an expired payment that received nothing. The address stays the same.
POST /v1/webhook
Register your HTTPS callback address and a signing secret.
GET /v1/merchant
Your credit and whether new payments are paused.
PAYMENT UPDATES
Verify, then record once.
Check the signature
Each update has Brislet-Timestamp and Brislet-Signature: v1=…, an HMAC-SHA256 of timestamp.event_id.body with your secret. Reject anything older than 5 minutes.
Confirm with the API
Fetch the payment with your own key and check it is paid, for the right invoice and amount, before marking the invoice paid.
Expect repeats
Updates are delivered at least once and retried for as long as needed. Record each payment once, then reply HTTP 200 with {"received":"<event id>"}.
LIMITS AND ERRORS
Retry safely.
Request limits
600 reads, 120 changes and 120 payment checks per minute for each merchant and mode. A 429 answer says how long to wait.
Retries
On a 503 or a timeout, retry with the same idempotency key. Never create a second payment for the same invoice.
Credit
Each completed payment uses 1% of its value from prepaid credit. If credit runs out, new payments return 402 until more is added.
NEED HELP?
Talk to us.
Email [email protected] with the request_id. Never send API keys or wallet keys.
Read the setup guide↗