> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Count payables for export

> Count the payables and the file rows that `POST /payables/export` would produce for the given filters.

The count accepts the same filters as `GET /payables` and `POST /payables/export`, and counts rows the way the
export does for its row limit. It describes the payables at the time of the call. `row_count` above `row_limit`
means the export would be rejected; the count itself still returns `200`. Filters too large for the export to
register are rejected with the same `400` as the export.



## OpenAPI

````yaml /.tooling/schemas/rest/tags/product-finops.json get /payables/export/count
openapi: 3.1.0
info:
  title: Tesouro Partner API
  version: '2025-06-23'
  description: The Tesouro REST API, for Tesouro partners to integrate with our solution.
  termsOfService: https://tesouro.com/terms
  contact:
    name: Tesouro team
    url: https://tesouro.com/about/
    email: developers@tesouro.com
servers:
  - url: https://api.sandbox.tesouro.com
    description: Sandbox
security: []
tags:
  - name: Accounting connections
  - name: Accounting data pull
  - name: Accounting synchronized records
  - name: Accounting tax rates
  - name: Analytics
  - name: Approval policies
  - name: Approval requests
  - name: Bank details
  - name: Comments
  - name: Cost centers
  - name: Counterpart addresses
  - name: Counterpart bank accounts
  - name: Counterpart contacts
  - name: Counterpart VAT IDs
  - name: Counterparts
  - name: Credit notes
  - name: Custom tax rates
  - name: Data exports
  - name: Delivery notes
  - name: Departments
  - name: Disclosures
  - name: Documents
  - name: Events
  - name: Expenses
  - name: Files
  - name: Ledger accounts
  - name: Locations
  - name: Mail templates
  - name: Mailbox domains
  - name: Mailboxes
  - name: Measure units
  - name: OCR
  - name: OIDC applications
  - name: Organizations
  - name: Overdue reminders
  - name: Payable duplicates
  - name: Payable line items
  - name: Payables
  - name: Payment intents
  - name: Payment links
  - name: Payment methods
  - name: Payment records
  - name: Payment reminders
  - name: Payment terms
  - name: PDF templates
  - name: Products
  - name: Projects
  - name: Purchase orders
  - name: Receipts
  - name: Receivables
  - name: Recurrences
  - name: Roles
  - name: Tags
  - name: Text templates
  - name: Transactions
  - name: Users
  - name: Webhook deliveries
  - name: Webhook subscriptions
