---
title: "List payables for export"
method: GET
path: "/v1/erp/payouts/payables/index_for_export"
tags: ["Payable"]
---

# List payables for export

`GET /v1/erp/payouts/payables/index_for_export`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/erp/payouts/payables/index_for_export`
- Auth: HTTP bearer

Lean, export-oriented listing of payables. Returns only the fields the spreadsheet
export consumes, folds each payable's comments inline, and can optionally include signed
document URLs.

Set `include_document_urls=true` to embed signed `urls` for each payable's user
documents. When enabled the result set is capped at 500 rows; exceeding it returns
`422` with error code `payables/export_document_urls_limit`.

Accepts the same filter and pagination parameters as the standard payables list.

## Query parameters

- `include_document_urls` boolean

## Parameters

- `#/paths/~1v1~1erp~1payouts~1rules/get/parameters/0` (unresolved $ref)
- `#/paths/~1v1~1erp~1payouts~1rules/get/parameters/1` (unresolved $ref)
- `#/paths/~1v1~1erp~1payouts~1rules/get/parameters/2` (unresolved $ref)
- `#/paths/~1v1~1erp~1payouts~1rules/get/parameters/3` (unresolved $ref)
- `#/paths/~1v1~1erp~1payouts~1rules/get/parameters/4` (unresolved $ref)
- `#/paths/~1v1~1erp~1payouts~1reviews/get/parameters/5` (unresolved $ref)

## Response `200`

Export rows for the matching payables.

- object[]
  - `id` string, uuid
  - `company_id` string, uuid
  - `source_id` string, uuid: Id of the polymorphic source document (e.g. fiscal invoice).
  - `source_type` string: Polymorphic type of the source document.
  - `document_type` integer
  - `amount` integer
  - `currency` string
  - `payment_status` string
  - `description` string
  - `folio` integer
  - `issue_date` string, date-time
  - `due_date` string, date-time
  - `payment_date` string, date-time
  - `effective_payment_date` string, date-time
  - `display_number` string: Human-facing document number of the payable.
  - `source` object, nullable: The resolved source document (e.g. a fiscal invoice). Polymorphic — only the common identifying fields are guaranteed; other keys depend on the underlying document type.
    - `id` string, uuid
    - `folio` string: Document folio / number, when the source document carries one.
  - `business_partner` object: The associated business partner.
    - `id` string, uuid
    - `name` string
  - `counterpart_company` object: The counterpart company.
    - `id` string, uuid
    - `identifier` string
    - `name` string
  - `reviewers` object[]: Reviewers assigned to the payable.
    - `id` string, uuid
    - `user` object
      - `id` string, uuid
      - `first_name` string
      - `last_name` string
  - `credit_notes` object[]: Credit notes linked to the payable.
    - `id` string, uuid
    - `amount` integer
    - `source` object, nullable: The resolved source document (e.g. a fiscal invoice). Polymorphic — only the common identifying fields are guaranteed.
      - `id` string, uuid
      - `folio` string: Document folio / number, when the source document carries one.
  - `comments` string[]
  - `custom_column_values` object[]
  - `urls` string[]: Signed document URLs; present only when `include_document_urls=true`.

## Other responses

- `401`: Unauthorized
- `422`: Unprocessable Entity — document-URL export cap (500 rows) exceeded.

---

[API](https://skmtc.dev/cardda/apis/erp-api.md) - [All operations](https://skmtc.dev/cardda/apis/erp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cardda/apis/erp-api/revisions/0730ed26bc3c?raw)
