DeriPayDeriPayDocs
DeriPayDeriPayDocs
Merchant dashboardBuild with DeriPay

Getting started

QuickstartAuthenticationEnvironments

Integration guides

Limits and input formatsIdempotency and retriesPayment lifecycleWebhooksTest your integration

API reference

Create a collectionCreate a payoutRetrieve a paymentRead balances
Errors and troubleshooting

Merchant API · v1

Endpoints

Read balances

GET /balance: check funds and payout availability for your merchant.

Endpoint

GET /api/v1/balance

Required scope: balances:read. No request body or merchant identifier.

Request

curl --fail-with-body "$DERIPAY_API_BASE_URL/balance" \
  -H "X-API-Key: $DERIPAY_API_KEY"

Response

200 OK · illustrative values
{
  "data": {
    "currency": "KES",
    "available_minor": 500000,
    "reserved_minor": 10000,
    "funding_pending_minor": 0,
    "payout_available_minor": 500000
  }
}
FieldMeaning
currencyKES
available_minorMerchant funds not reserved for in-progress payouts
reserved_minorMerchant funds committed to in-progress payouts
funding_pending_minorLegacy confirmed collection holds awaiting reconciliation; zero for new confirmed STK deposits
payout_available_minorThe smaller of unreserved merchant funds and available merchant-owned B2C funds

All values are integer cents. Divide by 100 for KES display.

Verified STK deposits increase available_minor and payout_available_minor immediately. funding_pending_minor is retained for legacy holds awaiting reconciliation. Unconfirmed STK requests do not increase any balance.

Use the right balance

Use payout_available_minor for payout availability and allow for applicable charges. Confirmed STK funds are immediately spendable, subject to payout amounts, fees, merchant limits and existing reservations.

The response is a snapshot. Concurrent requests can change it before a payout is accepted; the creation endpoint performs the authoritative reservation check.

Retrieve a payment

GET /collections/:id or /disbursements/:id: read the current payment status.

Errors and troubleshooting

Understand failures and choose whether to retry, correct input, or request support.

On this page

EndpointRequestResponseUse the right balance