Getting started
From nothing to a paid sandbox charge in about five minutes.
1. Create a developer account
Register with an email and password. Your account can use the sandbox immediately — no verification needed for test mode.
2. Create a test secret key
In the dashboard, make sure the switch at the top says Test, open API keys and create a key. Copy it — it is shown once and starts with sk_test_. Store it in your server's environment:
export SENDJOOR_SECRET_KEY="sk_test_..."Secret keys stay on your server
Never put a secret key in a web page, a mobile app, or a public repository. Anyone holding it can act as you.
3. Make your first request
List your charges — an empty list proves your key works:
curl -X GET "https://api.developers.sendjoor.com/v1/charges" \
-H "Authorization: Bearer $SENDJOOR_SECRET_KEY"A 200 with {"items":[],"total":0,…} means you're set. A 401 means the key is wrong, revoked or expired — see errors.
4. Create a charge and get its payment link
Give the payment your own reference — your order or invoice number. It is unique in your account, so retrying this request after a timeout can never charge the customer twice.
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"
},
"description": "Payment for Order 1042"
}'The 201 response includes paymentUrl — open it (it shows a TEST MODE banner) or send it to your customer. Amounts are in kobo: 2500000 is ₦25,000.00. Then confirm the result by reference:
curl -X POST "https://api.developers.sendjoor.com/v1/charges/reference/ORDER-2026-1042/verify" \
-H "Authorization: Bearer $SENDJOOR_SECRET_KEY"In the sandbox this charge settles straight away, so status is SUCCESS and settled is true. More in Charges & verification.
5. Next
- Take a payment end to end in the sandbox — charge or payment link, hosted checkout, webhook, verification.
- Browse every endpoint and try them with your test key.