Charges & verification
A charge asks one customer to pay one amount. Every charge you create comes with its own hosted payment page (paymentUrl) — send the customer there, or show the bank-transfer details yourself.
Create a charge
POST /v1/charges · scope CHARGES_WRITE. You don't choose a payment method to get a link: every successful response carries paymentUrl.
| Field | Type | Notes |
|---|---|---|
reference | string, required* | Your order/invoice id. Unique per account per environment. Letters, digits and . _ : -, up to 100. *Optional only if you send an Idempotency-Key — then Sendjoor generates one. |
amountKobo | integer, required | Your price in kobo — the minor unit (₦25,000.00 = 2500000). Minimum 100. Sendjoor’s fee is added on top. |
customer | object, required | email (required), name, phone |
title | string, optional | What is being paid for — the payment page heading (≤120). |
description | string, optional | Shown to the payer (≤300). |
notifyCustomer | boolean, optional | Email the customer a Sendjoor receipt once the payment is confirmed. Default false. Live only — test payments never email anyone. |
successUrl | URL, optional | Where the payment page sends the payer after a confirmed payment, with ?reference=…&chargeId=…&status=success appended. |
cancelUrl | URL, optional | Where the page's "Cancel" button goes (status=cancelled appended). |
metadata | object, optional | Your key/value pairs; echoed on the charge and its webhooks. Size-bounded. Never shown to the payer. |
validTime | integer, optional | Minutes the transfer account stays open (5–10080). Provider default when omitted. |
currency | "NGN", optional | Default and only value. |
channel | "bank_transfer", optional | Default and only value — you never need to send it. |
curl -X POST "https://api.developers.sendjoor.com/v1/charges" \
-H "Authorization: Bearer $SENDJOOR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"reference": "ORDER-2026-1042",
"amountKobo": 2500000,
"customer": {
"email": "buyer@example.com",
"name": "Ada Obi"
},
"title": "Order 1042",
"description": "Payment for Order 1042",
"notifyCustomer": true,
"successUrl": "https://shop.example.com/orders/1042/thanks",
"metadata": {
"orderId": "1042"
}
}'The response (201):
{
"id": "6f0b6f0c-2a1e-4bde-9a43-8b2f1d3c9e21",
"reference": "ORDER-2026-1042",
"providerReference": "9012345678",
"status": "PENDING",
"settled": false,
"amountKobo": 2500000,
"feeKobo": 10000,
"totalKobo": 2510000,
"currency": "NGN",
"channel": "bank_transfer",
"mode": "LIVE",
"environment": "live",
"title": "Order 1042",
"description": "Payment for Order 1042",
"customerEmail": "buyer@example.com",
"customerName": "Ada Obi",
"notifyCustomer": true,
"metadata": { "orderId": "1042" },
"paymentLinkId": null,
"paymentUrl": "https://sendjoor.com/pay/chk_live_Q2xhcmEtMjAyNi0xMDQyLXBheQ",
"successUrl": "https://shop.example.com/orders/1042/thanks",
"cancelUrl": "https://shop.example.com/cart",
"accountDetails": {
"accountNumber": "9012345678",
"bankName": "Rubies MFB",
"accountName": "Your Business Ltd",
"amountKobo": 2510000,
"currency": "NGN",
"expiresAt": "2026-10-13T13:00:00.000Z"
},
"accountNumber": "9012345678",
"bankName": "Rubies MFB",
"accountName": "Your Business Ltd",
"expiresAt": "2026-10-13T13:00:00.000Z",
"settledAt": null,
"createdAt": "2026-10-13T12:00:00.000Z",
"updatedAt": "2026-10-13T12:00:00.000Z"
}Fees
Sendjoor's fee is added on top of your price and paid by the payer: they transfer totalKobo(= amountKobo + feeKobo); you are credited amountKobo. Fees follow the same schedule in test and live — see the actual flat-fee schedule.
The payment page (paymentUrl)
https://sendjoor.com/pay/chk_test_…orchk_live_…— one page per charge, unguessable, carrying no key and no internal id. Test pages show a TEST MODE banner.- It shows your business name (and logo and verified badge only while your verification is approved), the title, description, your reference, the amount, fee and total, and the transfer account while it is payable.
- Single use, never reused. It belongs to this one charge and cannot be paid twice. After the payment it becomes a receipt; after
expiresAt, failure or expiry it says so and shows no account details. - The amount, currency, owner and status can't be changed from the page. Its "I have sent the money" button only asks Sendjoor to re-check with the bank.
- Created in the same database write as the charge: there is never a charge without a page, or a page without a charge. Need a reusable page for many payers? Use a payment link.
Account details and transfer instructions
accountDetails is the temporary bank account the payment provider opened for this charge, present only while the charge can still be paid (PENDING and before expiresAt); otherwise it is null. The customer transfers exactly accountDetails.amountKobo into it.
- Opened when the charge is created, dedicated to this charge, closed at
expiresAt. - Sendjoor matches the incoming transfer to the charge by the account itself; the payment becomes
SUCCESSonly after the provider confirms it (webhook or server-to-server check) — never because anyone says it was paid. - Underpayment: a transfer below the total does not settle the charge; it stays
PENDINGuntil the full amount arrives or it expires. Overpayments and transfers to a closed account are handled by Sendjoor support — contact us with the reference. - In test mode the account is simulated by the sandbox and cannot receive real money.
The flat accountNumber/bankName/accountName fields are kept for older integrations; use accountDetails.
References and safe retries
reference identifies the business transaction; it is unique per account per environment (two developers, or your test and live environments, can use the same value). A second POST /v1/charges with a reference you already used never creates a second charge — it fails with 409 DUPLICATE_REFERENCE and tells you the existing charge:
HTTP/1.1 409 Conflict
{
"error": {
"code": "DUPLICATE_REFERENCE",
"message": "A charge with reference \"ORDER-2026-1042\" already exists. …",
"details": { "reference": "ORDER-2026-1042", "chargeId": "6f0b6f0c-2a1e-4bde-9a43-8b2f1d3c9e21" },
"requestId": "req_…",
"retryable": false
}
}So the safe way to handle a timeout is: retry with the same reference; on 409 DUPLICATE_REFERENCE, fetch GET /v1/charges/reference/{reference} and continue with that charge.
Idempotency-Key (optional)
Send Idempotency-Key: <your key> if you want an exact replay of the first response instead of the 409. Scope: your API key + this endpoint. Retention: 24 hours. Same key, same body → the original response; same key, different body → 409 IDEMPOTENCY_KEY_REUSED; same key while the first request is still running → 409 REQUEST_IN_PROGRESS (retryable: true). A failed request frees its key. The reference still applies after the 24 hours are up.
Statuses
| Status | Meaning | Webhook |
|---|---|---|
PENDING | Waiting for the transfer. Don’t treat it as failed — transfers can take minutes. | — |
SUCCESS | The provider confirmed the transfer. settled: true once it is posted to Sendjoor's ledger — release goods only then. | charge.settled |
FAILED | The rail declined the payment. Nothing was taken. | charge.failed |
EXPIRED | Nothing (or not enough) was paid before the transfer account closed. | charge.expired |
There is no separate "cancelled" state: an unpaid charge simply expires. Refunds and reversals are not available through the API.
Verify a payment (authoritative)
POST /v1/charges/{id}/verify or POST /v1/charges/reference/{reference}/verify · scope CHARGES_READ. For a PENDING charge Sendjoor asks the provider, server to server, and returns the result; settlement it triggers is the same exactly-once ledger posting a webhook would have done, so calling it repeatedly is safe. Both routes return the same charge.
curl -X POST "https://api.developers.sendjoor.com/v1/charges/reference/ORDER-2026-1042/verify" \
-H "Authorization: Bearer $SENDJOOR_SECRET_KEY"Never trust the browser
A redirect to your successUrl, a query string or a "payment successful" screen proves nothing. Fulfil only from a signed webhook, or from verify / GET returning status: SUCCESS with settled: true — and check reference, amountKobo and currency match your order.
Retrieve and list
GET /v1/charges/{id} and GET /v1/charges/reference/{reference} return the stored state. GET /v1/charges lists your charges in the key's environment, newest first, with page/limit (max 100) and filters status, reference, customerEmail, from (inclusive) and to (exclusive) as ISO-8601 timestamps. Charges made by other developers, by Sendjoor itself, or in the other environment are never returned (404).
curl -X GET "https://api.developers.sendjoor.com/v1/charges?status=PENDING&from=2026-10-01T00:00:00Z&limit=50" \
-H "Authorization: Bearer $SENDJOOR_SECRET_KEY"Sandbox behaviour
Test charges never contact a bank. The outcome depends on amountKobo (your price, before the fee): 200 fails, 300 stays pending (verify keeps returning PENDING), anything else succeeds immediately. The test payment page shows the same outcome.
Not available
Card, USSD, QR and mobile-money channels, other currencies, refunds/reversals and transfers (payouts) are not offered through the API. See the changelog for what changes.