# List Recurring Billing Templates Get all your recurring billing templates. Endpoint: POST /api/v1/template-sale-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 Example: "FAC" - `data.documentDate` (string) Document date Example: "2024-01-15" - `data.customerCode` (string) Customer code Example: "CUST001" - `data.customerName` (string) Customer name Example: "John Doe" - `data.customerEmail` (string) Customer email address Example: "john.doe@example.com" - `data.commercialName` (string) Commercial name Example: "Doe Enterprises" - `data.grossAmountTotal` (number) Total gross amount Example: 1000 - `data.grossAmountTotalCompanyCurrency` (number) Total gross amount in company currency Example: 1000 - `data.discountPpAmountTotal` (number) Total discount amount (PP) Example: 50 - `data.discountPpAmountTotalCompanyCurrency` (number) Total discount amount (PP) in company currency Example: 50 - `data.discountAmountTotal` (number) Total discount amount Example: 100 - `data.discountAmountTotalCompanyCurrency` (number) Total discount amount in company currency Example: 100 - `data.netAmountTotal` (number) Total net amount Example: 900 - `data.netAmountTotalCompanyCurrency` (number) Total net amount in company currency Example: 900 - `data.vatAmountTotal` (number) Total VAT amount Example: 189 - `data.vatAmountTotalCompanyCurrency` (number) Total VAT amount in company currency Example: 189 - `data.disbursementAmountTotal` (number) Total disbursement amount Example: 25.5 - `data.total` (number) Total amount Example: 1114.5 - `data.totalCompanyCurrency` (number) Total amount in company currency Example: 1114.5 - `data.customerCountry` (string) Customer country Example: "Spain" - `data.customerStateDescription` (string) Customer state description Example: "Madrid" - `data.valueDate` (string) Value date Example: "2024-01-20" - `data.paymentMethodDescription` (string) Payment method description Example: "Bank Transfer" - `data.currencyNomenclature` (string) Currency nomenclature Example: "EUR" - `data.currencySignificantDecimalsDocuments` (integer) Currency significant decimals for documents Example: 2 - `data.currencyIntermediateDecimalsDocuments` (integer) Currency intermediate decimals for documents Example: 2 - `data.currencyDecimalsCalculatePrices` (integer) Currency decimals for calculating prices Example: 4 - `data.currencyDecimalsCalculateCosts` (integer) Currency decimals for calculating costs Example: 4 - `data.documentType` (string) Document type Example: "INVOICE" - `data.iban` (string) IBAN for payments Example: "ES9121000418450200051332" - `data.customerAddressId` (integer) Customer address identifier Example: 1 - `data.representatives` (string) Representatives information Example: "John Smith, Jane Doe" - `data.quantityTotal` (number) Total quantity Example: 10 - `data.status` (string) Template sale invoice status Enum: "PENDING", "CURRENT" - `data.collectedAmount` (number) Collected amount Example: 1114.5 - `data.collectedAmountCompanyCurrency` (number) Collected amount in company currency Example: 1114.5 - `data.salesAccountCode` (string) Sales account code Example: 700 - `data.reference` (string) Reference number Example: "TEMP-2024-001" - `data.validityDate` (string) Validity date Example: "2024-12-31" - `data.tags` (array) Tags associated with the template Example: ["recurring","monthly"] - `data.active` (boolean) Flag indicating if the template is active Example: true - `data.automaticGeneration` (boolean) Flag indicating if generation is automatic Example: true - `data.automaticSending` (boolean) Flag indicating if sending is automatic - `data.startDate` (string) Start date for the template Example: "2024-01-01" - `data.endDate` (string) End date for the template Example: "2024-12-31" - `data.nextInvoice` (string) Next invoice date Example: "2024-02-01" - `data.periodicInvoice` (string) Periodic invoice type Enum: "DAILY", "WEEKLY", "BIWEEKLY", "MONTHLY", "BIMONTHLY", "QUARTERLY", "SEMIANNUAL", "ANNUAL" - `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