API v1

Security & troubleshooting

Protecting your keys

  • Secret keys live only on your servers, in environment variables or a secret manager.
  • Never in browser JavaScript, mobile apps, screenshots, support tickets or public repositories.
  • One key per service, with only the scopes it calls; add an IP allowlist where your egress IPs are fixed.
  • Rotate on staff changes and whenever a key may have been exposed; revoke unused keys.
  • Sendjoor stores only a keyed hash of each key; the full key is shown once and can never be retrieved again — only its prefix stays visible.

If a key leaks

Revoke it in the dashboard (effective on the next request), create a new one, deploy it, and review Request logs for unfamiliar traffic.

How test and live are kept apart

Test keys run against a separate test database and a simulated bank with no network access to any real bank. A test request cannot create a live charge, move money, change a live balance, reach a live webhook endpoint or email a customer; a live request never falls back to the test environment. Account data — your keys, verification and profile — is shared; payment data is not.

Webhook security

  • Verify every signature on the raw body with a 5-minute tolerance; reject failures.
  • Treat the payload as a notification — re-read the charge with your key before releasing high-value goods.
  • Deduplicate on the event id.
  • Each endpoint has its own secret; rotate it from the dashboard if exposed.

Data you send us

Request and response bodies are never written to your request logs. Verification documents and CAC numbers are encrypted at rest and visible only to reviewers, with every access audited.

Troubleshooting

SymptomLikely cause
401 UNAUTHENTICATEDKey mistyped, revoked, expired, or copied without its prefix. Keys are case-sensitive.
403Missing scope (the message names it), IP not in the key's allowlist, or LIVE_ACCESS_NOT_APPROVED.
404 for something you createdYou used a key from the other environment. Test and live data are separate.
409 CONFLICTIdempotency-Key reused with a different body, or the first request is still running.
503 ENVIRONMENT_UNAVAILABLEThe environment isn't served right now. Retry later; nothing was done.
Webhook signature never verifiesYou're hashing a re-serialised body, not the raw bytes; or using the other environment's endpoint secret.
No webhooks arriveEndpoint registered in the other environment, paused, or not public HTTPS on port 443. Check the delivery list for responses.
Sandbox charge always succeedsOnly amountKobo 200 (fails) and 300 (pending) are special; every other amount succeeds.

Still stuck? Quote the X-Request-ID of the failing call — find it in Request logs.