# Get Invoice Get a specific purchase invoice. Endpoint: GET /api/v1/purchase-invoice/{id} Version: 1.0 ## Path parameters: - `id` (integer, required) ## Response 200 fields (application/json): - `id` (integer, required) Unique identifier of the entity Example: 1 - `observations` (string) General observations Example: "Special handling required" - `number` (integer) Invoice number Example: 1001 - `documentDate` (string) Document date Example: "2024-01-15" - `quantityTotal` (number) Total quantity Example: 10 - `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) - `locked` (boolean) Flag indicating if the invoice is locked - `accounted` (boolean) Flag indicating if the invoice is accounted Example: true - `grossAmountTotal` (number) Total gross amount Example: 1000 - `grossAmountTotalCompanyCurrency` (number) Total gross amount in company currency Example: 1000 - `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 - `discountPp` (number) PP discount percentage Example: 5 - `discountPpAmountTotalCompanyCurrency` (number) PP discount amount in company currency Example: 50 - `netAmountTotal` (number) Total net amount Example: 900 - `netAmountTotalCompanyCurrency` (number) Total net amount in company currency Example: 900 - `vatAmountTotal` (number) Total VAT amount Example: 189 - `vatAmountTotalCompanyCurrency` (number) Total VAT amount in company currency Example: 189 - `total` (number) Total amount Example: 1114.5 - `totalCompanyCurrency` (number) Total amount in company currency Example: 1114.5 - `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" - `discount1` (number) First discount percentage Example: 10 - `discount2` (number) Second discount percentage Example: 5 - `currency` (object) Currency information - `currency.code` (string, required) - `currency.description` (string, required) - `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) - `change` (number) Exchange rate Example: 1 - `iban` (string) IBAN for payments Example: "ES9121000418450200051332" - `withholding` (number) Withholding percentage Example: 15 - `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" - `billingObservations` (string) Billing observations Example: "Handle with care" - `paidCommissions` (boolean) Flag indicating if commissions are paid Example: true - `packages` (integer) Number of packages Example: 5 - `tags` (array) Tags associated with the invoice Example: ["urgent","priority"] - `status` (string) Status of the invoice Enum: "PENDING", "PAID", "PARTIALLY_PAID", "DRAFT" - `reference` (string) Reference number Example: "FAC-2024-001" - `valueDate` (string) Value date Example: "2024-01-20" - `shippingTerm` (object) Shipping terms information - `shippingTerm.customerPays` (boolean) - `shippingTerm.intrastatCode` (string) - `irpfAmountTotal` (number) Total IRPF amount Example: 15 - `withholdingAmountTotal` (number) Total withholding amount Example: 15 - `disbursementAmountTotal` (number) Total disbursement amount Example: 25.5 - `disbursementAmountTotalCompanyCurrency` (number) Total disbursement amount in company currency Example: 25.5 - `collectedAmount` (number) Collected amount Example: 1114.5 - `collectedAmountCompanyCurrency` (number) Collected amount in company currency Example: 1114.5 - `expirationDate` (string) Expiration date Example: "2024-02-15" - `manual` (boolean) Flag indicating if the invoice is manual - `amountReconciliation` (number) Amount for reconciliation - `amountReconciliationCompanyCurrency` (number) Amount for reconciliation in company currency - `lines` (object) List of purchase delivery note lines associated with this invoice - `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.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.packaging` (object) Packaging article information - `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) Discount percentage applied to this line Example: 10.5 - `lines.vatPercentage` (number) VAT percentage applied to this line Example: 21 - `lines.surchargePercentage` (number) Surcharge percentage applied to this line Example: 5.2 - `lines.grossAmount` (number) Gross amount before discounts Example: 1000 - `lines.grossAmountCompanyCurrency` (number) Gross amount in company currency Example: 1000 - `lines.netAmount` (number) Net amount after discounts Example: 900 - `lines.netAmountCompanyCurrency` (number) Net amount in company currency Example: 900 - `lines.totalLine` (number) Total line amount Example: 1089 - `lines.totalLineCompanyCurrency` (number) Total line amount in company currency Example: 1089 - `lines.reference` (string) Reference code for the line Example: "REF-2024-001" - `lines.picture` (string) Picture filename Example: "product_image_001.jpg" - `lines.pictureToken` (string) Picture access token Example: "abc123def456" - `lines.noAccumulateWarehouse` (boolean) Indicates if warehouse accumulation is disabled - `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.purchaseOrderServedQuantity` (number) Quantity served from the purchase order Example: 25.5 - `lines.batches` (object) List of batches for this line - `lines.batches.batchId` (integer) Batch identifier. Example: 101 - `lines.batches.batchCode` (string) Batch code/label. Example: "LOT-2025A" - `lines.batches.quantity` (number) Quantity in the batch. Example: 50.25 - `lines.batches.availability` (number) Availability in the batch. Example: 26 - `lines.batches.packages` (integer) Amount of packages in this batch. Example: 2 - `lines.serialNumbers` (object) List of serial numbers for this line - `lines.serialNumbers.serialNumberId` (integer) Serial number identifier. Example: 1500 - `lines.serialNumbers.serialNumberCode` (string) Serial code. Example: "SN-A123XYZ" - `lines.serialNumbers.expirationDate` (string) Expiration date for the serial number, if any, in ISO format (yyyy-MM-dd). Example: "2026-12-31" - `lines.invoiceId` (integer) Related invoice identifier Example: 2001 - `lines.invoiceNumber` (integer) Related invoice number Example: 10025 - `lines.invoiceDocumentDate` (string) Related invoice document date Example: "2024-08-05" - `lines.invoiceBillingSeriesCode` (string) Related invoice billing series code Example: "A" - `lines.purchaseOrderId` (integer) Related purchase order identifier Example: 1501 - `lines.purchaseOrderNumber` (integer) Related purchase order number Example: "PO-2024-001" - `lines.purchaseOrderTotal` (number) Total amount of the related purchase order Example: 5000 - `lines.purchaseOrderLineId` (integer) Related purchase order line identifier Example: 3001 - `lines.purchaseOrderLineLineNumber` (integer) Line number in the related purchase order Example: 1 - `lines.supplierId` (integer) Supplier identifier Example: 1001 - `lines.supplierCommercialName` (string) Commercial name of the supplier Example: "ABC Suppliers Ltd." - `lines.disbursement` (boolean) Indicates if this line involves disbursement - `lines.concept` (string) Concept description for the line Example: "Product purchase" - `lines.investment` (boolean) Indicates if this line is an investment - `lines.deductible` (boolean) Indicates if this line is deductible Example: true - `taxes` (object) List of taxes applied to the purchase invoice - `taxes.vatPercentage` (number) VAT percentage Example: 21 - `taxes.surchargePercentage` (number) Surcharge percentage Example: 5 - `taxes.surchargeAmountTotal` (number) Total surcharge amount Example: 50 - `taxes.surchargeAmountTotalCompanyCurrency` (number) Total surcharge amount in company currency Example: 50 - `taxes.withholdingAmountTotalCompanyCurrency` (number) Total withholding amount in company currency Example: 15 - `taxes.discountsAmountTotal` (number) Total discounts amount Example: 100 - `receipts` (object) List of purchase receipts associated with this invoice - `receipts.billingSeriesCode` (string) Billing series code Example: "FAC" - `receipts.invoiceNumber` (integer) Invoice number Example: 1001 - `receipts.receiptNumber` (integer) Receipt number Example: 5001 - `receipts.invoiceDate` (string) Invoice date Example: "2024-01-15" - `receipts.receiptDate` (string) Receipt date Example: "2024-01-20" - `receipts.pendingAmount` (number) Pending amount - `receipts.pendingAmountCompanyCurrency` (number) Pending amount in company currency - `receipts.paymentMethodDescription` (string) Payment method description Example: "Bank Transfer" - `receipts.supplierCode` (string) Supplier code Example: "SUP001" - `receipts.remittance` (boolean) Flag indicating if remittance is enabled Example: true - `receipts.paymentMethodDocument` (string) Payment method document Example: "TRANSFER" - `receipts.currencyNomenclature` (string) Currency nomenclature Example: "EUR" - `receipts.receiptCollectionLines` (object) Receipt collection lines - `receipts.receiptCollectionLines.collectionAmount` (number) Amount collected for this line. Example: 1234.56 - `receipts.receiptCollectionLines.collectionDate` (string) Date on which the amount was collected. Example: "2024-03-20" - `receipts.receiptCollectionLines.observations` (string) Observations or notes for the collection line. Example: "Paid via bank transfer." - `receipts.receiptCollectionLines.headerId` (integer) Identifier of the receipt collection header related to this line. Example: 1005 - `deliveryNotes` (object) List of purchase delivery notes associated with this invoice - `deliveryNotes.number` (integer, required) Unique serial number of the document header. Example: 1001 - `deliveryNotes.documentDate` (string, required) Date of the document in ISO format (yyyy-MM-dd). Example: "2024-08-07" - `deliveryNotes.quantityTotal` (number) Total quantity for all document lines. Example: 200.5 - `deliveryNotes.observations` (string) Free text field for any observations related to the document. Example: "Customer requested urgent delivery" - `deliveryNotes.lines` (array) List of detail lines for the document. For structure see: ApiBaseLineReadDto.java - `deliveryNotes.change` (number) Change applied to the invoice or document Example: 0.5 - `deliveryNotes.discountAmountTotal` (number) Total discount amount Example: 100 - `deliveryNotes.discountAmountTotalCompanyCurrency` (number) Total discount amount in company currency Example: 95 - `deliveryNotes.discountPp` (number) Prompt payment discount percentage Example: 3 - `deliveryNotes.discountPpAmountTotal` (number) Total prompt payment discount amount Example: 15 - `deliveryNotes.discountPpAmountTotalCompanyCurrency` (number) Total prompt payment discount amount in company currency Example: 14 - `deliveryNotes.grossAmountTotal` (number) Gross total amount Example: 1200 - `deliveryNotes.grossAmountTotalCompanyCurrency` (number) Gross total amount in company currency Example: 1150 - `deliveryNotes.netAmountTotal` (number) Net total amount Example: 1100 - `deliveryNotes.netAmountTotalCompanyCurrency` (number) Net total amount in company currency Example: 1080 - `deliveryNotes.total` (number) Total document amount Example: 1300 - `deliveryNotes.totalCompanyCurrency` (number) Total document amount in company currency Example: 1280 - `deliveryNotes.receivedDate` (string) Date when the delivery note was received Example: "2024-08-07" - `deliveryNotes.billCode` (string) Bill code reference Example: "BILL-2024-001" - `deliveryNotes.locked` (boolean) Indicates if the delivery note is locked for modifications - `deliveryNotes.reference` (string) Reference number for the delivery note Example: "DN-2024-001" - `deliveryNotes.supplier` (object) Supplier information - `deliveryNotes.supplier.cif` (string, required) - `deliveryNotes.supplier.commercialName` (string, required) - `deliveryNotes.supplier.name` (string) - `deliveryNotes.supplier.address` (string) - `deliveryNotes.supplier.country` (string) - `deliveryNotes.supplier.state` (string) - `deliveryNotes.supplier.postalCode` (string) - `deliveryNotes.supplier.city` (string) - `deliveryNotes.supplier.phone1` (string) - `deliveryNotes.supplier.phone2` (string) - `deliveryNotes.supplier.currency` (string) - `deliveryNotes.supplier.currencyNomenclature` (string) - `deliveryNotes.supplier.currencyChangeValue` (number) - `deliveryNotes.supplier.active` (boolean) - `deliveryNotes.supplier.email` (string) - `deliveryNotes.supplier.shippingTerm` (integer) - `deliveryNotes.supplier.tags` (array) - `deliveryNotes.supplier.vatDescription` (string) - `deliveryNotes.supplier.discount1` (number) - `deliveryNotes.supplier.paymentMethodId` (integer) - `deliveryNotes.supplier.paymentMethod` (string) - `deliveryNotes.supplier.currencyCode` (string) - `deliveryNotes.supplier.creationDate` (string) - `deliveryNotes.supplier.inactiveDate` (string) - `deliveryNotes.supplier.countryDescription` (string) - `deliveryNotes.supplier.stateDescription` (string) - `deliveryNotes.supplier.bankName` (string) - `deliveryNotes.supplier.account` (string) - `deliveryNotes.supplier.picture` (string) - `deliveryNotes.supplier.pictureToken` (string) - `deliveryNotes.supplier.modifiedOn` (string) - `deliveryNotes.supplier.web` (string) - `deliveryNotes.supplierName` (string) Name of the supplier Example: "ABC Suppliers Ltd." - `deliveryNotes.supplierAddress` (string) Address of the supplier Example: 123 - `deliveryNotes.supplierPhone` (string) Phone number of the supplier Example: "+34 91 123 4567" - `deliveryNotes.supplierEmail` (string) Email address of the supplier Example: "contact@abcsuppliers.com" - `deliveryNotes.supplierCif` (string) Tax identification number of the supplier Example: "B12345678" - `deliveryNotes.deliveryNote` (string) Delivery note reference Example: "DN-SUPP-2024-001" - `deliveryNotes.packages` (integer) Total number of packages Example: 5 - `deliveryNotes.daysTerm` (integer) Subsequent payment term in days Example: 30 - `deliveryNotes.proximityType` (string) Type of proximity for the delivery Enum: "NEARBY", "PREVIOUS", "LATER" - `deliveryNotes.shippingVatType` (string) VAT type for shipping costs Enum: "SUPER_REDUCED", "REDUCED", "GENERAL", "EXEMPT" - `deliveryNotes.shippingVatPercentage` (number) VAT percentage applied to shipping Example: 21 - `deliveryNotes.shippingSurchargePercentage` (number) Surcharge percentage applied to shipping Example: 5.2 - `deliveryNotes.invoiceDocumentDate` (string) Document date of the related invoice Example: "2024-08-05" - `deliveryNotes.invoiceBillingSeriesCode` (string) Billing series code of the related invoice Example: "A" - `deliveryNotes.tags` (array) Tags associated with the delivery note Example: ["urgent","priority"] - `deliveryNotes.invoiceEditObservations` (string) Invoice editing observations Example: "Invoice reviewed and approved" - `files` (object) List of files attached to the purchase invoice - `files.token` (string, required) File token (unique identifier). Example: "729eda1d03b34634b8e3c81a8b2d0974" - `files.url` (string, required) URL to access or download the file. Example: "https://apihost.com/file/729eda1d03b34634b8e3c81a8b2d0974" - `files.fileName` (string, required) File name (with extension). Example: "invoice_2023.pdf" - `files.fileExtension` (string, required) File extension. Example: "pdf" - `files.fileSize` (integer) File size in bytes. Example: 1048576 - `files.modifiedOn` (string, required) Date and time the file was last modified (ISO8601). Example: "2024-08-07T18:10:55" - `purchasingAccount` (object) Purchasing account information - `purchasingAccount.code` (string) Code of the chart account Example: 1000 - `purchasingAccount.description` (string) Description of the chart account Example: "Cash account" - `purchasingAccount.cif` (string) Tax identification number Example: "B12345678" - `purchasingAccount.active` (boolean) Indicates if the account is active Example: true - `purchasingAccount.color` (string) Color code for visual representation Example: "#FF5733" - `purchasingAccount.parentCode` (string) Code of the parent account Example: 100 - `purchasingAccount.parentDescription` (string) Description of the parent account Example: "Assets" - `correctiveInvoice` (object) Corrective invoice information if this invoice corrects another - `correctiveInvoice.billingSeriesCode` (string) Billing series code associated with the invoice. Example: "A" - `correctiveInvoice.number` (integer) Invoice number. Example: 10023 - `correctiveInvoice.documentDate` (string) Document date of the invoice. Example: "2024-04-20" - `correctiveInvoice.valueDate` (string) Value date of the invoice. Example: "2024-04-22" - `correctiveInvoice.commercialName` (string) Commercial name of the customer. Example: "Company ABC S.A." - `correctiveInvoice.grossAmountTotal` (number) Total gross amount of the invoice. Example: 800 - `correctiveInvoice.grossAmountTotalCompanyCurrency` (number) Total gross amount in company currency. Example: 820 - `correctiveInvoice.discount1AmountTotal` (number) Total amount of first discount applied. Example: 10 - `correctiveInvoice.discount1AmountTotalCompanyCurrency` (number) Total amount of first discount in company currency. Example: 10.25 - `correctiveInvoice.discount2AmountTotal` (number) Total amount of second discount applied. Example: 5 - `correctiveInvoice.discount2AmountTotalCompanyCurrency` (number) Total amount of second discount in company currency. Example: 5.1 - `correctiveInvoice.discountPpAmountTotal` (number) Total amount of prompt payment discount. Example: 3 - `correctiveInvoice.discountPpAmountTotalCompanyCurrency` (number) Total amount of prompt payment discount in company currency. Example: 3.06 - `correctiveInvoice.discountAmountTotal` (number) Total amount of all discounts. Example: 18 - `correctiveInvoice.discountAmountTotalCompanyCurrency` (number) Total amount of all discounts in company currency. Example: 18.41 - `correctiveInvoice.netAmountTotal` (number) Total net amount (after discounts, before VAT) of the invoice. Example: 700 - `correctiveInvoice.netAmountTotalCompanyCurrency` (number) Total net amount in company currency. Example: 715 - `correctiveInvoice.vatAmountTotal` (number) Total VAT amount of the invoice. Example: 147 - `correctiveInvoice.vatAmountTotalCompanyCurrency` (number) Total VAT amount in company currency. Example: 150 - `correctiveInvoice.total` (number) Total amount of the invoice (final amount). Example: 847 - `correctiveInvoice.totalCompanyCurrency` (number) Total amount of the invoice in company currency. Example: 865 - `correctiveInvoice.paymentMethodDescription` (string) Description of payment method. Example: "Bank transfer" - `correctiveInvoice.currencyNomenclature` (string) Nomenclature of the currency. Example: "EUR" - `correctiveInvoice.documentType` (string) Type of the document. Example: "INVOICE" - `correctiveInvoice.quantityTotal` (number) Total quantity associated with the invoice. Example: 25 - `correctiveInvoice.tags` (array) Tags associated with the invoice. Example: ["urgent","priority"] - `correctiveInvoice.status` (string) Invoice status. Enum: "PENDING", "PAID", "PARTIALLY_PAID", "DRAFT" - `correctiveInvoice.collectedAmount` (number) Total amount collected for the invoice. Example: 400 - `correctiveInvoice.collectedAmountCompanyCurrency` (number) Total amount collected in company currency. Example: 420 - `correctiveInvoice.currencySignificantDecimalsDocuments` (integer) Number of significant decimals for documents in the invoice currency. Example: 2 - `correctiveInvoice.currencyIntermediateDecimalsDocuments` (integer) Number of intermediate decimals for documents in the invoice currency. Example: 2 - `correctiveInvoice.currencyDecimalsCalculatePrices` (integer) Number of decimals for calculating prices. Example: 4 - `correctiveInvoice.currencyDecimalsCalculateCosts` (integer) Number of decimals for calculating costs. Example: 4 - `correctiveInvoice.reference` (string) Reference number or code for the invoice. Example: "INV-2024-1001" - `correctiveInvoice.disbursementAmountTotal` (number) Total disbursement amount of the invoice. Example: 50 - `correctiveInvoice.disbursementAmountTotalCompanyCurrency` (number) Total disbursement amount of the invoice in company currency. Example: 50 - `correctiveInvoice.expirationDate` (string) Expiration date of the invoice. Example: "2024-05-29" - `correctiveInvoice.withholdingAmountTotal` (number) Total withholding amount applied to the invoice. Example: 30 - `correctiveInvoice.manual` (boolean) Indicates if the invoice was generated manually. - `correctiveInvoice.amountReconciliation` (number) - `correctiveInvoice.amountReconciliationCompanyCurrency` (number) - `correctiveInvoice.supplierId` (string) Unique identifier of the supplier Example: 1001 - `correctiveInvoice.purchasingAccountCode` (string) Purchasing account code Example: 6000001 - `correctiveInvoice.receivedDate` (string) Date when the purchase invoice was received Example: "2024-08-07" - `correctiveInvoice.irpfType` (string) Type of IRPF for the customer. See ApiIRPFTypeEnum enum for values. Enum: "LEASES", "PROFESIONAL_ACTIVITIES", "AGRO"