API v1

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.

FieldNotes
titleWhat the payer is paying for — the checkout heading.
amountKoboFixed amount (minimum 100). The payer can never change it.
minAmountKobo / maxAmountKoboVariable amount: omit amountKobo; the payer types an amount within these bounds (at least ₦1).
descriptionShown under the title.
internalReferenceYour own order/invoice id. Never shown to the payer.
customerEmail / customerNamePre-fills the checkout. The payer can still edit them.
metadataYour key/value pairs. Never shown to the payer.
successUrlWhere the payer can go afterwards. Informational only.
expiresAtISO-8601 time in the future. After it the link is EXPIRED.
currencyNGN (the only collectable currency).
notifyCustomerEmail 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.

Statuses

StatusMeaning
ACTIVECan be paid.
COMPLETEDPaid — 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.
EXPIREDPast expiresAt without payment. No new checkouts start; one already showing transfer details still settles if paid in its window.
DISABLEDYou disabled it. Permanent.

Read, update, disable

  • GET /v1/payment-links (paginated, filter status) and GET /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 an ACTIVE link. Amount, currency, environment and owner never change — create a new link.
  • PATCH /v1/payment-links/{id}/disable stops 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.