# Update Recurring Billing Template Update a specific recurring billing template. Endpoint: PUT /api/v1/template-sale-invoice/{id} Version: 1.0 ## Path parameters: - `id` (integer, required) ## Request fields (application/json): - `number` (integer) Unique serial number of the document header. Example: 1050 - `documentDate` (string) Date of the document in ISO format (yyyy-MM-dd). Example: "2025-08-07" - `quantityTotal` (number) Total quantity of all document lines. Example: 120.5 - `observations` (string) Free text for header observations. Example: "Deliver to warehouse B" - `lines` (array) List of document lines. For structure, see ApiBaseLineWriteDto.java - `lines.id` (integer) Unique identifier of the line. Example: 1001 - `lines.articleCombination` (integer) Identifier of the related article combination. Example: 200 - `lines.sizeRange` (integer) Identifier of the size range associated with the article. Example: 15 - `lines.assortment` (integer) Identifier of the assortment to which the article belongs. Example: 8 - `lines.lineNumber` (integer) Sequential number of the line within the document. Example: 1 - `lines.articleDescription` (string) Description of the article in the line. Example: "Cotton T-shirt - Blue" - `lines.packages` (integer) Number of packages for this line. Example: 3 - `lines.quantityPerPackage` (number) Quantity of items per package. Example: 12 - `lines.price` (number) Unit price of the article. Example: 19.99 - `lines.lineObservations` (string) Additional observations or comments about this line. Example: "Special discount applied." - `lines.details` (array) List of line detail objects. See ApiBaseLineDetailWriteDto for details. - `lines.details.id` (integer) Internal identifier for this line detail. Example: 200 - `lines.details.sizeRangeDetail` (integer) Identifier for the size range detail. Example: 15 - `lines.details.width` (integer) Width identifier. Example: 12 - `lines.details.quantityPerPackage` (number) Quantity per package for this detail. Example: 9.3 - `lines.concept` (string) - `lines.assortedPackages` (boolean) - `lines.packaging` (integer) - `lines.discount` (number) - `lines.rsp` (number) - `lines.reference` (string) - `lines.serviceDate` (string) - `lines.noAccumulateWarehouse` (boolean) - `lines.warehouse` (integer) - `lines.brand` (integer) - `lines.customCommission` (boolean) - `lines.representative1` (integer) - `lines.commissionType1` (string) Defines the types of commission calculations. Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `lines.commission1` (number) - `lines.representative2` (integer) - `lines.commissionType2` (string) Defines the types of commission calculations. Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `lines.commission2` (number) - `lines.representative3` (integer) - `lines.commissionType3` (string) Defines the types of commission calculations. Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `lines.commission3` (number) - `lines.freeDescription1` (string) - `lines.freeDescription2` (string) - `lines.freeDescription3` (string) - `lines.freeDescription4` (string) - `lines.freeDescription5` (string) - `lines.articleVatType` (string) Defines the VAT types applicable to articles. Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `lines.vatPercentage` (number) - `lines.surchargePercentage` (number) - `lines.disbursement` (boolean) - `id` (integer) - `customerVatType` (integer) - `billingSeries` (integer) - `shippingTerm` (integer) - `shippingAmount` (number) - `shippingVatType` (string) Defines the VAT types applicable to articles. Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `shippingVatPercentage` (number) - `shippingSurchargePercentage` (number) - `currency` (integer) - `change` (number) - `rateCode` (integer) - `customerAddress` (integer, required) - `status` (string) Enum: "PENDING", "CURRENT" - `validityDate` (string) - `manufacturingDate` (string) - `valueDate` (string) - `season` (integer) - `commissionType1` (string) - `commissionType2` (string) - `commissionType3` (string) - `paymentMethod` (integer) - `firstTerm` (integer) - `daysTerm` (integer) - `terms` (integer) - `proximityType` (string) Defines the proximity types. Enum: "NEARBY", "PREVIOUS", "LATER" - `iban` (string) - `discount1` (number) - `discount2` (number) - `discount3` (number) - `discount4` (number) - `discountPp` (number) - `billingCompany` (integer) - `withholding` (number) - `packages` (integer) - `grossWeight` (number) - `netWeight` (number) - `volume` (number) - `invoiceEditObservations` (string) - `tags` (array) - `active` (boolean) - `automaticGeneration` (boolean) - `automaticSending` (boolean) - `startDate` (string) - `endDate` (string) - `nextInvoice` (string) - `periodicInvoice` (string, required) Enum: "DAILY", "WEEKLY", "BIWEEKLY", "MONTHLY", "BIMONTHLY", "QUARTERLY", "SEMIANNUAL", "ANNUAL" ## Response 200 fields (application/json): - `id` (integer, required) Unique identifier of the entity Example: 1 - `number` (integer, required) Unique serial number of the document header. Example: 1001 - `documentDate` (string, required) Date of the document in ISO format (yyyy-MM-dd). Example: "2024-08-07" - `quantityTotal` (number) Total quantity for all document lines. Example: 200.5 - `observations` (string) Free text field for any observations related to the document. Example: "Customer requested urgent delivery" - `lines` (array) List of detail lines for the document. For structure see: ApiBaseLineReadDto.java - `lines.lineNumber` (integer, required) Line number within the document. Example: 1 - `lines.articleCombination` (object, required) Article combination info. See ApiArticleCombinationListReadDto.java for the structure. - `lines.articleCombination.article` (string) Article code Example: 123456 - `lines.articleCombination.articleId` (integer) Internal article identifier Example: 876 - `lines.articleCombination.articleType` (string) Type of article Enum: "PACKAGING", "EXPENSE", "RAW_MATERIAL", "MERCHANDISE", "OTHERS", "FINISHED_PRODUCT", "SEMI_FINISHED", "SERVICE", "ADVERTISING" - `lines.articleCombination.unitWarehouseId` (integer) Warehouse ID where the item is stored Example: 55 - `lines.articleCombination.articleDescription` (string) Description of the article Example: "Blue cotton T-shirt" - `lines.articleCombination.attribute1` (object) First attribute of the article. See ApiAttributeListReadDto - `lines.articleCombination.attribute1.code` (string, required) Unique code for the attribute. Example: "COLOR" - `lines.articleCombination.attribute1.description` (string, required) Description of the attribute. Example: "Color of the item" - `lines.articleCombination.attribute2` (object) Second attribute of the article. See ApiAttributeListReadDto - `lines.articleCombination.attribute3` (object) Third attribute of the article. See ApiAttributeListReadDto - `lines.articleCombination.attribute4` (object) Fourth attribute of the article. See ApiAttributeListReadDto - `lines.articleCombination.attribute5` (object) Fifth attribute of the article. See ApiAttributeListReadDto - `lines.articleCombination.seasonId` (integer) Season identifier Example: 1 - `lines.articleCombination.season` (string) Season name Example: "Summer 2025" - `lines.articleCombination.category1` (string) First article category Example: "Men" - `lines.articleCombination.category2` (string) Second article category Example: "Shirts" - `lines.articleCombination.category3` (string) Third article category Example: "Cotton" - `lines.articleCombination.category4` (string) Fourth article category Example: "Casual" - `lines.articleCombination.description` (string) Combination description Example: "Casual blue T-shirt, 100% cotton" - `lines.articleCombination.active` (boolean) Indicates if the article is active Example: true - `lines.articleCombination.articleVatType` (string) VAT type for the article Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `lines.articleCombination.assortment` (object) Assortment information. See ApiAssortmentListReadDto - `lines.articleCombination.assortment.code` (string) Assortment code. Example: "ASRT123" - `lines.articleCombination.assortment.title` (string) Title of the assortment. Example: "Summer Collection" - `lines.articleCombination.assortment.sizeRange` (string) - `lines.articleCombination.sizeRange` (object) Size range information. See ApiSizeRangeListReadDto - `lines.articleCombination.sizeRange.code` (string, required) - `lines.articleCombination.sizeRange.description` (string, required) - `lines.articleCombination.serialNumberControl` (boolean) Indicates if serial number control is used - `lines.articleCombination.batchControl` (boolean) Indicates if batch control is used - `lines.attributesDescription` (string) Additional attributes description for the line. Example: "Color: Red, Size: L" - `lines.sizeRange` (object) Size range information. See ApiSizeRangeListReadDto.java for the structure. - `lines.assortment` (object) Assortment information. See ApiAssortmentListReadDto.java for the structure. - `lines.articleDescription` (string) Description of the article. Example: "Cotton T-Shirt" - `lines.packages` (integer) Number of packages in this line. Example: 3 - `lines.quantityPerPackage` (number) Quantity per package for this line. Example: 5 - `lines.quantityLine` (number) Total quantity for this line. Example: 15 - `lines.price` (number) Unit price for this article line. Example: 12.95 - `lines.lineObservations` (string) Observations for this document line. Example: "Deliver before 9 AM" - `lines.details` (array) List of line details. See ApiBaseLineDetailReadDto.java for the structure. - `lines.details.widthId` (integer) Width identifier. Example: 200 - `lines.details.widthCode` (string) Width code. Example: "W-35" - `lines.details.quantitiesPerSize` (array) Quantities per size. For structure see ApiBaseLineDetailSizeReadDto.java - `lines.details.quantitiesPerSize.sizeRangeDetailId` (integer, required) Size detail identifier. Example: 15 - `lines.details.quantitiesPerSize.sizeRangeDetailSize` (string, required) Size code within the range. Example: "M" - `lines.details.quantitiesPerSize.sizeRangeSizeOrder` (integer) Order value of the size in the range. Example: 2 - `lines.details.quantitiesPerSize.quantityPerPackage` (number) Quantity per package for this size. Example: 8 - `lines.details.quantitiesPerSize.quantityDetail` (number) Total quantity for this size. Example: 24 - `lines.details.quantitiesPerSize.availability` (number) Available quantity for this size. Example: 10 - `lines.details.quantitiesPerSize.cancelledQuantityDetail` (number) Quantity that has been cancelled for this size Example: 5.5 - `lines.details.quantitiesPerSize.servedQuantityDetail` (number) Quantity that has been served for this size Example: 18.5 - `lines.concept` (string) - `lines.assortedPackages` (boolean) - `lines.packaging` (object) - `lines.packaging.code` (string, required) Code of the article Example: "ART123" - `lines.packaging.description` (string) Description of the article Example: "Premium leather jacket" - `lines.packaging.description2` (string) Secondary description of the article Example: "Available in multiple colors" - `lines.packaging.warehouse` (string, required) Warehouse associated with the article Example: "MAIN" - `lines.packaging.category1` (string) Primary category of the article Example: "Clothing" - `lines.packaging.category2` (string) Secondary category of the article Example: "Jackets" - `lines.packaging.category3` (string) Tertiary category of the article Example: "Leather" - `lines.packaging.category4` (string) Quaternary category of the article Example: "Premium" - `lines.packaging.vatType` (string, required) VAT type of the article Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `lines.packaging.season` (string) Season associated with the article Example: "FALL2023" - `lines.packaging.family` (string) Family of the article Example: "OUTDOOR" - `lines.packaging.baseCombination` (object) Base combination of the article - `lines.packaging.tags` (array) List of tags associated with the article Example: ["premium","leather","fashion"] - `lines.packaging.showAttribute1` (boolean) Indicates if attribute 1 should be displayed Example: true - `lines.packaging.showAttribute2` (boolean) Indicates if attribute 2 should be displayed - `lines.packaging.showAttribute3` (boolean) Indicates if attribute 3 should be displayed - `lines.packaging.showAttribute4` (boolean) Indicates if attribute 4 should be displayed - `lines.packaging.showAttribute5` (boolean) Indicates if attribute 5 should be displayed - `lines.discount` (number) - `lines.rsp` (number) - `lines.reference` (string) - `lines.serviceDate` (string) - `lines.noAccumulateWarehouse` (boolean) - `lines.warehouse` (object) Warehouse information - `lines.warehouse.code` (string, required) Warehouse code (unique per warehouse). Example: "ALM01" - `lines.warehouse.description` (string, required) Warehouse description. Example: "Central warehouse" - `lines.brand` (object) - `lines.brand.code` (string, required) Unique brand code. Example: "NIKE" - `lines.customCommission` (boolean) - `lines.representative1` (object) Tertiary representative information - `lines.representative1.name` (string) - `lines.representative1.cif` (string) - `lines.representative1.population` (string) - `lines.representative1.country` (string) - `lines.representative1.state` (string) - `lines.representative1.phone1` (string) - `lines.representative1.phone2` (string) - `lines.representative1.email` (string) - `lines.representative1.commission` (number) - `lines.representative1.commissionType` (string) Defines the types of commission calculations. Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `lines.representative1.irpfPercentage` (number) - `lines.representative1.vatPercentage` (number) - `lines.representative1.subAgentOf` (string) - `lines.representative1.userB2bMobility` (string) - `lines.representative1.enableB2bMobility` (boolean) - `lines.commissionType1` (string) Defines the types of commission calculations. Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `lines.commission1` (number) - `lines.representative2` (object) Tertiary representative information - `lines.commissionType2` (string) Defines the types of commission calculations. Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `lines.commission2` (number) - `lines.representative3` (object) Tertiary representative information - `lines.commissionType3` (string) Defines the types of commission calculations. Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `lines.commission3` (number) - `lines.freeDescription1` (string) - `lines.freeDescription2` (string) - `lines.freeDescription3` (string) - `lines.freeDescription4` (string) - `lines.freeDescription5` (string) - `lines.articleVatType` (string) Defines the VAT types applicable to articles. Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `lines.surchargePercentage` (number) - `lines.grossAmount` (number) - `lines.grossAmountCompanyCurrency` (number) - `lines.netAmount` (number) - `lines.netAmountCompanyCurrency` (number) - `lines.totalLine` (number) - `lines.totalLineCompanyCurrency` (number) - `lines.disbursement` (boolean) - `lines.templateSaleInvoiceId` (integer) - `lines.templateSaleInvoiceNumber` (integer) - `lines.templateSaleInvoiceDocumentDate` (string) - `lines.templateSaleInvoiceBillingSeriesCode` (string) - `lines.customerId` (integer) - `lines.customerName` (string) - `change` (number) Change applied to the invoice or document Example: 0.5 - `discount1` (number) First discount percentage Example: 5 - `discount2` (number) Second discount percentage Example: 2 - `discountAmountTotal` (number) Total discount amount Example: 100 - `discountAmountTotalCompanyCurrency` (number) Total discount amount in company currency Example: 95 - `discountPp` (number) Prompt payment discount percentage Example: 3 - `discountPpAmountTotal` (number) Total prompt payment discount amount Example: 15 - `discountPpAmountTotalCompanyCurrency` (number) Total prompt payment discount amount in company currency Example: 14 - `grossAmountTotal` (number) Gross total amount Example: 1200 - `grossAmountTotalCompanyCurrency` (number) Gross total amount in company currency Example: 1150 - `netAmountTotal` (number) Net total amount Example: 1100 - `netAmountTotalCompanyCurrency` (number) Net total amount in company currency Example: 1080 - `vatAmountTotal` (number) Total VAT amount Example: 230 - `vatAmountTotalCompanyCurrency` (number) Total VAT amount in company currency Example: 225 - `surchargeAmountTotal` (number) Total surcharge amount Example: 20 - `surchargeAmountTotalCompanyCurrency` (number) Total surcharge amount in company currency Example: 18 - `withholding` (number) Withholding percentage Example: 2 - `withholdingAmountTotal` (number) Total withholding amount Example: 22 - `withholdingAmountTotalCompanyCurrency` (number) Total withholding amount in company currency Example: 21 - `total` (number) Total document amount Example: 1300 - `totalCompanyCurrency` (number) Total document amount in company currency Example: 1280 - `disbursementAmountTotal` (number) Total disbursement amount Example: 50 - `disbursementAmountTotalCompanyCurrency` (number) Total disbursement amount in company currency Example: 48 - `customerVatType` (object) Customer VAT type information - `customerVatType.code` (string, required) VAT type code. Example: GENERAL, REDUCED, EXEMPT, etc. Example: "GENERAL" - `customerVatType.description` (string) Description of the VAT type. Example: "General VAT type" - `billingSeries` (object) Billing series information - `billingSeries.type` (string, required) Type of the billing series. See ApiBillingSeriesTypeEnum for possible values. Enum: "PURCHASE", "PURCHASE_TICKET", "SALE", "SALE_TICKET", "INVOICE_DRAFT" - `billingSeries.code` (string, required) Billing series code. Example: "SER2025" - `billingSeries.description` (string) Description of the billing series. Example: "Main invoice series" - `billingSeries.deposit` (boolean) Indicates if this is the default series. Example: true - `billingSeries.corrective` (boolean) - `shippingTerm` (object) Shipping terms information - `shippingTerm.customerPays` (boolean) - `shippingTerm.intrastatCode` (string) - `shippingVatType` (string) VAT type for shipping Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `shippingVatPercentage` (number) VAT percentage for shipping Example: 21 - `shippingSurchargePercentage` (number) Surcharge percentage for shipping Example: 5 - `shippingAmount` (number) Shipping amount Example: 25.5 - `currency` (object) Currency information - `currency.nomenclature` (string) - `currency.isoCode` (string) Defines the ISO currency codes. Enum: "AED", "AFA", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZM", "BAM", "BBD", "BDT", "BGL", "BHD", "BIF", "BMD", "BND", "BOB", "BRL", "BSD", "BTN", "BWP", "BYR", "BZD", "CAD", "CDF", "CHF", "CLP", "CNY", "COP", "CRC", "CUP", "CVE", "CYP", "CZK", "DJF", "DKK", "DOP", "DZD", "EEK", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GGP", "GHC", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "IMP", "INR", "IQD", "IRR", "ISK", "JEP", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LVL", "LYD", "MAD", "MDL", "MGF", "MKD", "MMK", "MNT", "MOP", "MRO", "MTL", "MUR", "MVR", "MWK", "MXN", "MYR", "MZM", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "ROL", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SPL", "SRG", "STD", "SVC", "SYP", "SZL", "THB", "TJS", "TMM", "TND", "TOP", "TRL", "TTD", "TVD", "TWD", "TZS", "UAH", "UGX", "USD", "UYU", "UZS", "VEB", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "YER", "YUM", "ZAR", "ZMK", "ZWD", "RUB", "TRY" - `currency.changeValue` (number) - `currency.significantDecimalsDocuments` (integer) - `currency.intermediateDecimalsDocuments` (integer) - `currency.decimalsCalculatePrices` (integer) - `currency.decimalsCalculateCosts` (integer) - `rateCode` (object) Exchange rate code information - `rateCode.taxesIncluded` (boolean) - `customerAddress` (object, required) Customer address information - `customerAddress.code` (integer, required) Address code. Example: 101 - `customerAddress.customerCode` (string) Customer string code. Example: "C10001" - `customerAddress.customerName` (string) Name of the customer. Example: "Acme S.A." - `customerAddress.customerPostalCode` (string) Postal code of the customer. Example: "03001" - `customerAddress.customerAddress` (string) Street address of the customer. Example: "Avenida de la Estación, 5" - `customerAddress.customerCity` (string) City of the customer. Example: "Alicante" - `customerAddress.customerState` (string) Customer state code. Example: "A" - `customerAddress.customerStateDescription` (string) Description of the customer state. Example: "Alicante" - `customerAddress.customerCountry` (string) Country code of the customer. Example: "ES" - `customerAddress.customerCountryDescription` (string) Country description of the customer. Example: "Spain" - `customerAddress.customerFirstPhoneNumber` (string) First customer phone number. Example: "+34965123456" - `customerAddress.customerSecondPhoneNumber` (string) Second customer phone number. Example: "+34965111111" - `customerAddress.customerEmail` (string) Customer email address. Example: "cliente@acme.es" - `customerAddress.customerCif` (string) Customer CIF or NIF. Example: "B12345678" - `customerAddress.customerId` (integer) Customer identifier (numeric). Example: 10001 - `customerAddress.customerCommercialName` (string) Customer commercial name. Example: "Acme España" - `customerAddress.name` (string) Address name or label. Example: "Warehourse" - `customerAddress.city` (string) City for this address. Example: "Alicante" - `customerAddress.state` (string) State (code). Example: "A" - `customerAddress.stateDescription` (string) State description. Example: "Alicante" - `customerAddress.postalCode` (string) Postal code for the address. Example: "03001" - `customerAddress.country` (string) Country code for this address. Example: "ES" - `customerAddress.countryDescription` (string) Country description for this address. Example: "Spain" - `customerAddress.address` (string) Street address. Example: "Street Example, 14" - `customerAddress.firstPhoneNumber` (string) First phone number. Example: "+34965123456" - `customerAddress.secondPhoneNumber` (string) Second phone number. Example: "+34965111111" - `customerAddress.email` (string) Email for this address. Example: "direccion@acme.es" - `customerAddress.cif` (string) CIF/NIF for this address. Example: "B12345678" - `customerAddress.activity` (string) Activity for this address. Example: "Wholesale" - `customerAddress.brand` (string) Brand associated to this address. Example: "Acme Main Brand" - `customerAddress.brandId` (string) Brand id for this address. Example: 5010 - `customerAddress.customerIsActive` (boolean) True if the customer is active. Example: true - `customerAddress.isActive` (boolean) True if this address is active. Example: true - `status` (string) Status of the template sale invoice Enum: "PENDING", "CURRENT" - `validityDate` (string) Date until which the template is valid Example: "2024-12-31" - `serviceDate` (string) Service date Example: "2024-01-15" - `manufacturingDate` (string) Manufacturing date Example: "2024-01-10" - `valueDate` (string) Value date Example: "2024-01-20" - `season` (object) Season information - `season.isCurrent` (boolean) - `season.startDate` (string, required) - `season.endDate` (string, required) - `representative1` (object) Primary representative information - `commissionType1` (string) Type of commission for primary representative Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `commission1` (number) Commission amount for primary representative Example: 5 - `representative2` (object) Secondary representative information - `commissionType2` (string) Type of commission for secondary representative Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `commission2` (number) Commission amount for secondary representative Example: 100 - `commissionType3` (string) Type of commission for tertiary representative Enum: "PERCENTAGE", "AMOUNT_PER_UNIT", "FIXED" - `commission3` (number) Commission amount for tertiary representative Example: 2.5 - `reference` (string) Reference number for the template Example: "TEMP-2024-001" - `paymentMethod` (object) Payment method information - `paymentMethod.code` (integer, required) Código único del método de pago Example: 1 - `paymentMethod.description` (string, required) Descripción del método de pago Example: "Transferencia bancaria" - `paymentMethod.document` (string) Documento asociado al método de pago Example: "Contrato" - `paymentMethod.firstTerm` (integer) Primer plazo de pago en días Example: 30 - `paymentMethod.terms` (integer) Número total de plazos Example: 3 - `paymentMethod.daysTerms` (integer) Días entre plazos Example: 30 - `paymentMethod.remittance` (boolean) Indica si es una remesa Example: true - `paymentMethod.addToCustomerBase` (boolean) Indica si se debe añadir a la base de clientes Example: true - `paymentMethod.serveFullPrePaid` (boolean) Indica si sirve como pago anticipado completo - `paymentMethod.observations` (string) Observaciones adicionales Example: "Requiere verificación bancaria" - `paymentMethod.icon` (string) Icono representativo del método de pago Example: "fa-credit-card" - `paymentMethod.facturaECode` (string) Código de factura electrónica asociado Enum: "NOT_SPECIFIED", "CASH", "DOMICILED_RECEIPT", "RECEIPT", "TRANSFER", "ACCEPTED_LETTER", "LETTER_OF_CREDIT", "CONTRACT_AWARD", "BILL_OF_EXCHANGE", "PROMISORY_NOTE_IN_ORDER", "PROMISORY_NOTE_NOT_IN_ORDER", "CHECK_NOTE", "REPLACEMENT", "SPECIALS", "COMPENSATION", "POSTAL_ORDER", "FORMED_CHECK", "BANK_CHECK", "CASH_ON_DELIVERY_PAYMENT", "PAYMENT_BY_CARD" - `firstTerm` (integer) First payment term in days Example: 30 - `daysTerm` (integer) Payment term in days Example: 30 - `terms` (integer) Number of payment terms Example: 3 - `proximityType` (string) Type of proximity Enum: "NEARBY", "PREVIOUS", "LATER" - `iban` (string) IBAN for payments Example: "ES9121000418450200051332" - `discount3` (number) Third discount percentage Example: 3 - `discount4` (number) Fourth discount percentage Example: 2 - `billingCompany` (object) Billing company information - `billingCompany.code` (string) Company code. Example: "C100" - `billingCompany.cif` (string) Tax identification code (CIF) of the company. Example: "B12345678" - `billingCompany.name` (string) Name of the company. Example: "Clavei S.L." - `billingCompany.phone1` (string) Indicates if this is the default company. Example: true - `billingCompany.logo` (string) - `billingCompany.logoToken` (string) - `packages` (integer) Number of packages Example: 5 - `grossWeight` (number) Gross weight in kilograms Example: 25.5 - `netWeight` (number) Net weight in kilograms Example: 23 - `volume` (number) Volume in cubic meters Example: 0.5 - `invoiceEditObservations` (string) Observations for invoice editing Example: "Special packaging required" - `collectedAmount` (number) Collected amount Example: 1500 - `collectedAmountCompanyCurrency` (number) Collected amount in company currency Example: 1500 - `tags` (array) Tags associated with the template Example: ["recurring","monthly"] - `discount1AmountTotal` (number) Total amount of first discount Example: 150 - `discount1AmountTotalCompanyCurrency` (number) Total amount of first discount in company currency Example: 150 - `discount2AmountTotal` (number) Total amount of second discount Example: 75 - `discount2AmountTotalCompanyCurrency` (number) Total amount of second discount in company currency Example: 75 - `discount3AmountTotal` (number) Total amount of third discount Example: 45 - `discount3AmountTotalCompanyCurrency` (number) Total amount of third discount in company currency Example: 45 - `discount4AmountTotal` (number) Total amount of fourth discount Example: 30 - `discount4AmountTotalCompanyCurrency` (number) Total amount of fourth discount in company currency Example: 30 - `active` (boolean) Flag indicating if the template is active Example: true - `automaticGeneration` (boolean) Flag indicating if generation is automatic Example: true - `automaticSending` (boolean) Flag indicating if sending is automatic - `startDate` (string) Start date for the template Example: "2024-01-01" - `endDate` (string) End date for the template Example: "2024-12-31" - `nextInvoice` (string) Next invoice date Example: "2024-02-01" - `periodicInvoice` (string) Periodic invoice type Enum: "DAILY", "WEEKLY", "BIWEEKLY", "MONTHLY", "BIMONTHLY", "QUARTERLY", "SEMIANNUAL", "ANNUAL"