Lewati ke konten

Get a settlement

Otorisasi

apiKey
headerAuthorizationBearer <token>

lbp_test_... or lbp_live_...

Parameter path

id*string

Body respons

The settlement

application/json
  1. response
id*string
object*"settlement"
Value in"settlement"
mode*string
Value in"test""live"
status*string
Value in"pending""paid""failed"
settle_date*string
Formatdate
cutoff*string

Entries booked before this time are in it.

Formatdate-time
payments*integer
fees*integer
refunds*integer
payout_fee*integer
amount*integer

What is transferred.

currency*"IDR"
Value in"IDR"
entry_count*integer
payout_account*|null
bank_reference*|

The transfer's reference, once paid.

simulated*boolean

Test mode: no money moved.

failure_reason*string|null
created_at*string
Formatdate-time
completed_at*|
Formatdate-time
trigger*string

schedule: made by the business's settlement schedule; merchant: the business withdrew its ready balance from the dashboard (manual schedule).

Value in"schedule""merchant"
schedule*string

The schedule it was made under: daily (H+1 on working days) or manual (on request; what is not withdrawn is settled on the last working day of the month, trigger schedule).

Value in"daily""manual"
period_start*|

The oldest ledger entry in it; with cutoff, the period it covers. Null after a failed transfer released its entries.

Formatdate-time
Contoh permintaan
curl -X GET 'https://pay.piti.id/v1/settlements/stl_7Hk2...'
Contoh respons
{  "id": "string",  "object": "settlement",  "mode": "test",  "status": "pending",  "settle_date": "2019-08-24",  "cutoff": "2019-08-24T14:15:22Z",  "payments": 0,  "fees": 0,  "refunds": 0,  "payout_fee": 0,  "amount": 0,  "currency": "IDR",  "entry_count": 0,  "payout_account": {    "bank": "string",    "bank_name": "string",    "account_number": "string",    "holder_name": "string"  },  "bank_reference": "string",  "simulated": true,  "failure_reason": "string",  "created_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "trigger": "schedule",  "schedule": "daily",  "period_start": "2019-08-24T14:15:22Z"}