List direct costs
codat_list_direct_costsList a company's direct costs (point-of-sale purchases: card/cash spend, refunds) for a data connection. NOTE: this endpoint is CONNECTION-scoped. Codat API: GET /companies/{companyId}/connections/{connectionId}/data/directCosts. Returns the paged envelope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1). | |
| query | No | Codat query filter string, e.g. "status=Paid" or "modifiedDate>2026-01-01". See docs.codat.io/using-the-api/querying. | |
| orderBy | No | Field to order results by, e.g. "-modifiedDate" (leading "-" for descending). | |
| pageSize | No | Records per page (1-2000, default 100). | |
| companyId | Yes | The Codat companyId (UUID). | |
| connectionId | Yes | The Codat connectionId (data connection UUID) within the company. |