Skip to Content
Paycose Docs
Accounts

Accounts

The connected_account_summary object

A connected account's record, per currency: its destination charges, the share of them you owe it, the settlements you recorded, and what you owe it now. GET /accounts/{id}/summary returns it for a connected account. In each currency payments.share − payments.refunded_share − settlements.total + settlements.cancelled + adjustments.total + carried_over.total = owed.

Attributes

  • livemodebooleanRequired

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

  • objectstringRequired

    String naming the object's type: always connected_account_summary.

  • accountstringRequired

    ID of the connected account (acct_…) the summary is for.

  • record_onlybooleanRequired

    Always true: payments settle to you and the account's share is recorded as owed to it, so Paycose holds no money for the account. Kept for compatibility.

  • currenciesarray of objectsRequired

    One entry per currency the account has activity in, sorted by currency code. When you pass currency, only that currency, with zeros when nothing moved in it.

    Show child attributes
    • currencies.currencystringRequired

      Three-letter ISO 4217 currency code of this entry, in lowercase.

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

    • currencies.paymentsobjectRequired

      The account's destination charges and the share of them owed to it.

      Show child attributes
      • currencies.payments.countintegerRequired

        Number of captured destination charges.

      • currencies.payments.grossintegerRequired

        Amount captured on the charges.

      • currencies.payments.refundedintegerRequired

        Amount refunded on the charges.

      • currencies.payments.application_feesintegerRequired

        Application fees you kept from the charges.

      • currencies.payments.shareintegerRequired

        The account's share of the charges, owed to it.

      • currencies.payments.refunded_shareintegerRequired

        The part of share that refunds, lost disputes and voids took back.

      • currencies.payments.net_shareintegerRequired

        share − refunded_share: the account's part once refunds took theirs back.

    • currencies.settlementsobjectRequired

      The settlements you recorded as paid to the account.

      Show child attributes
      • currencies.settlements.countintegerRequired

        Number of settlements recorded, canceled ones included.

      • currencies.settlements.totalintegerRequired

        Amount of every settlement recorded, canceled ones included. It lowers what you owe.

      • currencies.settlements.cancelledintegerRequired

        Amount that canceled settlements gave back to what you owe.

    • currencies.adjustmentsobjectRequired

      Other changes to what you owe the account, such as application fee refunds.

      Show child attributes
      • currencies.adjustments.countintegerRequired

        Number of adjustments.

      • currencies.adjustments.totalintegerRequired

        Their signed sum: a positive total raises what you owe, a negative one lowers it.

    • currencies.carried_overobjectRequired

      What the account held when it stopped holding money, carried over as owed to it.

      Show child attributes
      • currencies.carried_over.countintegerRequired

        Number of carry-over entries.

      • currencies.carried_over.totalintegerRequired

        Their signed sum: a positive total raises what you owe, a negative one lowers it.

    • currencies.owedintegerRequired

      What you owe the account in this currency, read from the ledger. A negative amount means the account owes you.

    • currencies.share_gapintegerRequired

      payments.share less (payments.gross − payments.application_fees). Not 0 when a transfer_data.amount set the share instead of the application fee.

    • currencies.owed_gapintegerRequired

      owed less what its parts add up to. Not 0 only when the ledger and its parts disagree.

    • currencies.owed_readyintegerRequired

      The part of owed you can pay now: owed − owed_settling.

    • currencies.owed_settlingintegerRequired

      The part of owed from charges still inside their settlement period. 0 when nothing is settling or nothing is owed.

    • currencies.owed_available_ontimestampRequiredNullable

      When the earliest part of owed_settling becomes due, in Unix seconds; null when nothing is settling.