Documentation
Built to beintegrated.
A REST API with JSON, idempotent requests and signed webhooks. These examples show the shape of an integration; your keys and the full reference live in your dashboard once your account is open.
Getting started
Apply, complete the merchant review and copy your test keys. Test mode uses demo card numbers and never moves money. Switch to live keys when you are ready to sell.
# test mode — no money moves
BRANLISTON_SECRET=sk_test_••••••••
BRANLISTON_WEBHOOK_SECRET=whsec_••••••••
# demo card that succeeds
4242 4242 4242 4242 · any future date · any CVCAPI reference
All resources follow the same pattern — create, retrieve, list, update — and authenticate with your secret key. Send an idempotency key with each write so a retry never charges twice.
- POST /v1/payments
- Create a payment
- POST /v1/payments/:id/refunds
- Refund all or part of a payment
- POST /v1/checkout
- Open a hosted checkout
- POST /v1/links
- Create a payment link
- GET /v1/customers/:id
- Read a CRM record
- GET /v1/disputes
- List disputes
- GET /v1/payouts
- List payouts and statements
POST https://api.branliston.example/v1/payments
Authorization: Bearer sk_test_••••••••
Idempotency-Key: 3306
{
"amount": 4400,
"currency": "eur",
"customer": { "email": "buyer@example.com" },
"metadata": { "order": "3306" }
}SDKs and plugins
Plugins exist for Shopify, WooCommerce, PrestaShop and Magento. Any stack that can make an HTTPS request can use the API directly; client libraries are shared during onboarding.
const res = await fetch("https://api.branliston.example/v1/checkout", {
method: "POST",
headers: { Authorization: `Bearer ${key}`, "Content-Type": "application/json" },
body: JSON.stringify({ order: "3306", amount: 4400, currency: "eur" }),
});
const { url } = await res.json(); // redirect the buyer hereGuides
Step-by-step guides cover your first payment, local currencies, writing fraud rules, answering a dispute and reconciling payouts. They are available in your dashboard; ask us if you need one sooner.
{
"id": "pay_3306a",
"status": "succeeded",
"amount": 4400,
"currency": "eur",
"tax": { "amount": 703, "label": "VAT 19% included" },
"payout": { "status": "scheduled" }
}Webhooks
Each event is sent as a signed HTTPS POST. Verify the signature, answer with a 2xx status quickly and process the event asynchronously. Failed deliveries are retried.
- payment.created
- payment.paid
- payment.failed
- refund.created
- dispute.opened
- payout.completed
app.post("/webhooks/branliston", raw, (req, res) => {
if (!verify(req.body, req.get("Branliston-Signature"), WEBHOOK_SECRET)) {
return res.sendStatus(400);
}
queue.push(JSON.parse(req.body)); // process later
res.sendStatus(200);
});Best practices
Keep secret keys on the server. Use idempotency keys. Treat webhooks as the source of truth for payment status. Verify signatures. Test every change before going live.
[x] secret key on the server only
[x] idempotency key on every write
[x] webhooks drive order status
[x] signatures verified
[x] change tested in test modeA question from your integration?
Send the request ID and what you expected. A developer on our team will get back to you.
Contact us