- Home
- API reference
- Reports
- Get the settlements
Get the settlements
Summarizes payments by business day, including settled and outstanding amounts.
/v1/reports/settlementsbalances:read permission.Query parameters
Section titled “Query parameters”fromstringrequiredThe first day of the period, YYYY-MM-DD in Jakarta time. It is included.
Example: 2026-10-01
Pattern: ^\d{4}-\d{2}-\d{2}$
tostringrequiredThe last day of the period, YYYY-MM-DD in Jakarta time. It is included.
Example: 2026-10-26
Pattern: ^\d{4}-\d{2}-\d{2}$
Response (200)
Section titled “Response (200)”dataobjectrequiredThe returned object, or an array of objects for a list.
livemodebooleanrequiredtrue means this object belongs to live and can involve real payments; false means it belongs to the sandbox.
currencystringrequiredThe currency, an ISO 4217 code. Only IDR today.
Example: IDR
Value: IDR
fromstringrequiredThe first day of the period, YYYY-MM-DD in Jakarta time. It is included.
Example: 2026-10-01
Pattern: ^\d{4}-\d{2}-\d{2}$
tostringrequiredThe last day of the period, YYYY-MM-DD in Jakarta time. It is included.
Example: 2026-10-26
Pattern: ^\d{4}-\d{2}-\d{2}$
daysarray of objectrequiredOne row for each business day that had paid payments.
business_daystringrequiredThe Jakarta calendar day used to group this payment or balance entry, YYYY-MM-DD.
Example: string
Pattern: ^\d{4}-\d{2}-\d{2}$
paid_countintegerrequiredHow many payments were paid that day.
Example: 5
charged_amountintegerrequiredTotal charged to the payer, including the fee when the payer bears it, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 1000000
fee_amountintegerrequiredBaiyar's fee for this payment, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 7000
net_amountintegerrequiredThe amount credited after the Baiyar fee, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 993000
settled_countintegerrequiredHow many of them the provider has settled.
Example: 5
settled_net_amountintegerrequiredNet amount of that day's payments already matched to a provider settlement, in the smallest unit of currency (Rp125.000 is 12500000).
Example: 4965000
statusstringrequiredawaiting (none settled), partial or settled (all settled).
Example: settled
Possible values: awaiting, partial, settled
last_settled_atstring | nullrequiredTime the latest payment in this row was matched to a provider settlement; null if none has settled yet.
Example: 2026-10-26T03:04:05.000Z
Format: date-time
metaobjectrequiredRequest details such as its id and pagination cursor.
request_idstringrequiredThe id of this request. Quote it when you ask support about it.
Example: req_Hy3k9QzT2LmN8vXa
A failed request answers with the common error shape; see Errors.
curl "https://api.baiyar.com/v1/reports/settlements" \ -H "Authorization: Bearer $BAIYAR_KEY"{ "data": { "livemode": false, "currency": "IDR", "from": "2026-10-01", "to": "2026-10-26", "days": [ { "business_day": "string", "paid_count": 5, "charged_amount": 1000000, "fee_amount": 7000, "net_amount": 993000, "settled_count": 5, "settled_net_amount": 4965000, "status": "settled", "last_settled_at": "2026-10-26T03:04:05.000Z" } ] }, "meta": { "request_id": "req_Hy3k9QzT2LmN8vXa" }}