Accounts
The account object
An account holds money or records activity. Your own merchant account receives your charges and is paid out to your bank; a connected account is a seller or payee under you that holds no money, and Paycose records what you owe it.
Attributes
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
typestringRequiredKind of account.
merchantYour own account.
connectedA connected account under your merchant account.
platformPaycose's own account.
parent_accountstringRequiredNullableFor a connected account, the ID of your merchant account it belongs to;
nullon your own account.customerstringRequiredNullableFor a connected account, the ID of the customer (
cus_…) linked to it;nullwhen none is linked, and alwaysnullon your own account.statusstringRequiredWhether the account can be used.
activeThe account is open.
closedThe account is closed.
display_namestringRequiredThe account's name; may be empty.
metadataobjectRequiredKey-value pairs you attach to the object for your own use. Paycose never reads or changes them.
createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
What the account holds, added only when you list accounts with
expand[]=balance. Omitted when the balance could not be read.Show child attributes
balance.objectstringRequiredString naming the object's type: always
balance.balance.availablearray of objectsRequiredMoney that can be paid out now. Lists every currency the account holds, including currencies at zero.
Show child attributes
balance.available.amountintegerRequiredAmount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.
balance.available.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.available.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.
balance.pendingarray of objectsRequiredMoney that is not available yet, such as sales still inside their settlement period. Lists only currencies with a non-zero amount.
Show child attributes
balance.pending.amountintegerRequiredAmount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.
balance.pending.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.pending.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.
balance.reservedarray of objectsRequiredMoney withheld as a reserve, for example against disputes. Lists only currencies with a non-zero amount.
Show child attributes
balance.reserved.amountintegerRequiredAmount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.
balance.reserved.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.reserved.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.
balance.heldarray of objectsRequiredMoney on its way out: payouts and transfers in progress, or a failed settlement waiting to be retried. Lists only currencies with a non-zero amount.
Show child attributes
balance.held.amountintegerRequiredAmount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.
balance.held.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.held.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.
balance.owedarray of objectsConnected accounts only: what you owe this account, one entry for each currency it has had activity in (
0once settled). A negative amount means the account owes you.Show child attributes
balance.owed.amountintegerRequiredAmount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.
balance.owed.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.owed.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.
balance.owed_pendingarray of objectsConnected accounts only: the part of
owedthat comes from charges still inside their settlement period, with the earliest date it becomes due. Omitted when there is none.Show child attributes
balance.owed_pending.amountintegerRequiredAmount still waiting, in the currency's smallest unit (for example 49900 = 499.00 THB).
balance.owed_pending.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.owed_pending.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.balance.owed_pending.available_ontimestampRequiredEarliest date on which part of this amount becomes due, in Unix seconds.
balance.owed_to_connectedarray of objectsYour own account only: what you owe all your connected accounts together, per currency.
Show child attributes
balance.owed_to_connected.amountintegerRequiredAmount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.
balance.owed_to_connected.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.owed_to_connected.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.
balance.owed_to_connected_pendingarray of objectsYour own account only: the part of
owed_to_connectedthat comes from charges still inside their settlement period, with the earliest date it becomes due. Omitted when there is none.Show child attributes
balance.owed_to_connected_pending.amountintegerRequiredAmount still waiting, in the currency's smallest unit (for example 49900 = 499.00 THB).
balance.owed_to_connected_pending.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
balance.owed_to_connected_pending.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.balance.owed_to_connected_pending.available_ontimestampRequiredEarliest date on which part of this amount becomes due, in Unix seconds.
Lifetime captured payments sent to the account, one amount per currency in the smallest currency unit, added only when you list accounts with
expand[]=sales_volume. Omitted when it could not be read.Show child attributes
sales_volume.amountintegerRequiredAmount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.
sales_volume.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
sales_volume.scaling_factorintegerRequiredNumber of smallest units in one unit of the currency, for example
100for THB. Divide an amount by it to get major units.