Skip to content

GetAccountBalanceRequest

Source code in docs_src/capo_payments/types/get_account_balance_request.py
class GetAccountBalanceRequest(TypedDict, closed=True):
    balance_type: "capo_payments.types.balance_type.BalanceType"
    """<p>The balance to retrieve. You can specify only one balance type in a single request. Each balance adds up the <code>outstanding</code> balance of the records that have the status <code>OUTSTANDING</code>. A record that is <code>PROCESSING</code>, <code>SETTLED</code>, or <code>CANCELED</code> isn't included, even when part of its amount is outstanding. The following values are valid:</p> <ul> <li> <p> <code>INVOICES_DUE</code> – The outstanding balance of your <code>OUTSTANDING</code> invoices that aren't past their due date, where <code>dueStatus</code> is <code>DUE</code>.</p> </li> <li> <p> <code>INVOICES_PAST_DUE</code> – The outstanding balance of your <code>OUTSTANDING</code> invoices that are past their due date, where <code>dueStatus</code> is <code>PAST_DUE</code>.</p> </li> <li> <p> <code>OUTSTANDING_CREDIT_MEMOS</code> – The outstanding balance of your <code>OUTSTANDING</code> credit memos: the credit that isn't yet applied to an invoice.</p> </li> </ul>"""
    next_token: NotRequired["capo_payments.types.pagination_token.PaginationToken"]
    """<p>The pagination token from the <code>nextToken</code> of the previous response. Omit it to get the first page. Tokens expire. If the token is malformed or expired, or doesn't match the original request, the request fails with <code>ValidationException</code> and the reason <code>INVALID_PAGINATION_TOKEN</code>. In that case, start again from the first page.</p>"""
    max_results: NotRequired["capo_payments.types.max_results.MaxResults"]
    """<p>The maximum number of results to return in one page. The default is 100. A page can contain fewer results even when more remain. Use <code>nextToken</code> to find out whether more results are available.</p>"""

balance_type instance-attribute

balance_type: BalanceType

The balance to retrieve. You can specify only one balance type in a single request. Each balance adds up the outstanding balance of the records that have the status OUTSTANDING. A record that is PROCESSING, SETTLED, or CANCELED isn't included, even when part of its amount is outstanding. The following values are valid:

  • INVOICES_DUE – The outstanding balance of your OUTSTANDING invoices that aren't past their due date, where dueStatus is DUE.

  • INVOICES_PAST_DUE – The outstanding balance of your OUTSTANDING invoices that are past their due date, where dueStatus is PAST_DUE.

  • OUTSTANDING_CREDIT_MEMOS – The outstanding balance of your OUTSTANDING credit memos: the credit that isn't yet applied to an invoice.

max_results instance-attribute

max_results: NotRequired[MaxResults]

The maximum number of results to return in one page. The default is 100. A page can contain fewer results even when more remain. Use nextToken to find out whether more results are available.

next_token instance-attribute

next_token: NotRequired[PaginationToken]

The pagination token from the nextToken of the previous response. Omit it to get the first page. Tokens expire. If the token is malformed or expired, or doesn't match the original request, the request fails with ValidationException and the reason INVALID_PAGINATION_TOKEN. In that case, start again from the first page.