Accounts
The connected_account_summary object
A connected account's record, per currency: its destination charges, the share of them you owe it, the settlements you recorded, and what you owe it now. GET /accounts/{id}/summary returns it for a connected account. In each currency payments.share − payments.refunded_share − settlements.total + settlements.cancelled + adjustments.total + carried_over.total = owed.
Attributes
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.objectstringRequiredString naming the object's type: always
connected_account_summary.accountstringRequiredID of the connected account (
acct_…) the summary is for.record_onlybooleanRequiredAlways
true: payments settle to you and the account's share is recorded as owed to it, so Paycose holds no money for the account. Kept for compatibility.currenciesarray of objectsRequiredOne entry per currency the account has activity in, sorted by currency code. When you pass
currency, only that currency, with zeros when nothing moved in it.Show child attributes
currencies.currencystringRequiredThree-letter ISO 4217 currency code of this entry, in lowercase.
currencies.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.currencies.paymentsobjectRequiredThe account's destination charges and the share of them owed to it.
Show child attributes
currencies.payments.countintegerRequiredNumber of captured destination charges.
currencies.payments.grossintegerRequiredAmount captured on the charges.
currencies.payments.refundedintegerRequiredAmount refunded on the charges.
currencies.payments.application_feesintegerRequiredApplication fees you kept from the charges.
currencies.settlementsobjectRequiredThe settlements you recorded as paid to the account.
Show child attributes
currencies.settlements.countintegerRequiredNumber of settlements recorded, canceled ones included.
currencies.settlements.totalintegerRequiredAmount of every settlement recorded, canceled ones included. It lowers what you owe.
currencies.settlements.cancelledintegerRequiredAmount that canceled settlements gave back to what you owe.
currencies.adjustmentsobjectRequiredOther changes to what you owe the account, such as application fee refunds.
Show child attributes
currencies.adjustments.countintegerRequiredNumber of adjustments.
currencies.adjustments.totalintegerRequiredTheir signed sum: a positive total raises what you owe, a negative one lowers it.
currencies.carried_overobjectRequiredWhat the account held when it stopped holding money, carried over as owed to it.
Show child attributes
currencies.carried_over.countintegerRequiredNumber of carry-over entries.
currencies.carried_over.totalintegerRequiredTheir signed sum: a positive total raises what you owe, a negative one lowers it.
currencies.owedintegerRequiredWhat you owe the account in this currency, read from the ledger. A negative amount means the account owes you.
currencies.owed_gapintegerRequiredowedless what its parts add up to. Not0only when the ledger and its parts disagree.currencies.owed_readyintegerRequiredThe part of
owedyou can pay now:owed−owed_settling.currencies.owed_settlingintegerRequiredThe part of
owedfrom charges still inside their settlement period.0when nothing is settling or nothing is owed.currencies.owed_available_ontimestampRequiredNullableWhen the earliest part of
owed_settlingbecomes due, in Unix seconds;nullwhen nothing is settling.