Balance transactions
The balance_transaction object
A balance transaction is one entry in a balance's ledger. Paycose writes them for every charge, refund, dispute, fee, transfer and payout, so an account's balance transactions explain its balance. Record-only entries track money held outside Paycose and never change an amount you can pay out.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
amountintegerRequiredGross amount of the entry, before fees and any reserve, in the currency's smallest unit (for example 49900 = 499.00 THB); positive when it adds to the balance, negative when it takes from it.
amountminusfeeisnet.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.statestringRequiredWhether the entry counts toward the available balance yet.
pendingNot available yet; it becomes available on
available_on.completedBooked and counted in the available balance.
heldMoney set aside for something on its way out, such as a payout or transfer in progress; not available.
settledTakes held money out of the balance once the payout or transfer it was held for goes ahead.
releasedHeld money that was let go, so it is available again.
refundedReturns money to a customer for a refund or a voided charge.
descriptionstringRequiredHuman-readable description of the entry, such as the charge or settlement it belongs to.
original_amountintegerRequiredFor a converted entry, the amount before conversion, in the smallest unit of
original_currency;0otherwise.original_currencystringRequiredFor a converted entry, the currency before conversion; empty otherwise.
exchange_ratenumberRequiredFor a converted entry, the rate used: units of
currencyfor one unit oforiginal_currency;0otherwise.balance_idstringRequiredID of the balance the entry was booked to.
ID of the account that owns the balance. Omitted when it cannot be determined.
account_namestringRequiredDisplay name of the connected account that owns this balance; empty for your own account.
event_typestringRequiredKind of event that produced the entry.
chargeA charge.
refundA refund of a charge.
disputeA dispute of a charge.
transferA transfer between balances.
payoutA payout to a bank account.
reserveMoney moved into or released from a reserve.
application_feeAn application fee, such as a refund made directly on the fee.
connected_settlementA settlement recorded for a connected account.
connected_moveMoney a connected account held, moved to your own account when connected accounts stopped holding money.
topupA purchase of Paycose credit.
platform_creditAn adjustment of your Paycose credit.
event_idstringRequiredID of the object that produced the entry, such as a charge, refund, transfer or payout.
parent_event_typestringRequiredKind of the object the event belongs to, such as
chargefor a refund of that charge; empty when there is none.parent_event_idstringRequiredID of the object the event belongs to, such as the charge of a refund or dispute; empty when there is none.
transfer_idstringRequiredID of the transfer the entry belongs to; empty otherwise.
journal_idstringRequiredID of the journal the entry was posted in. Entries posted together as one balanced set share it.
categorystringRequiredWhich part of a payment the entry books.
Show 14 possible values
main_paymentThe payment itself.
main_refundMoney returned by a refund or a lost dispute.
gateway_feePaycose's fee.
provider_feeA fee charged by a payment provider.
application_feeAn application fee.
application_fee_refundA refund of an application fee.
application_taxTax collected with an application fee.
vatValue-added tax, such as on a Paycose credit purchase.
transfer_reversalA reversed transfer.
connected_shareThe share of a destination charge you owe the connected account (record-only).
connected_settlementA payment to a connected account that lowers what you owe it (record-only).
connected_adjustmentA change to what you owe a connected account, such as from an application fee refund (record-only).
connected_carried_overWhat a connected account held when it stopped holding money, carried over as owed to it (record-only).
credit_burnPaycose credit used to pay a fee.
forex_quote_idstringRequiredID of the forex quote used to convert the entry; empty when none was used.
available_ontimestampRequiredNullableWhen the entry's funds become available, in Unix seconds. An entry that was never pending, a record-only one included, reports the time it was created.
typestringRequiredKind of transaction, named as Stripe names balance transaction types.
Show 13 possible values
chargeMoney from a charge.
application_feeAn application fee you earned.
application_fee_refundA refund of an application fee.
transferMoney moved by a transfer.
transfer_refundA transfer reversed back to its source.
refundMoney returned to a customer by a refund.
refund_failureA failed or canceled refund's amount returned to the balance.
adjustmentA correction or other change, including tax and dispute amounts.
paycose_feePaycose's fee.
payoutMoney paid out to a bank account.
payout_cancelA canceled or failed payout's amount returned to the balance.
reserve_transactionMoney moved into or out of a reserve.
creditA purchase, use or adjustment of Paycose credit.
sourcestringRequiredID of the object that caused the entry, such as the charge or payout; falls back to
event_id.feeintegerRequiredFees deducted from the gross amount, in the currency's smallest unit (for example 49900 = 499.00 THB);
0when none were recorded.fee_detailsarray of objectsRequiredBreakdown of
fee, one entry per fee.Show child attributes
fee_details.typestringRequiredKind of fee.
paycose_feePaycose's fee.
provider_feeThe fee your own payment provider kept, on a charge paid into your provider account.
fee_details.amountintegerRequiredFee amount in the currency's smallest unit (for example 49900 = 499.00 THB).
fee_details.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
fee_details.applicationstringID of the account that earned the fee, set only when
typeisapplication_fee; omitted for other fee types.
netintegerRequiredAmount the entry moves after fees and any reserve, in the currency's smallest unit.
reporting_categorystringRequiredCategory to group the entry under in reports.
Show 14 possible values
chargeCharges.
refundRefunds.
refund_failureRefunds that failed or were canceled.
platform_earningApplication fees you earned.
platform_earning_refundRefunds of application fees.
transferTransfers.
transfer_reversalTransfer reversals.
payoutPayouts.
payout_reversalPayouts that were canceled or failed.
disputeDisputes.
feePaycose and provider fees.
risk_reserved_fundsMoney moved into or out of a reserve.
taxTax.
other_adjustmentAny other adjustment.
planestringWhether the entry moves money Paycose holds or only records money held elsewhere. Omitted when not known.
custodialMoney Paycose holds.
memoMoney held outside Paycose, recorded only.
record_onlybooleanRequiredtruefor a record-only entry: no money moved through Paycose, so it never adds to an amount you can pay out.account_codestringCode of the ledger account the entry was booked to, for example
2100for your balance. Omitted when not known.The balance the entry was booked to, when you expand
balance.Show child attributes
balance.idstringRequiredUnique identifier for the object.
balance.objectstringRequiredString naming the object's type.
balance.livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.balance.createdtimestampRequiredTime the object was created, in Unix seconds.
balance.updatedtimestampRequiredTime the object last changed, in Unix seconds.
balance.accountstringID of the account (
acct_…) that owns the balance. Omitted when the balance has no account.balance.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.namestringName of the balance. Omitted when it has none.
balance.availableintegerRequiredFunds available now, in the smallest currency unit.
balance.holdintegerRequiredFunds that are pending or on hold and not yet available, in the smallest currency unit.
balance.scaling_factorintegerRequiredNumber of smallest currency units in one major unit of
currency(for example,100for THB), soavailable / scaling_factoris the amount in major units.balance.descriptionstringRequiredFree-text description of the balance.