# List Collections Get all your collections. Endpoint: POST /api/v1/collection/search Version: 1.0 ## Request fields (application/json): - `condition` (object) Condition to filter results - `condition.field` (string) Field name to apply the condition to Example: "name" - `condition.value` (object) Value to compare against the field Example: "Example Value" - `condition.type` (string) Relational operator for the condition Enum: "BETWEEN", "EQ", "LT", "LTE", "GT", "GTE", "NE", "LIKE", "START", "FINISH", "IN", "NIN", "NLIKE", "LENGTH" - `condition.endValue` (object) End value for range conditions Example: 100 - `condition.innerConditions` (array) Nested conditions for complex queries - `condition.conditionType` (string) Type of condition for combining multiple conditions Enum: "AND", "OR" - `condition.empty` (boolean) Indicates if the condition is empty - `condition.compareFields` (boolean) Indicates if comparing between fields - `sortCriteria` (array) List of sorting criteria to apply - `sortCriteria.sortField` (string) Field name to sort by Example: "name" - `sortCriteria.sortDirection` (string) Sort direction (ascending or descending) Enum: "ASC", "DESC" - `pageNumber` (integer, required) Page number to retrieve (0-based) - `pageSize` (integer, required) Number of items per page Example: 20 ## Response 200 fields (application/json): - `data` (array, required) List of data items for the current page - `data.id` (integer, required) Unique identifier of the entity Example: 1 - `data.orderNumber` (integer) Order number of the collection line. Example: 1 - `data.collectionDate` (string) Date of the collection. Example: "2024-03-15" - `data.country` (string) Country associated with the collection. Example: "Spain" - `data.accountCode` (string) Account code associated with the collection. Example: 572000003 - `data.observations` (string) Observations or notes for the collection. Example: "First payment received via bank transfer." - `data.amount` (number) Amount collected. Example: 1000.5 - `data.accounted` (boolean) Indicates if the amount is already accounted. Example: true - `data.bankName` (string) Name of the bank where the collection was processed. Example: "Bank of Spain" - `data.customerCode` (string) Unique customer code. Example: "CUST001" - `data.customerBusinessName` (string) Business name of the customer. Example: "Clavei S.A." - `data.customerName` (string) Contact name of the customer. Example: "Ana Martínez" - `page` (integer, required) Current page number (0-based) - `total` (integer, required) Total number of items across all pages Example: 150 - `pages` (integer, required) Last page number (0-based) Example: 14 - `size` (integer, required) Number of items per page Example: 10