SANDBOX — simulated integrations, synthetic data, no real money moves · Docs describe the sandbox build
Skip to content

Accept payments

Application status

Each checkout session creates a financing application. Read its operational status at any time — the API is the source of truth, webhooks are notifications.

Retrieve an application#

GET/api/v1/applications/{reference}scope applications:read
curl https://pay-with-araf.onrender.com/api/v1/applications/ARAF-2026-000002 \
  -H "Authorization: Bearer $ARAF_SECRET_KEY"
200 OK
{
  "object": "application",
  "reference": "ARAF-2026-000002",
  "status": "READY_FOR_RELEASE",
  "merchant_order_reference": "ORD-10045",
  "checkout_session_id": "cs_test_8jgcwIBR4vXwdvc093VF3lCD",
  "currency": "NGN",
  "purchase_amount": 45000000,
  "customer_contribution": 0,
  "financed_amount": 45000000,
  "equity": {
    "required": false,
    "amount": 0,
    "status": "NOT_REQUIRED",
    "payable": false
  },
  "vendor_payment": {
    "reference": "PAY-000014",
    "status": "CONFIRMED",
    "amount": 45000000,
    "confirmed_at": "2026-11-25T10:42:18.120Z",
    "simulated": true
  },
  "release": {
    "reference": "REL-000009",
    "status": "AUTHORIZED",
    "authorized": true,
    "authorized_at": "2026-11-25T10:55:02.441Z"
  },
  "timeline": [
    {
      "status": "CUSTOMER_ACTION_REQUIRED",
      "at": "2026-11-25T09:09:04.009Z"
    },
    {
      "status": "IN_PROGRESS",
      "at": "2026-11-25T09:12:40.310Z"
    },
    {
      "status": "ELIGIBLE",
      "at": "2026-11-25T09:20:11.902Z"
    },
    {
      "status": "SUBMITTED",
      "at": "2026-11-25T09:22:45.001Z"
    },
    {
      "status": "APPROVED",
      "at": "2026-11-25T10:01:13.554Z"
    },
    {
      "status": "VENDOR_PAYMENT_PENDING",
      "at": "2026-11-25T10:30:09.020Z"
    },
    {
      "status": "VENDOR_PAYMENT_CONFIRMED",
      "at": "2026-11-25T10:42:18.120Z"
    },
    {
      "status": "READY_FOR_RELEASE",
      "at": "2026-11-25T10:55:02.441Z"
    }
  ],
  "fulfilment": [],
  "livemode": false,
  "created_at": "2026-11-25T09:09:04.007Z",
  "updated_at": "2026-11-25T10:55:02.441Z"
}
status
stringrequired
Merchant status (see below).
purchase_amount
integer (kobo)required
Cart total.
customer_contribution
integer (kobo)required
Customer equity: the part of the price the customer pays to you rather than financing it (0 if none).
financed_amount
integer (kobo)required
purchase_amount − customer_contribution. The Bank pays the vendor this amount and charges profit only on it.
equity
objectrequired
required, amount, status (NOT_REQUIRED · DUE_AFTER_APPROVAL · AWAITING_PAYMENT · CONFIRMED), payable, payment_reference, confirmed_at. Collect equity when payable is true, then confirm it with POST /orders/{ref}/equity.
vendor_payment
object | nullrequired
Latest vendor payment instruction: reference, status, amount, confirmed_at, simulated.
release
objectrequired
{ authorized: false } until a release exists; then reference, status, authorized (true while AUTHORIZED or after use, CONSUMED) and authorized_at. Verify with the releases endpoint before handing over goods.
timeline
arrayrequired
Merchant-status history ({ status, at }).
fulfilment
arrayrequired
Fulfilment records you created ({ status, at, tracking_reference }).

Privacy

Application responses never include BVNs, credit scores, bureau data, statements, salary, affordability calculations, decline reasons or internal notes.

Merchant statuses#

Statuses appear in roughly this order. Eligibility ≠ submission ≠ approval ≠ vendor payment ≠ goods release — only READY_FOR_RELEASE plus a verified release permits handing over goods.

Merchant statuses
StatusMeaningWhat you should do
CUSTOMER_ACTION_REQUIREDThe customer needs to do something: verify identity, confirm or open an account, share a statement, or revise the cart.Wait. Optionally remind the customer to finish.
IN_PROGRESSAutomated checks are running (identity, eligibility, statement analysis).Wait.
UNDER_REVIEWA Bank officer is reviewing the application (manual review).Wait. Reviews can take 24–48 hours.
ELIGIBLEThe customer is eligible and is reviewing an indicative offer. Not an approval.Wait.
SUBMITTEDThe customer accepted the offer; the application is in the Bank’s ARAF workflow. Not yet approved.Wait.
APPROVEDFinancing approved (documents, mandate and booking may still be in progress).Reserve stock. Do NOT release.
VENDOR_PAYMENT_PENDINGThe Bank is paying the vendor.Do NOT release.
VENDOR_PAYMENT_CONFIRMEDThe vendor payment is confirmed; contractual conditions are being completed.Do NOT release yet.
READY_FOR_RELEASEA release authorisation was issued.Verify GET /releases/{reference}, then release.
DISPATCHEDYou recorded dispatch (or collection).Confirm delivery when it happens.
DELIVEREDDelivery was confirmed.None.
COMPLETEDOrigination complete; repayments continue with the Bank.None.
DECLINEDThe Bank could not offer financing. No reasons are shared.Offer another payment method.
CANCELLEDThe application was cancelled (by the customer, you, a revised cart, or the Bank).Release any reserved stock.
EXPIREDThe customer did not progress before the session expired.Release any reserved stock.
ON_HOLDAn operational exception is being resolved by the Bank (e.g. a failed or reversed payment).Do NOT release. Wait for updates.

Retrieve an order#

GET/api/v1/orders/{merchant_order_reference}scope orders:read

Returns your order with its items and the current application (if any). Useful when you only stored your own order reference.

200 OK
{
  "object": "order",
  "merchant_order_reference": "ORD-10045",
  "status": "FINANCING_IN_PROGRESS",
  "amount": 45000000,
  "currency": "NGN",
  "items": [
    {
      "sku": "PHONE-001",
      "name": "Sandbox Smartphone X",
      "quantity": 1,
      "unit_amount": 45000000,
      "line_amount": 45000000,
      "category": "smartphones"
    }
  ],
  "application": {
    "object": "application",
    "reference": "ARAF-2026-000002",
    "status": "CUSTOMER_ACTION_REQUIRED",
    "…": "(same shape as GET /applications/{reference})"
  }
}