跳到主要内容

Retrieve Balance Transaction

Introduction

Balance Transaction Object

FieldExampleRemark
idtxn_Guv9q9qzX1WDS8SGe9aXLqXD
objectbalance_transaction
accountacct_123456
typepaymentCan be one of the payment, refund, settlement, settlement_cancel, settlement_failure, payout, adjustment
source_idpm_abcd08jnzDGKOOuv54v5qDq1Relevant object ID
source_currency_localIDRActual source funding currency
source_amount_local2204.00Actual source funding amount
source_currencyIDRSource request currency
source_amount2204.00Source request amount
currencyUSDBalance currency
amount0.14Balance amount
fee0.22Balance fee charged
fee_detail
net-0.08
statuspendingCan be one of the pending, available
fx_from_source_converted6.26213e-5Exchange rate from source currency to balance currency
fx_from_source_pricing1.09322Exchange rate from pricing currency to balance currency
description
time_created2023-09-14T02:06:21+08:00

Interface

GET /v1/balance_transactions/:balance_transactions_id

Request Params

N/A

Response Params

Response Example

200 success:

{
"id": "txn_3LAqvMBzNavogjbD0GvO1I01",
"object": "balance_transaction",
"account": "acct_yz50aD",
"type": "payment",
"source_id": "pm_OSuP88084OeLafvff50G0i01",
"source_currency_local": "MYR",
"source_amount_local": "0.10",
"source_currency": "MYR",
"source_amount": "0.10",
"currency": "MYR",
"amount": "0.10",
"fee": "0.01",
"fee_detail": [
{
"amount": 1,
"currency": "MYR",
"description": "",
"type": "piedpay_fee"
}
],
"net": "0.09",
"status": "pending",
"fx_from_source_converted": 1,
"fx_from_pricing_converted": 1,
"description": null,
"time_created": "2022-06-15T15:48:38+08:00"
}