Skip to Content
Paycose Docs
Accounts

Accounts

The balance object

An account's balance in the current country, split by when the money can be paid out. GET /balance returns yours, or a connected account's with ?account=acct_…; GET /accounts/{id}/balance returns the named account's.

Attributes

  • livemodebooleanRequired

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

  • objectstringRequired

    String naming the object's type: always balance.

  • accountstringRequired

    ID of the account (acct_…) the balance belongs to.

  • availablearray of objectsRequired

    Money that can be paid out now. Lists every currency the account holds, including currencies at zero.

    Show child attributes
    • available.amountintegerRequired

      Amount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.

    • available.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • available.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.

  • pendingarray of objectsRequired

    Money that is not available yet, such as sales still inside their settlement period. Lists only currencies with a non-zero amount.

    Show child attributes
    • pending.amountintegerRequired

      Amount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.

    • pending.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • pending.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.

  • reservedarray of objectsRequired

    Money withheld as a reserve, for example against disputes. Lists only currencies with a non-zero amount.

    Show child attributes
    • reserved.amountintegerRequired

      Amount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.

    • reserved.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • reserved.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.

  • heldarray of objectsRequired

    Money 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
    • held.amountintegerRequired

      Amount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.

    • held.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • held.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.

  • owedarray of objects

    Connected accounts only: what you owe this account, one entry for each currency it has had activity in (0 once settled). A negative amount means the account owes you.

    Show child attributes
    • owed.amountintegerRequired

      Amount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.

    • owed.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • owed.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.

  • owed_pendingarray of objects

    Connected accounts only: the part of owed that comes from charges still inside their settlement period, with the earliest date it becomes due. Omitted when there is none.

    Show child attributes
    • owed_pending.amountintegerRequired

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

    • owed_pending.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • owed_pending.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.

    • owed_pending.available_ontimestampRequired

      Earliest date on which part of this amount becomes due, in Unix seconds.

  • owed_to_connectedarray of objects

    Your own account only: what you owe all your connected accounts together, per currency.

    Show child attributes
    • owed_to_connected.amountintegerRequired

      Amount in the currency's smallest unit (for example 49900 = 499.00 THB). Can be negative.

    • owed_to_connected.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • owed_to_connected.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.

  • owed_to_connected_pendingarray of objects

    Your own account only: the part of owed_to_connected that comes from charges still inside their settlement period, with the earliest date it becomes due. Omitted when there is none.

    Show child attributes
    • owed_to_connected_pending.amountintegerRequired

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

    • owed_to_connected_pending.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

    • owed_to_connected_pending.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.

    • owed_to_connected_pending.available_ontimestampRequired

      Earliest date on which part of this amount becomes due, in Unix seconds.