# List Invoices Get all your purchase invoices. Endpoint: POST /api/v1/purchase-invoice/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.billingSeriesCode` (string) Billing series code associated with the invoice. Example: "A" - `data.number` (integer) Invoice number. Example: 10023 - `data.documentDate` (string) Document date of the invoice. Example: "2024-04-20" - `data.valueDate` (string) Value date of the invoice. Example: "2024-04-22" - `data.commercialName` (string) Commercial name of the customer. Example: "Company ABC S.A." - `data.grossAmountTotal` (number) Total gross amount of the invoice. Example: 800 - `data.grossAmountTotalCompanyCurrency` (number) Total gross amount in company currency. Example: 820 - `data.discount1AmountTotal` (number) Total amount of first discount applied. Example: 10 - `data.discount1AmountTotalCompanyCurrency` (number) Total amount of first discount in company currency. Example: 10.25 - `data.discount2AmountTotal` (number) Total amount of second discount applied. Example: 5 - `data.discount2AmountTotalCompanyCurrency` (number) Total amount of second discount in company currency. Example: 5.1 - `data.discountPpAmountTotal` (number) Total amount of prompt payment discount. Example: 3 - `data.discountPpAmountTotalCompanyCurrency` (number) Total amount of prompt payment discount in company currency. Example: 3.06 - `data.discountAmountTotal` (number) Total amount of all discounts. Example: 18 - `data.discountAmountTotalCompanyCurrency` (number) Total amount of all discounts in company currency. Example: 18.41 - `data.netAmountTotal` (number) Total net amount (after discounts, before VAT) of the invoice. Example: 700 - `data.netAmountTotalCompanyCurrency` (number) Total net amount in company currency. Example: 715 - `data.vatAmountTotal` (number) Total VAT amount of the invoice. Example: 147 - `data.vatAmountTotalCompanyCurrency` (number) Total VAT amount in company currency. Example: 150 - `data.total` (number) Total amount of the invoice (final amount). Example: 847 - `data.totalCompanyCurrency` (number) Total amount of the invoice in company currency. Example: 865 - `data.paymentMethodDescription` (string) Description of payment method. Example: "Bank transfer" - `data.currencyNomenclature` (string) Nomenclature of the currency. Example: "EUR" - `data.documentType` (string) Type of the document. Example: "INVOICE" - `data.quantityTotal` (number) Total quantity associated with the invoice. Example: 25 - `data.tags` (array) Tags associated with the invoice. Example: ["urgent","priority"] - `data.status` (string) Invoice status. Enum: "PENDING", "PAID", "PARTIALLY_PAID", "DRAFT" - `data.collectedAmount` (number) Total amount collected for the invoice. Example: 400 - `data.collectedAmountCompanyCurrency` (number) Total amount collected in company currency. Example: 420 - `data.currencySignificantDecimalsDocuments` (integer) Number of significant decimals for documents in the invoice currency. Example: 2 - `data.currencyIntermediateDecimalsDocuments` (integer) Number of intermediate decimals for documents in the invoice currency. Example: 2 - `data.currencyDecimalsCalculatePrices` (integer) Number of decimals for calculating prices. Example: 4 - `data.currencyDecimalsCalculateCosts` (integer) Number of decimals for calculating costs. Example: 4 - `data.reference` (string) Reference number or code for the invoice. Example: "INV-2024-1001" - `data.disbursementAmountTotal` (number) Total disbursement amount of the invoice. Example: 50 - `data.disbursementAmountTotalCompanyCurrency` (number) Total disbursement amount of the invoice in company currency. Example: 50 - `data.expirationDate` (string) Expiration date of the invoice. Example: "2024-05-29" - `data.withholdingAmountTotal` (number) Total withholding amount applied to the invoice. Example: 30 - `data.manual` (boolean) Indicates if the invoice was generated manually. - `data.amountReconciliation` (number) - `data.amountReconciliationCompanyCurrency` (number) - `data.supplierId` (string) Unique identifier of the supplier Example: 1001 - `data.supplierCode` (string) Supplier code Example: "SUPP001" - `data.supplierName` (string) Name of the supplier Example: "ABC Suppliers Ltd." - `data.purchasingAccountCode` (string) Purchasing account code Example: 6000001 - `data.billCode` (string) Bill code reference Example: "BILL-2024-001" - `data.receivedDate` (string) Date when the purchase invoice was received Example: "2024-08-07" - `data.irpfType` (string) Type of IRPF for the customer. See ApiIRPFTypeEnum enum for values. Enum: "LEASES", "PROFESIONAL_ACTIVITIES", "AGRO" - `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