API v1

Changelog & versioning

Versioning policy

  • The API is versioned in the path (/v1). Within v1 we only make additive changes: new endpoints, new optional request fields, new response fields, new error codes. Build your client to ignore fields it doesn't know.
  • A breaking change ships under a new version path and is announced here, and by email to affected developers, before the old behaviour is removed — except where a change is required to fix a security issue or to stop accepting something that never worked, which is listed here with the date.
  • New webhook event types are only sent to endpoints subscribed to all events or to that type.

2026-10-13 — references and payment pages

  • Every charge returns a hosted payment page. POST /v1/charges responses now include paymentUrl (https://sendjoor.com/pay/chk_…) and accountDetails. No new request field is needed.
  • Your own reference on charges, unique per environment, with GET /v1/charges/reference/{reference} and POST /v1/charges/reference/{reference}/verify. Reusing a reference returns 409 DUPLICATE_REFERENCE. Changed meaning: the response field reference (and webhook data.reference) is now your reference; the provider's is in providerReference. Charges created before this change, and payment-link checkouts, still report the provider reference in reference.
  • Idempotency-Key is now optional on POST /v1/charges when you send a reference; channel and currency are optional (defaults bank_transfer, NGN).
  • New charge fields: title, description, notifyCustomer (Sendjoor emails the payer a receipt), successUrl, cancelUrl, customer.name on the response as customerName. Payment links get notifyCustomer (default true, the previous behaviour).
  • New webhook events charge.failed and charge.expired. Charge event payloads add providerReference, feeKobo, totalKobo, settled, environment, paymentUrl and more. Event ids are now derived from the event and charge, so a fact is never delivered under two ids.
  • List filters on GET /v1/charges: reference, customerEmail, from, to.
  • Authorization: Bearer <secret key> is now the documented way to authenticate; X-API-Key still works.
  • Errors gain retryable and specific codes (DUPLICATE_REFERENCE, IDEMPOTENCY_KEY_REUSED, REQUEST_IN_PROGRESS, PROVIDER_ERROR on 502 instead of a generic 500).
  • Dashboard: create charges, search by id or reference, copy and share payment pages.

2026-10-13 — environments

  • Separate test environment. Test keys now use a dedicated sandbox database. Test data created before this date stays where it was and is not visible to test keys; recreate test links and test webhook endpoints.
  • Secret keys are now sk_test_ / sk_live_. Existing pk_ keys keep working and are flagged as legacy; rotating one returns an sk_ key.
  • Webhook endpoints are per environment and payloads include environment; charge webhooks now include reference, customerEmail and your metadata. Endpoints registered before this date are live endpoints.
  • New: GET /v1/charges, POST /v1/charges/{id}/verify, PATCH /v1/payment-links/{id}, link fields title, internalReference, customerEmail, customerName, and the response fields reference, url, environment, type, settled, accountNumber.
  • Hosted checkout for payment links at https://sendjoor.com/pay/<reference>, with business branding and a verified badge for approved developers.
  • Narrowed to what works: POST /v1/charges accepts only channel: "bank_transfer" and currency: "NGN", and amounts of at least 100 kobo; payment links accept only NGN. Other channels and currencies were accepted before but could never be paid on the live rail.
  • Live keys now stop working immediately if your verification is suspended (previously only new live keys were blocked).
  • Sandbox fix: the magic amounts (200 fails, 300 stays pending) now apply to your price, not price + fee.
  • IP allowlists accept CIDR ranges. Transfer scopes can no longer be granted (there is no transfer API).
  • Docs: rate limits are per endpoint per client IP (previously documented as per key, which was never the case).