Skip to Content
Paycose Docs
Accounts

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

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

  • typestringRequired

    Kind of account.

    • merchant

      Your own account.

    • connected

      A connected account under your merchant account.

    • platform

      Paycose's own account.

  • parent_accountstringRequiredNullable

    For a connected account, the ID of your merchant account it belongs to; null on your own account.

  • customerstringRequiredNullable

    For a connected account, the ID of the customer (cus_…) linked to it; null when none is linked, and always null on your own account.

  • statusstringRequired

    Whether the account can be used.

    • active

      The account is open.

    • closed

      The account is closed.

  • display_namestringRequired

    The account's name; may be empty.

  • metadataobjectRequired

    Key-value pairs you attach to the object for your own use. Paycose never reads or changes them.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • balanceobjectNullableExpandable

    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.objectstringRequired

      String naming the object's type: always balance.

    • balance.availablearray of objectsRequired

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

      Show child attributes
      • balance.available.amountintegerRequired

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

      • balance.available.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

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

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

      • balance.pending.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

    • balance.reservedarray of objectsRequired

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

      Show child attributes
      • balance.reserved.amountintegerRequired

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

      • balance.reserved.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

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

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

      • balance.held.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

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

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

      • balance.owed.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

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

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

      • balance.owed_pending.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

      • balance.owed_pending.available_ontimestampRequired

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

    • balance.owed_to_connectedarray of objects

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

      Show child attributes
      • balance.owed_to_connected.amountintegerRequired

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

      • balance.owed_to_connected.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

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

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

      • balance.owed_to_connected_pending.currencystringRequired

        Three-letter ISO 4217 currency code, in lowercase.

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

      • balance.owed_to_connected_pending.available_ontimestampRequired

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

  • sales_volumearray of objectsExpandable

    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.amountintegerRequired

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

    • sales_volume.currencystringRequired

      Three-letter ISO 4217 currency code, in lowercase.

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