paths:
  /payables/export/count:
    servers:
      - url: https://api.sandbox.tesouro.com/finops/v1
        description: Sandbox
    get:
      tags:
        - Payables
      summary: Count payables for export
      description: >-
        Count the payables and the file rows that `POST /payables/export` would
        produce for the given filters.


        The count accepts the same filters as `GET /payables` and `POST
        /payables/export`, and counts rows the way the

        export does for its row limit. It describes the payables at the time of
        the call. `row_count` above `row_limit`

        means the export would be rejected; the count itself still returns
        `200`. Filters too large for the export to

        register are rejected with the same `400` as the export.
      operationId: get_payables_export_count
      parameters:
        - required: true
          schema:
            type: string
            format: date
          example: '2025-06-23'
          name: x-finops-version
          in: header
        - name: approval_queue
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/PayableApprovalQueueEnum'
              - type: 'null'
          description: >-
            Split payables in `approve_in_progress` by whether an approval
            request is waiting on the current user: `mine` keeps those waiting
            on the user, `others` keeps the rest, including payables the user
            could only force approve. Payables in any other status are returned
            as usual. Not stored in the pagination token, so send it again with
            every page.
        - name: created_at__gt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
          description: >-
            Return only payables created after the specified date and time. The
            value must be in the ISO 8601 format
            YYYY-MM-DDThh:mm[:ss[.ffffff]][Z|±hh:mm].
        - name: created_at__lt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
          description: Return only payables created before the specified date and time.
        - name: created_at__gte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
          description: >-
            Return only payables created on or after the specified date and
            time.
        - name: created_at__lte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
          description: >-
            Return only payables created before or on the specified date and
            time.
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/PayableStateEnum'
              - type: 'null'
          description: >-
            Return only payables that have the specified
            [status](https://docs.tesouro.com/finops/guides/accounts-payable/payables).


            To query multiple statuses at once, use the `status__in` parameter
            instead.
        - name: status__in
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/PayableStateEnum'
              - type: 'null'
          description: >-
            Return only payables that have the specified
            [statuses](https://docs.tesouro.com/finops/guides/accounts-payable/payables).


            To specify multiple statuses, repeat this parameter for each value:
            `status__in=draft&status__in=new`
        - name: id__in
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                  format: uuid
                type: array
              - type: 'null'
          description: >-
            Return only payables with specified IDs. Valid but nonexistent IDs
            do not raise errors but produce no results.


            To specify multiple IDs, repeat this parameter for each value:
            `id__in=<id1>&id__in=<id2>`
        - name: total_amount
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables with the exact specified total amount. The
            amount must be specified in the minor units of currency. For
            example, $12.5 is represented as 1250.
        - name: total_amount__gt
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose total amount (in minor units) exceeds the
            specified value.
        - name: total_amount__lt
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose total amount (in minor units) is less
            than the specified value.
        - name: total_amount__gte
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose total amount (in minor units) is greater
            than or equal to the specified value.
        - name: total_amount__lte
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose total amount (in minor units) is less
            than or equal to the specified value.
        - name: amount
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: Return only payables with the specified amount.
        - name: amount__gt
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose amount (in minor units) exceeds the
            specified value.
        - name: amount__lt
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose amount (in minor units) is less than the
            specified value.
        - name: amount__gte
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose amount (in minor units) is greater than
            or equal to the specified value.
        - name: amount__lte
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: >-
            Return only payables whose amount (in minor units) is less than or
            equal to the specified value.
        - name: currency
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/CurrencyEnum'
              - type: 'null'
          description: Return only payables that use the specified currency.
        - name: counterpart_name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: >-
            Return only payables received from counterparts with the specified
            name (exact match, case-sensitive).


            For counterparts of `type = individual`, the full name is formatted
            as `first_name last_name`.
        - name: counterpart_name__contains
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: >-
            Return only payables received from counterparts whose name contains
            the specified string (case-sensitive).
        - name: counterpart_name__icontains
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: >-
            Return only payables received from counterparts whose name contains
            the specified string (case-insensitive).
        - name: search_text
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: >-
            Apply the `icontains` condition to search for the specified text in
            the `document_id` and `counterpart_name` fields in the payables.
        - name: due_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: Return payables that are due on the specified date (YYYY-MM-DD)
        - name: due_date__gt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are due after the specified date (exclusive,
            YYYY-MM-DD).
        - name: due_date__lt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are due before the specified date (exclusive,
            YYYY-MM-DD).
        - name: due_date__gte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are due on or after the specified date
            (YYYY-MM-DD).
        - name: due_date__lte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are due before or on the specified date
            (YYYY-MM-DD).
        - name: issued_at
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: Return payables that are issued at the specified date (YYYY-MM-DD)
        - name: issued_at__gt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are issued after the specified date (exclusive,
            YYYY-MM-DD).
        - name: issued_at__lt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are issued before the specified date
            (exclusive, YYYY-MM-DD).
        - name: issued_at__gte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are issued on or after the specified date
            (YYYY-MM-DD).
        - name: issued_at__lte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables that are issued before or on the specified date
            (YYYY-MM-DD).
        - name: document_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: >-
            Return a payable with the exact specified document number
            (case-sensitive).


            The `document_id` is the user-facing document number such as
            INV-00042, not to be confused with the payable ID (`id`).
        - name: document_id__contains
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: >-
            Return only payables whose document number (`document_id`) contains
            the specified string (case-sensitive).
        - name: document_id__icontains
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: >-
            Return only payables whose document number (`document_id`) contains
            the specified string (case-insensitive).
        - name: was_created_by_user_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
          description: >-
            Return only payables created by the entity user with the specified
            ID.
        - name: counterpart_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
          description: >-
            Return only payables received from the counterpart with the
            specified ID.


            Counterparts that have been deleted but have associated payables
            will still return results here because the payables contain a frozen
            copy of the counterpart data.


            If the specified counterpart ID does not exist and never existed, no
            results are returned.
        - name: counterpart_id__in
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                  format: uuid
                type: array
              - type: 'null'
          description: >-
            Return only payables received from the counterparts with the
            specified IDs. Valid but nonexistent IDs do not raise errors but
            produce no results.


            To specify multiple IDs, repeat this parameter for each value:
            `counterpart_id__in=<id1>&counterpart_id__in=<id2>`
        - name: source_of_payable_data
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/SourceOfPayableDataEnum'
              - type: 'null'
          description: Return only payables coming from the specified source.
        - name: ocr_status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/OcrStatusEnum'
              - type: 'null'
          description: Return only payables with specific OCR statuses.
        - name: line_item_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
          description: >-
            Search for a payable by the identifier of the line item associated
            with it.
        - name: purchase_order_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
          description: >-
            Search for a payable by the identifier of the purchase order
            associated with it.
        - name: project_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
          description: >-
            Return only payables assigned to the project with the specified ID.


            Valid but nonexistent project IDs do not raise errors but return no
            results.
        - name: project_id__in
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                  format: uuid
                type: array
              - type: 'null'
          description: >-
            Return only payables whose `project_id` include at least one of the
            project_id with the specified IDs. Valid but nonexistent project IDs
            do not raise errors but produce no results.
        - name: tag_ids
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                  format: uuid
                type: array
              - type: 'null'
          description: >-
            Return only payables whose `tags` include at least one of the tags
            with the specified IDs. Valid but nonexistent tag IDs do not raise
            errors but produce no results.
        - name: tag_ids__not_in
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                  format: uuid
                type: array
              - type: 'null'
          description: >-
            Return only payables whose `tags` do not include any of the tags
            with the specified IDs. Valid but nonexistent tag IDs do not raise
            errors but produce the results.
        - name: has_tags
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
          description: >-
            Filter objects based on whether they have tags. If true, only
            objects with tags are returned. If false, only objects without tags
            are returned.
        - name: origin
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/PayableOriginEnum'
              - type: 'null'
          description: Return only payables from a given origin ['upload', 'email']
        - name: has_file
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
          description: Return only payables with or without attachments (files)
        - name: scheduled_payment_date
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return payables with a live scheduled payment (see
            `scheduled_payment_date` on the response) on the specified date
            (YYYY-MM-DD).
        - name: scheduled_payment_date__gt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return only payables whose scheduled payment date is after the
            specified date (exclusive, YYYY-MM-DD).
        - name: scheduled_payment_date__lt
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return only payables whose scheduled payment date is before the
            specified date (exclusive, YYYY-MM-DD).
        - name: scheduled_payment_date__gte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return only payables whose scheduled payment date is on or after the
            specified date (YYYY-MM-DD).
        - name: scheduled_payment_date__lte
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date
              - type: 'null'
          description: >-
            Return only payables whose scheduled payment date is before or on
            the specified date (YYYY-MM-DD).
        - name: has_scheduled_payment
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
          description: >-
            Filter payables based on whether they have a live scheduled payment.
            If true, only payables with a non-null `scheduled_payment_date` are
            returned. If false, only payables with no live scheduled payment are
            returned.
        - name: has_failed_payment
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
          description: >-
            Filter payables based on whether their last scheduled payment
            failed. If true, only payables whose most recent scheduled payment
            failed and that have no live scheduled payment are returned, so a
            payable stops matching once its payment is rescheduled. If false,
            only the other payables are returned.
        - name: assigned_to_me
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: >-
            Set to `true` to keep only the payables waiting on the current user:
            every `draft` payable, `new` and `rejected` payables the user
            created, `approve_in_progress` payables with an approval request
            waiting on the user, and the `waiting_to_be_paid` and
            `partially_paid` payables the user is allowed to pay. Other filters
            apply on top. The request must be made on behalf of an entity user.
        - name: duplicate_match_status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/PayableDuplicateStatusEnum'
              - type: 'null'
          description: >-
            Return only payables that have at least one duplicate match with
            this review status. Unless
            duplicate_matched_payable_status(__in/__not_in) is also given, this
            excludes matches whose other payable is cancelled - see
            duplicate_matched_payable_status__in.
        - name: duplicate_match_status__in
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/PayableDuplicateStatusEnum'
              - type: 'null'
          description: >-
            Return only payables that have at least one duplicate match with any
            of these review statuses.
        - name: duplicate_match_status__not_in
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/PayableDuplicateStatusEnum'
              - type: 'null'
          description: >-
            Return only payables that have at least one duplicate match with a
            review status other than these. For example,
            `duplicate_match_status__not_in=dismissed` returns payables with an
            unreviewed or confirmed duplicate.
        - name: duplicate_matched_payable_status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/PayableStateEnum'
              - type: 'null'
          description: >-
            Return only payables that have a duplicate match whose other payable
            is in this status.
        - name: duplicate_matched_payable_status__in
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/PayableStateEnum'
              - type: 'null'
          description: >-
            Return only payables that have a duplicate match whose other payable
            is in any of these statuses. Pass this explicitly (e.g. `=canceled`)
            to see a match a bare duplicate_match_status filter would otherwise
            hide.
        - name: duplicate_matched_payable_status__not_in
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/PayableStateEnum'
              - type: 'null'
          description: >-
            Return only payables that have a duplicate match whose other payable
            is NOT in any of these statuses. Combined duplicate_* filters apply
            to the same match.
        - name: x-organization-id
          in: header
          required: true
          schema:
            type: string
            format: uuid
            examples:
              - 9d2b4c8f-2087-4738-ba91-7359683c49a4
          description: The ID of the entity that owns the requested resource.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayablesExportCountResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
        '405':
          description: Method Not Allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
        '409':
          description: >-
            Possible responses: `Action for {object_type} at permissions not
            found: {action}`, `Object type at permissions not found:
            {object_type}`, `Action {action} for {object_type} not allowed`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
        '503':
          description: The export could not be started. Try again later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchemaResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    PayableApprovalQueueEnum:
      type: string
      enum:
        - mine
        - others
    PayableStateEnum:
      type: string
      enum:
        - draft
        - new
        - approve_in_progress
        - waiting_to_be_paid
        - partially_paid
        - paid
        - canceled
        - rejected
    CurrencyEnum:
      type: string
      enum:
        - AED
        - AFN
        - ALL
        - AMD
        - ANG
        - AOA
        - ARS
        - AUD
        - AWG
        - AZN
        - BAM
        - BBD
        - BDT
        - BGN
        - BHD
        - BIF
        - BMD
        - BND
        - BOB
        - BRL
        - BSD
        - BTN
        - BWP
        - BYN
        - BZD
        - CAD
        - CDF
        - CHF
        - CLP
        - CNY
        - COP
        - CRC
        - CVE
        - CZK
        - DJF
        - DKK
        - DOP
        - DZD
        - EGP
        - ETB
        - EUR
        - FJD
        - FKP
        - GBP
        - GEL
        - GHS
        - GIP
        - GMD
        - GNF
        - GTQ
        - GYD
        - HKD
        - HNL
        - HTG
        - HUF
        - IDR
        - ILS
        - INR
        - IQD
        - ISK
        - JMD
        - JOD
        - JPY
        - KES
        - KGS
        - KHR
        - KMF
        - KRW
        - KWD
        - KYD
        - KZT
        - LAK
        - LBP
        - LKR
        - LRD
        - LSL
        - LYD
        - MAD
        - MDL
        - MGA
        - MKD
        - MMK
        - MNT
        - MOP
        - MUR
        - MVR
        - MWK
        - MXN
        - MYR
        - MZN
        - NAD
        - NGN
        - NIO
        - NOK
        - NPR
        - NZD
        - OMR
        - PAB
        - PEN
        - PGK
        - PHP
        - PKR
        - PLN
        - PYG
        - QAR
        - RON
        - RSD
        - RUB
        - RWF
        - SAR
        - SBD
        - SCR
        - SEK
        - SGD
        - SHP
        - SLE
        - SOS
        - SRD
        - SSP
        - SVC
        - SZL
        - THB
        - TJS
        - TMT
        - TND
        - TOP
        - TRY
        - TTD
        - TWD
        - TZS
        - UAH
        - UGX
        - USD
        - UYU
        - UZS
        - VND
        - VUV
        - WST
        - XAF
        - XCD
        - XOF
        - XPF
        - YER
        - ZAR
        - ZMW
    SourceOfPayableDataEnum:
      type: string
      enum:
        - ocr
        - user_specified
    OcrStatusEnum:
      type: string
      enum:
        - processing
        - error
        - success
        - canceled
    PayableOriginEnum:
      type: string
      enum:
        - upload
        - email
    PayableDuplicateStatusEnum:
      type: string
      enum:
        - suspected
        - dismissed
        - confirmed
    PayablesExportCountResponse:
      properties:
        record_count:
          type: integer
          description: The number of payables the export file would cover.
        row_count:
          type: integer
          description: >-
            The number of data rows the export file would have: one per line
            item, and one for a payable without line items.
        row_limit:
          type: integer
          description: >-
            The largest `row_count` an export accepts. `POST /payables/export`
            rejects a request whose `row_count` is above it.
      additionalProperties: false
      type: object
      required:
        - record_count
        - row_count
        - row_limit
    ErrorSchemaResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorSchema'
      type: object
      required:
        - error
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    ErrorSchema:
      properties:
        message:
          type: string
      type: object
      required:
        - message
    ValidationError:
      properties:
        ctx:
          type: object
        input: {}
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.