List cash-flow items
const url = 'https://api.sancho-wms.pl/v1/cashFlowItems.list';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"integrationId":1,"cursor":"example","filters":{"id":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}},"cashAccountId":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}},"direction":{"$eq":"incoming","$ne":"incoming","$in":["incoming"],"$nin":["incoming"],"$meta":{"preset":"example","scoped":true}},"settlementStatus":{"$eq":"notApplicable","$ne":"notApplicable","$in":["notApplicable"],"$nin":["notApplicable"],"$meta":{"preset":"example","scoped":true}},"transferState":{"$eq":"draft","$ne":"draft","$in":["draft"],"$nin":["draft"],"$meta":{"preset":"example","scoped":true}},"counterPartyId":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}},"dueDate":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}},"documentDate":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}},"modifiedAt":{"$gt":"2026-04-15T12:00:00Z","$gte":"2026-04-15T12:00:00Z","$lt":"2026-04-15T12:00:00Z","$lte":"2026-04-15T12:00:00Z","$meta":{"preset":"example","scoped":true}},"invoiceId":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}},"accountingDocumentId":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}},"journalEntryId":{"$eq":"example","$ne":"example","$gt":"example","$gte":"example","$lt":"example","$lte":"example","$in":["example"],"$nin":["example"],"$exists":true,"$regex":"example","$meta":{"preset":"example","scoped":true}}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sancho-wms.pl/v1/cashFlowItems.list \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "integrationId": 1, "cursor": "example", "filters": { "id": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } }, "cashAccountId": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } }, "direction": { "$eq": "incoming", "$ne": "incoming", "$in": [ "incoming" ], "$nin": [ "incoming" ], "$meta": { "preset": "example", "scoped": true } }, "settlementStatus": { "$eq": "notApplicable", "$ne": "notApplicable", "$in": [ "notApplicable" ], "$nin": [ "notApplicable" ], "$meta": { "preset": "example", "scoped": true } }, "transferState": { "$eq": "draft", "$ne": "draft", "$in": [ "draft" ], "$nin": [ "draft" ], "$meta": { "preset": "example", "scoped": true } }, "counterPartyId": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } }, "dueDate": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } }, "documentDate": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } }, "modifiedAt": { "$gt": "2026-04-15T12:00:00Z", "$gte": "2026-04-15T12:00:00Z", "$lt": "2026-04-15T12:00:00Z", "$lte": "2026-04-15T12:00:00Z", "$meta": { "preset": "example", "scoped": true } }, "invoiceId": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } }, "accountingDocumentId": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } }, "journalEntryId": { "$eq": "example", "$ne": "example", "$gt": "example", "$gte": "example", "$lt": "example", "$lte": "example", "$in": [ "example" ], "$nin": [ "example" ], "$exists": true, "$regex": "example", "$meta": { "preset": "example", "scoped": true } } } }'Lists the cash-flow items the ERP expects: what each invoice, accounting document or journal entry is due to pay or receive, and how much of it is settled. remainingAmount is in the cash-flow item’s own currency. By due date, then id. invoiceId, accountingDocumentId and journalEntryId find a document’s cash-flow items; an accounting document carried over from the ERP’s trade module has none of its own, so accountingDocumentId matches those of the trade document it was carried over from. Send the response’s nextCursor back as cursor, with the same integrationId and filters, until no nextCursor comes back; an integration that failed to answer is named in failedIntegrationIds.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
object
object
object
object
object
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
Each bound is a UTC instant ending in Z.
object
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
object
$regex takes literal text, optionally anchored with a leading ^ and a trailing $; escape any other regex character with a backslash. Matching ignores case.
object
Responses
Section titled “Responses”Successful response
object
object
object
Example
{ "items": [ { "direction": "incoming", "settlementStatus": "notApplicable", "party": { "kind": "counterParty" }, "sourceDocument": { "type": "invoice" }, "integrationType": "comarch-optima", "transferState": "draft" } ]}Bad request
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "BAD_REQUEST", "message": "Bad request", "issues": []}Unauthorized
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "UNAUTHORIZED", "message": "Unauthorized", "issues": []}Payment required
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "PAYMENT_REQUIRED", "message": "Payment required", "issues": []}Forbidden
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "FORBIDDEN", "message": "Forbidden", "issues": []}Not found
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "NOT_FOUND", "message": "Not found", "issues": []}Unprocessable content
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "UNPROCESSABLE_CONTENT", "message": "Unprocessable content", "issues": []}Too many requests
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "TOO_MANY_REQUESTS", "message": "Too many requests", "issues": []}Internal server error
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "INTERNAL_SERVER_ERROR", "message": "Internal server error", "issues": []}Service unavailable
The error information
object
The error message
The error code
An array of issues that were responsible for the error
object
Example
{ "code": "SERVICE_UNAVAILABLE", "message": "Service unavailable", "issues": []}