Developers
Overview
All examples target the sandbox only. Paths are proposals until the backend team publishes the final API. Amounts are integers in the currency's minor unit (USD/EUR cents; XOF and XAF have no minor unit).
Authentication
Server-to-server calls use a secret API key in the Authorization header. Never put a secret key in a browser or mobile app. Dashboard users sign in with a session cookie and MFA.
curl https://sandbox.api.iplaynexora.test/v1/payment-links \ -H "Authorization: Bearer npk_test_••••"
Idempotency
Every POST that creates or moves something must send a unique Idempotency-Key. Retrying with the same key returns the original result; reusing it with a different body returns idempotency_conflict.
curl -X POST https://sandbox.api.iplaynexora.test/v1/payment-links \
-H "Authorization: Bearer npk_test_••••" \
-H "Idempotency-Key: 6f1c2a90-0d1e-4c55-9d1a-2b8e0f4f7a10" \
-H "Content-Type: application/json" \
-d '{"merchantId":"mch_sbx_00000","reference":"INV-1001","title":"Season pass","amount":15000,"currency":"XAF","usage":"single","expiresAt":null}'Errors
Errors return an HTTP status and a JSON body with a stable code: unauthenticated, session_expired, mfa_required, forbidden, not_found, validation_failed, idempotency_conflict, rate_limited, provider_unavailable, internal.
{ "code": "validation_failed", "message": "amount must be a positive integer in minor units", "requestId": "req_sbx_123", "details": { "amount": "invalid" } }Webhooks
Events are signed with HMAC-SHA256. Verify the signature and timestamp before trusting an event, answer 2xx quickly and handle duplicates by event id.
POST https://merchant.sandbox.test/hooks
X-Nexora-Signature: t=1764417600,v1=<hmac-sha256>
{ "id": "evt_sbx_1", "type": "payin.succeeded", "data": { "reference": "INV-1001", "amount": 15000, "currency": "XAF" } }Payment statuses
pending → processing → succeeded | failed; refunded after a refund. Treat a payment as paid only after a server-confirmed succeeded event, never from a browser redirect.
Checkout currency quotes
The server issues a quote id with the selected amount, original amount, applied rate, fees, rounding difference, total and authorised methods. The browser sends that quote id before provider session creation; it never calculates conversions or changes an existing provider session. The requested sandbox commercial parity is 1 USD = 600 XAF; EUR quotes require a reliable server-side EUR/USD rate.
Permissions
API keys carry scopes such as links:create, payouts:create, transactions:read. The backend enforces scopes and merchant isolation on every request.
Versioning
The version is in the path (/v1). Additive changes keep the version; breaking changes ship under a new version with a deprecation period.