Docs / API reference
Settlements
Where your day's money landed, and one record you can export.
The Settlement object
A record that money landed in your own till or account. Pitisha reads settlements from each source and closes the day on one record.
Attributes
idstringUnique identifier, starting set_.
statusstringWhether the money has landed.
One of
pending,landedamountintegerAmount in the smallest unit.
wallet_idstringThe wallet this settlement belongs to.
destinationobjectWhere it landed.
daystringThe trading day, YYYY-MM-DD.
collectionsintegerHow many collections it covers.
receipt_urlstringA link to the receipt in your portal.
created_atstringISO 8601 timestamp.
Example object
{
"id": "set_5m2c8v",
"object": "settlement",
"status": "landed",
"amount": 48250000,
"currency": "KES",
"wallet_id": "wal_main",
"destination": {
"type": "bank_account",
"account_last4": "2291",
"bank_code": "01"
},
"day": "2026-10-27",
"collections": 412,
"receipt_url": "https://portal.example.com/receipts/set_5m2c8v",
"livemode": false,
"created_at": "2026-10-28T06:00:00+03:00"
}/v1/settlementsList settlements
Newest first.
Query parameters
wallet_idstringOnly this wallet.
daystringA trading day, YYYY-MM-DD.
limitintegerHow many items to return, from 1 to 100. Defaults to 20.
starting_afterstringA cursor from a previous response's next_cursor. Returns the next page.
Errors
- 401 authentication_failed
See Errors for what each means.
curl -X GET "$PITISHA_API/v1/settlements" \
-H "Authorization: Bearer $PITISHA_SECRET_KEY"{
"object": "list",
"data": [
{
"id": "set_5m2c8v",
"object": "settlement",
"status": "landed",
"amount": 48250000,
"currency": "KES",
"wallet_id": "wal_main",
"destination": {
"type": "bank_account",
"account_last4": "2291",
"bank_code": "01"
},
"day": "2026-10-27",
"collections": 412,
"receipt_url": "https://portal.example.com/receipts/set_5m2c8v",
"livemode": false,
"created_at": "2026-10-28T06:00:00+03:00"
}
],
"has_more": true,
"next_cursor": "cur_9fK2mQ"
}/v1/settlements/{id}Retrieve a settlement
Fetch one settlement.
Path parameters
idstringrequiredThe settlement id.
Errors
- 404 not_found
See Errors for what each means.
curl -X GET "$PITISHA_API/v1/settlements/ID_FROM_RESPONSE" \
-H "Authorization: Bearer $PITISHA_SECRET_KEY"{
"id": "set_5m2c8v",
"object": "settlement",
"status": "landed",
"amount": 48250000,
"currency": "KES",
"wallet_id": "wal_main",
"destination": {
"type": "bank_account",
"account_last4": "2291",
"bank_code": "01"
},
"day": "2026-10-27",
"collections": 412,
"receipt_url": "https://portal.example.com/receipts/set_5m2c8v",
"livemode": false,
"created_at": "2026-10-28T06:00:00+03:00"
}/v1/day-closes/{day}Retrieve a day close
One record for a whole trading day.
Totals for the day, how many payments matched, how many are in the pile and how many have no match, and a link to export the record as CSV for your accountant.
Path parameters
daystringrequiredThe trading day, YYYY-MM-DD.
Errors
- 404 not_found
See Errors for what each means.
curl -X GET "$PITISHA_API/v1/day-closes/2026-10-27" \
-H "Authorization: Bearer $PITISHA_SECRET_KEY"{
"object": "day_close",
"day": "2026-10-27",
"collected": 48250000,
"paid_out": 12000000,
"fees": 579000,
"matched": 398,
"pile": 9,
"no_match": 5,
"export_url": "https://portal.example.com/exports/2026-10-27.csv",
"livemode": false
}