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

Orders & money

Goods release verification

Under Murabaha the Bank buys the goods from the vendor and sells them to the customer. You may hand over goods only when the Bank has authorised release — and you must confirm that authorisation through the API.

The rule#

GET /api/v1/releases/{reference} is the only acceptable proof

Release goods only when this endpoint returns release_authorized: true and status: "AUTHORIZED", for the expected order and items. A webhook, a redirect, a customer’s screenshot, an email or a payment notice is never sufficient on its own.

A release is authorised only after the vendor payment is confirmed by the authoritative payment system and every contractual condition (possession evidenced, cost and profit disclosed, sale contract executed) is satisfied. You learn the release reference from the goods.release_authorized webhook (data.release_reference) or from release.reference on the application.

Retrieve a release#

GET/api/v1/releases/{release_reference}scope orders:read
curl https://pay-with-araf.onrender.com/api/v1/releases/REL-000009 \
  -H "Authorization: Bearer $ARAF_SECRET_KEY"
200 OK
{
  "object": "release_authorization",
  "reference": "REL-000009",
  "status": "AUTHORIZED",
  "release_authorized": true,
  "application_reference": "ARAF-2026-000002",
  "merchant_order_reference": "ORD-10045",
  "vendor_reference": "VENDOR-LEKKI-ELEC",
  "currency": "NGN",
  "authorized_amount": 45000000,
  "authorized_items": [
    {
      "sku": "PHONE-001",
      "name": "Sandbox Smartphone X",
      "quantity": 1
    }
  ],
  "payment_reference": "PAY-000014",
  "payment_status": "CONFIRMED",
  "vendor_payment_amount": 45000000,
  "authorized_at": "2026-11-25T10:55:02.441Z",
  "suspended_at": null,
  "suspension_reason": null,
  "simulated": true,
  "livemode": false
}
release_authorized
booleanrequired
true only while status is AUTHORIZED.
status
stringrequired
AUTHORIZED, SUSPENDED, CONSUMED or REVOKED (below).
merchant_order_reference
stringrequired
Must match the order you are about to fulfil.
authorized_items
arrayrequired
The SKUs, names and quantities you may hand over. Release nothing else.
authorized_amount
integer (kobo)required
Purchase amount covered by the authorisation.
payment_reference / payment_status / vendor_payment_amount
string / string / integerrequired
The confirmed vendor payment backing this release.
suspended_at / suspension_reason
ISO 8601 / stringoptional
Set when the Bank suspended the release.
simulated
booleanrequired
true in the sandbox (payment rails are simulated).

Release statuses#

Release statuses
Statusrelease_authorizedMeaning
AUTHORIZEDtrueYou may hand over the authorised items.
SUSPENDEDfalseDo not release. Suspended by the Bank, after a cancellation request, or after a vendor payment reversal. You receive goods.release_suspended.
CONSUMEDfalseAlready used: you recorded dispatch or collection.
REVOKEDfalseWithdrawn permanently (e.g. order cancelled and refunded). Do not release.

A suspended release can be reinstated by the Bank; you then receive another goods.release_authorized with reinstated: true. Always re-verify immediately before handing over goods.

Release checklist#

  1. Receive goods.release_authorized (verify its signature) or see the order in the Partner portal’s Ready for release queue.
  2. Call GET /api/v1/releases/{reference}. Check release_authorized === true, the order reference and the items.
  3. Hand over only the authorised items to the customer’s verified delivery contact.
  4. Record it immediately with POST /orders/{ref}/fulfil (DISPATCHED or COLLECTED). This consumes the authorisation.

Fulfilment calls are rejected with 409 RELEASE_NOT_AUTHORIZED when no active authorisation exists — the API enforces the rule even if your code does not.