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.
apiKeyheader
AuthorizationBearer <token>lbp_test_... or lbp_live_...
The balance
application/json- 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*stringValue in
"test""live"currency*"IDR"Value in
"IDR"payments*integerfees*integerrefunds*integerpayouts*integerpayout_fees*integerbalance*integerin_settlement*integerIn settlements made but not yet transferred.
paid_count*integercurl -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}