Orders & money
Settlements & event history
The Bank pays approved vendors directly to their verified settlement accounts. Use these endpoints to reconcile payments and to audit or replay webhook events.
List settlements#
GET
/api/v1/settlementsscope settlements:readstatusstringoptional- Filter by payment status, e.g. CONFIRMED.
limitinteger (1–200)optional- Default 50, newest first.
curl https://pay-with-araf.onrender.com/api/v1/settlements?status=CONFIRMED&limit=50 \
-H "Authorization: Bearer $ARAF_SECRET_KEY"{
"object": "list",
"data": [
{
"payment_reference": "PAY-000014",
"application_reference": "ARAF-2026-000002",
"merchant_order_reference": "ORD-10045",
"vendor_reference": "VENDOR-LEKKI-ELEC",
"vendor_name": "Lekki Electronics Ltd",
"amount": 45000000,
"currency": "NGN",
"status": "CONFIRMED",
"beneficiary_account": "••••••6781",
"beneficiary_bank": "Sandbox Bank",
"provider_reference": "NIP-SBX-3F9A1C7E52B0",
"reconciliation_status": "MATCHED",
"initiated_at": "2026-11-25T10:30:09.020Z",
"confirmed_at": "2026-11-25T10:42:18.120Z",
"simulated": true
}
]
}Payment statuses#
| Status | Meaning |
|---|---|
| PENDING_APPROVAL | Instruction created; awaiting the Bank’s maker-checker approval. |
| INITIATED / PROCESSING | Sent to the payment rail. |
| UNKNOWN | The outcome is unknown (e.g. timeout). The Bank reconciles before any retry — no double payment. |
| RECONCILIATION_REQUIRED | The provider’s confirmation did not match the instruction; under investigation. |
| CONFIRMED | Confirmed by the authoritative payment system. Not by itself a release authorisation. |
| FAILED | Rejected by the rail. A new instruction needs fresh approval. |
| REVERSED | A confirmed payment was reversed. Any release is suspended. |
reconciliation_status is one of PENDING, MATCHED, DISCREPANCY or RESOLVED. Beneficiary account numbers are always masked.
List webhook events#
GET
/api/v1/webhook-eventsscope webhooks:readtypestringoptional- Filter by event type, e.g. goods.release_authorized.
limitinteger (1–200)optional- Default 50, newest first.
curl https://pay-with-araf.onrender.com/api/v1/webhook-events?type=goods.release_authorized&limit=20 \
-H "Authorization: Bearer $ARAF_SECRET_KEY"{
"object": "list",
"data": [
{
"id": "evt_95L9ZTu48WZumW0FUOMXD8mI",
"event": "goods.release_authorized",
"created_at": "2026-11-25T10:55:02.441Z",
"application_reference": "ARAF-2026-000002",
"merchant_order_reference": "ORD-10045",
"payload": {
"event_id": "evt_95L9ZTu48WZumW0FUOMXD8mI",
"event": "goods.release_authorized",
"version": "1.0",
"created_at": "2026-11-25T10:55:02.441Z",
"livemode": false,
"partner_id": "a5e7531d-2293-47f3-9a90-f4a326227a4f",
"resource_version": 14,
"data": {
"application_reference": "ARAF-2026-000002",
"merchant_order_reference": "ORD-10045",
"status": "READY_FOR_RELEASE",
"currency": "NGN",
"vendor_reference": "VENDOR-LEKKI-ELEC",
"vendor_payment_amount": 45000000,
"payment_reference": "PAY-000014",
"payment_status": "CONFIRMED",
"release_authorized": true,
"release_reference": "REL-000009",
"authorized_items": [
{
"sku": "PHONE-001",
"quantity": 1
}
],
"simulated": true
}
},
"deliveries": [
{
"id": "0b2bbd8c-53e7-417e-9505-5e6cd7972b2c",
"endpoint": "https://shop.example.com/webhooks/araf",
"status": "SUCCEEDED",
"attempts": 1,
"last_status_code": 200,
"last_error": null,
"next_attempt_at": null,
"succeeded_at": "2026-11-25T10:55:03.012Z"
}
]
}
]
}Delivery status is PENDING, RETRYING, SUCCEEDED, DEAD_LETTERED or SKIPPED (endpoint disabled). payload is exactly the body that was signed and delivered.
Retry an event#
POST
/api/v1/webhook-events/{event_id}/retryscope webhooks:writeQueues a fresh delivery of the event to every active endpoint subscribed to its type, resetting the attempt counter.
curl -X POST https://pay-with-araf.onrender.com/api/v1/webhook-events/evt_95L9ZTu48WZumW0FUOMXD8mI/retry \
-H "Authorization: Bearer $ARAF_SECRET_KEY" \
-H "Content-Type: application/json"{
"queued_deliveries": 1
}