Payment links & hosted checkout
A payment link is a Sendjoor-hosted page at https://sendjoor.com/pay/<reference>. Share it anywhere — a message, an email, an invoice, a button on your site. The payer needs no account.
Create a link
POST /v1/payment-links · scope PAYMENT_LINKS_WRITE · requires Idempotency-Key. Or create one in the dashboard under Payment links.
| Field | Notes |
|---|---|
title | What the payer is paying for — the checkout heading. |
amountKobo | Fixed amount (minimum 100). The payer can never change it. |
minAmountKobo / maxAmountKobo | Variable amount: omit amountKobo; the payer types an amount within these bounds (at least ₦1). |
description | Shown under the title. |
internalReference | Your own order/invoice id. Never shown to the payer. |
customerEmail / customerName | Pre-fills the checkout. The payer can still edit them. |
metadata | Your key/value pairs. Never shown to the payer. |
successUrl | Where the payer can go afterwards. Informational only. |
expiresAt | ISO-8601 time in the future. After it the link is EXPIRED. |
currency | NGN (the only collectable currency). |
notifyCustomer | Email the payer a Sendjoor receipt after a confirmed payment. Default true; live only — test payments never email. |
curl -X POST "https://api.developers.sendjoor.com/v1/payment-links" \
-H "Authorization: Bearer $SENDJOOR_SECRET_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"title": "Annual membership",
"amountKobo": 2500000,
"internalReference": "inv_2041",
"expiresAt": "2026-12-31T23:59:59Z"
}'The response includes url — share that. Its reference (plink_test_… or plink_live_…) is long and random, so links can't be guessed, and it tells Sendjoor which environment the link belongs to.
Charge or payment link?
Every charge already comes with its own single-use payment page (paymentUrl) for a known payer and amount, under your unique reference. Use a payment link when you want a durable page to share before you know who will pay — a fixed price or one the payer types.
Statuses
| Status | Meaning |
|---|---|
ACTIVE | Can be paid. |
COMPLETED | Paid — chargeId is the payment. A link is single-use: once one payment settles, every later checkout is refused, so it can never be paid twice. Payers who start but abandon a checkout don't use it up. |
EXPIRED | Past expiresAt without payment. No new checkouts start; one already showing transfer details still settles if paid in its window. |
DISABLED | You disabled it. Permanent. |
Read, update, disable
GET /v1/payment-links(paginated, filterstatus) andGET /v1/payment-links/{id}— the id or the reference both work.PATCH /v1/payment-links/{id}changes title, description, internalReference, successUrl, expiresAt, notifyCustomer or metadata of anACTIVElink. Amount, currency, environment and owner never change — create a new link.PATCH /v1/payment-links/{id}/disablestops it accepting payments. Links are never deleted.
What the payer sees
Your display name — and, once your verification is approved, a Verified business badge with your verified legal name and your logo (branding). Then the title, amount, an email field, and bank-transfer instructions with the total including Sendjoor's fee. The page updates itself when the bank confirms the transfer and shows a receipt; live payers are also emailed one unless you set notifyCustomer: false. Test links show a TEST MODE banner and settle instantly.
Integrating with your site or app
// Create one link per order on your server, then send the payer to it.
app.post("/orders/:id/pay", async (req, res) => {
const order = await db.orders.get(req.params.id);
const r = await fetch("https://api.developers.sendjoor.com/v1/payment-links", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SENDJOOR_SECRET_KEY}`,
"Idempotency-Key": `order-${order.id}`, // same order → same link, even if retried
"Content-Type": "application/json",
},
body: JSON.stringify({
title: `Order #${order.number}`,
amountKobo: order.totalKobo,
internalReference: order.id,
customerEmail: order.email,
successUrl: `https://shop.example.com/orders/${order.id}`,
}),
});
const link = await r.json();
await db.orders.update(order.id, { paymentLinkId: link.id });
res.redirect(303, link.url);
});
// Then mark the order paid from the payment_link.completed webhook — never from successUrl.Confirm payment on your server
Mark an order paid only from the signed payment_link.completed webhook (or by reading the link and verifying its chargeId). successUrl can be visited by anyone.