Skip to Content

Balance & settlements

Read your balance, revenue and settlements to your bank account through the API.

Money from paid payments goes into your balance. We transfer it to your business's bank account in a settlement, H+1 working days.

Balance and settlements belong to the business (all apps together, one transfer to one account). Revenue and the payments in a settlement cover your key's app only. The mode follows the key: an lbp_test_ key sees test data, lbp_live_ live data.

Balance

GET /v1/balance

Terminal
curl https://pay.piti.id/v1/balance \
  -H "Authorization: Bearer lbp_test_xxxxxxxx"
Response
{
  "object": "balance",
  "mode": "test",
  "currency": "IDR",
  "payments": 2000000,
  "fees": -14000,
  "refunds": -50000,
  "payouts": -1439500,
  "payout_fees": 0,
  "balance": 496500,
  "in_settlement": 0,
  "paid_count": 13
}
FieldMeaning
paymentsBooked payments (what customers paid).
feesOur fees (negative).
refundsSucceeded refunds (negative).
payoutsWhat was transferred to your account (negative).
payout_feesSettlement transfer fees (negative).
balanceWhat you are owed now: the sum of the rows above.
in_settlementThe part of balance already in a settlement but not transferred yet.
paid_countNumber of booked payments.

Revenue

GET /v1/revenue sums your key's app's payments paid on (WIB) days from from to to (both included, at most 366 days).

Terminal
curl "https://pay.piti.id/v1/revenue?from=2026-11-01&to=2026-11-30&group_by=month" \
  -H "Authorization: Bearer lbp_test_xxxxxxxx"
Response (part)
{
  "object": "revenue",
  "group_by": "month",
  "currency": "IDR",
  "data": [
    {
      "object": "revenue_period",
      "period": "2026-11",
      "count": 10,
      "amount": 1500000,
      "fee": 10500,
      "total": 1500000,
      "net": 1489500,
      "refunded": 50000,
      "currency": "IDR"
    }
  ]
}
  • group_by: day (the default, period = YYYY-MM-DD), month (YYYY-MM) or total (one row).
  • Days or months with nothing paid are left out. total always has one row.
  • total is what customers paid, net = total - fee, and refunded is what was refunded of those payments so far.

To reconcile per transaction, use GET /v1/payments with paid_gte and paid_lt (by paid time), and each payment's provider_ref to match bank reports.

Settlements

When

  • Each working day we make one settlement per business and mode, with the payments, fees and refunds booked before that day (H+1). Saturdays, Sundays and national holidays are not working days.
  • cutoff shows the boundary: what was booked before that time is in it.
  • amount is what is transferred: payments + fees + refunds - payout_fee.
  • Each transaction is in at most one settlement.

A settlement waits for the next working day when:

  • there is no verified payout account yet (live mode),
  • a refund is still in progress,
  • the sum is zero or less.

Payments our team is checking (review_reason is set) are left out until the check is done.

Statuses

statusMeaning
pendingMade, waiting for the transfer. Shown in the balance's in_settlement.
paidTransferred. bank_reference and completed_at are set.
failedThe transfer failed. The reason is in failure_reason. Its contents go into the next working day's settlement.

There is no webhook for settlements yet. Read them through the API, or in the dashboard under Settlement.

Read settlements

Settlement (part)
{
  "id": "stl_7Hk2...",
  "object": "settlement",
  "mode": "live",
  "status": "paid",
  "settle_date": "2026-11-30",
  "cutoff": "2026-11-29T17:00:00Z",
  "payments": 1500000,
  "fees": -10500,
  "refunds": -50000,
  "payout_fee": 0,
  "amount": 1439500,
  "entry_count": 21,
  "payout_account": {
    "bank": "bca",
    "bank_name": "BCA",
    "account_number": "••••••7890",
    "holder_name": "PT Contoh Usaha"
  },
  "bank_reference": "TRF-0000000000",
  "simulated": false
}

Each row of /payments has payment_id, reference, method, va_bank, app_id, amount, fee (negative), refunded (negative) and net = amount + fee + refunded. amount is 0 when only a refund of an older payment is in this settlement. The settlement's totals cover all your business's apps, so they can be more than the rows of one app add up to.

The dashboard also gives a CSV per settlement.

Test mode

With an lbp_test_ key, settlements are simulated and paid at once (simulated: true). No money moves and the payout account is not used. Use them to try your reports.

Payout account

The payout account is one of the steps of Verifikasi bisnis (business verification) in the dashboard: Rekening bank for individuals, Rekening perusahaan for a PT or CV. Our team reviews it with your verification; when the verification is approved, the account is verified with it.

  • Only the business owner can set or change it.
  • The account holder's name must match the name on the KTP (individuals) or the company name (PT or CV).
  • While your verification is being reviewed, the account cannot be changed.
  • After approval, you can replace it under Rekening pencairan (payout account). A new account needs a new verification; until it is verified, live settlements wait.