Lewati ke konten

Get the balance

The business's balance in the key's mode, across all its apps (one payout to one bank account): booked payments, fees, refunds and payouts, and what is in a settlement not yet transferred.

Otorisasi

apiKey
headerAuthorizationBearer <token>

lbp_test_... or lbp_live_...

Body respons

The balance

application/json
  1. response

Ledger sums in the key's mode (fees, refunds, payouts and payout fees are negative). balance is what the business is owed now.

object*"balance"
Value in"balance"
mode*string
Value in"test""live"
currency*"IDR"
Value in"IDR"
payments*integer
fees*integer
refunds*integer
payouts*integer
payout_fees*integer
balance*integer
in_settlement*integer

In settlements made but not yet transferred.

paid_count*integer
Contoh permintaan
curl -X GET 'https://pay.piti.id/v1/balance'
Contoh respons
{  "object": "balance",  "mode": "test",  "currency": "IDR",  "payments": 0,  "fees": 0,  "refunds": 0,  "payouts": 0,  "payout_fees": 0,  "balance": 0,  "in_settlement": 0,  "paid_count": 0}