DOCS Live

Merchants

Getting paid

What you are owed per payment, the fees, the settlement batches and reports, and payouts to your approved account.

How you get your money depends on your arrangement:

Money only ever goes to the settlement account you and KulPay approved (a second person approves every change of it).

Before you start

A key with settlements:read (and payouts:read, payouts:write for payouts).

The flow at a glance

#WhoWhat happens
1Your teamReads your settlement arrangement (schedule, fees, reserve, destination).
2KulPayTurns payments into payables or ledger entries, and builds a settlement batch each cycle.
3KulPayPays the net to your approved account, or records it for a direct arrangement.
4Your teamDownloads the batch report to reconcile with your orders.

1. Read your arrangement

Your team.

GET /v1/settlement-arrangements · API reference

The version in force per currency: the schedule, how many days after a payment its money is available, the minimum settlement, the reserve and how long it is held, the fees and the refund policy. The destination is shown masked.

2. See what each payment owes you

Your system (managed arrangements).

GET /v1/payables · API reference

Each payment's gross, platform fee, provider cost, reserve and net, and its state: provisional, available, reserved_for_settlement, settled, disputed or reversed. A payment can be succeeded while its payable still waits for settlement.

3. Follow the settlement batches

Your team.

GET /v1/settlements · API reference

One batch per cycle, mode, currency and arrangement: gross, fees, refunds, adjustments and net, with its status and, once paid, the payout.

4. Download a batch's report

Your team, to reconcile.

GET /v1/settlements/{id}/report · API reference

Every line of the batch (each payment, fee, refund and adjustment) as CSV or PDF.

5. Pay out your balance

Your system, where your arrangement keeps an available balance.

POST /payouts · API reference

GET /v1/balance says what is available. A payout goes only to your approved settlement account: the method and the account or wallet must match it, or it is refused. Large payouts wait for a second person's approval.

Request

{
  "amount": "15000.00",
  "currency": "MZN",
  "method": "mpesa",
  "beneficiary": {
    "msisdn": "258841234567",
    "name": "Shop Lda"
  },
  "description": "Weekly payout"
}

States

StateWhat it means
ready

The batch is built and waits to be paid (or for its external settlement to be recorded).

paid

The net was paid to your account.

settled

Its settlement outside KulPay was recorded.

carried_forward

Too small or not payable now; carried into the next batch.

When the money moves

You are paid per your arrangement's schedule, the net of each batch, to your approved account. Refunds and chargebacks reduce later batches.

Events

EventWhat it tells you
settlement.batch.created

A batch was built.

settlement.batch.paid

Its net was paid to you.

settlement.batch.failed

Its payout failed; it is carried into the next.

payout.succeeded

A payout reached your account.

payout.returned

A payout came back; the money is in your balance again.

Errors that matter here

Every error is application/problem+json with a stable code; branch on the code, not the message. The full list is in the error catalogue.

ErrorWhenWhat to do
422 payout_destination_not_approved

A payout to an account other than your approved settlement account.

Pay only to the approved account, or ask KulPay to change it (approved by a second person).

422 insufficient_balance

The payout is more than your available balance.

Read GET /v1/balance first.

Testing it

In test mode, settlement batches and payouts work the same with test money: make a few test payments, wait for the cycle (or ask KulPay to run it) and read the batch and its report.


All flows · API reference · Error catalogue