Accounts
The connected_settlement object
A connected settlement records money paid to a connected account, either by you outside Paycose or by a payout to it. It lowers what you owe the account; canceling it makes the amount owed again.
Attributes
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
accountstringRequiredID of the connected account that was paid.
amountintegerRequiredAmount paid, in the currency's smallest unit (for example 49900 = 499.00 THB).
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.paid_attimestampRequiredWhen the payment was made, in Unix seconds.
referencestringRequiredYour reference for the payment; for a settlement recorded by a payout, the payout's ID.
notestringRequiredYour note about the payment; empty when none was given.
ID of the connected account's bank account that was paid into;
nullwhen none was given.receipt_filestringRequiredNullableID of the uploaded receipt file;
nullwhen there is none.receipt_urlstringRequiredNullableShort-lived link to download the receipt file;
nullwhen there is no receipt or the link could not be made.payoutstringRequiredNullableID of the payout that made this payment;
nullfor a payment you recorded yourself. A settlement made by a payout can only be canceled with that payout.statusstringRequiredWhether the settlement still counts.
recordedThe settlement counts against what you owe the account.
cancelledThe settlement was canceled; its amount is owed again.
owed_afterintegerRequiredWhat you owed the account in this currency right after the settlement was recorded, or right after it was canceled, in the currency's smallest unit. A negative value means the account owed you.
cancelled_attimestampRequiredNullableWhen the settlement was canceled, in Unix seconds;
nullwhile it is recorded.createdtimestampRequiredTime the object was created, in Unix seconds.