Skip to Content
Paycose Docs
Accounts

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

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • accountstringRequired

    ID of the connected account that was paid.

  • amountintegerRequired

    Amount paid, in the currency's smallest unit (for example 49900 = 499.00 THB).

  • currencystringRequired

    Three-letter ISO 4217 currency code, in lowercase.

  • scaling_factorintegerRequired

    Number of smallest units in one unit of the currency, for example 100 for THB. Divide an amount by it to get major units.

  • paid_attimestampRequired

    When the payment was made, in Unix seconds.

  • referencestringRequired

    Your reference for the payment; for a settlement recorded by a payout, the payout's ID.

  • notestringRequired

    Your note about the payment; empty when none was given.

  • bank_accountstring | object (bank_account)RequiredExpandable

    ID of the connected account's bank account that was paid into; null when none was given.

  • receipt_filestringRequiredNullable

    ID of the uploaded receipt file; null when there is none.

  • receipt_urlstringRequiredNullable

    Short-lived link to download the receipt file; null when there is no receipt or the link could not be made.

  • payoutstringRequiredNullable

    ID of the payout that made this payment; null for a payment you recorded yourself. A settlement made by a payout can only be canceled with that payout.

  • statusstringRequired

    Whether the settlement still counts.

    • recorded

      The settlement counts against what you owe the account.

    • cancelled

      The settlement was canceled; its amount is owed again.

  • owed_afterintegerRequired

    What 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_attimestampRequiredNullable

    When the settlement was canceled, in Unix seconds; null while it is recorded.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.