Allowed Scopes: experimental:payable-search:read
Searches payables using filters with cursor-based pagination. With an organisation-level token, each search covers the company in X-Company-Id only, and results carry no company ID: send one search per company. Payables search data is cached for up to 24 hours, or up to 5 minutes when the filters include documentaryEvidenceStatus. Changes made through the API are returned by subsequent reads; changes made in Spendesk can take up to the same duration to appear.
Pass include: ["externalIds"] to embed the IDs each payable has in external systems (ERPs), such as the ERP document number, and externalIds (optionally with provider) to return only the payables carrying one of those IDs. Both are opt-in because they cost an additional lookup; external IDs are cached for up to 24 hours. Changes made through the API are returned by subsequent reads; changes made in Spendesk can take up to 24 hours to appear.
Accounting fields, such as the item lines' taxAccountId, vatRate and vatAmount, return the values saved on the payable. Values that Spendesk only suggests in Bookkeep > Prepare (from default accounts or automation rules) are not returned until an accountant prepares the payable. So a payable in state toPrepare can return vatAmount 0 while Spendesk displays a VAT amount for it. For final accounting data, filter on bookkeepingStatus toExport or exported.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||