# Update Entry Update a specific Entry. Endpoint: PUT /api/v1/entry/{id} Version: 1.0 ## Path parameters: - `id` (integer, required) ## Request fields (application/json): - `id` (integer) Unique identifier of the entry (only required for updates) Example: 10123 - `code` (integer) Code of the accounting entry Example: 5001 - `journal` (integer) Identifier of the journal where the entry is recorded Example: 3 - `entryDate` (string) Date of the accounting entry Example: "2024-05-15" - `valueDate` (string) Value date of the accounting entry Example: "2024-05-16" - `currency` (integer) Identifier of the currency used in the entry Example: 1 - `currencyChange` (number) Exchange rate applied for the currency Example: 1.123456789 - `document` (string) Reference document number Example: "DOC-2024-015" - `originalDocument` (string) Original document reference Example: "INV-2024-077" - `observations` (string) Additional observations or comments for the entry Example: "Manual adjustment for reconciliation" - `debit` (number) Total debit amount of the entry Example: 1500 - `credit` (number) Total credit amount of the entry Example: 1500 - `consolidated` (boolean) Indicates if the entry is consolidated - `origin` (string) Origin information of the accounting entry Enum: "AMORTIZATION", "BALANCE", "RECEIPT", "PAYMENT", "POS_INVOICE", "DELIVERY_NOTE", "PAYROLL", "SAGE", "BANK" - `vatRecord` (integer) Identifier of the VAT record associated with the entry Example: 25 - `paymentId` (integer) Identifier of the related payment Example: 5678 - `exported` (boolean) Indicates if the entry has been exported Example: true - `controlCode` (integer) Control code for internal use Example: 445 - `lines` (object) List of entry detail lines - `lines.id` (integer) Unique identifier of the entry detail (only required for updates) Example: 1001 - `lines.entry` (integer) Identifier of the related accounting entry Example: 5001 - `lines.lineNumber` (integer) Line number within the accounting entry Example: 1 - `lines.concept` (integer) Concept identifier Example: 200 - `lines.conceptDescription` (string) Description of the concept Example: "Purchase of office supplies" - `lines.extension` (string) Extension or additional reference information Example: "EXT-REF-01" - `lines.account` (integer) Identifier of the accounting account Example: 6000 - `lines.credit` (number) Credit amount of the line Example: 1200 - `lines.debit` (number) Debit amount of the line Example: 1200 - `lines.reconciliation` (integer) Reconciliation status of the line (0 = none, 1-5 = different reconciliation levels) - `lines.projectId` (integer) Identifier of the associated project Example: 45 - `lines.currencyAmount` (number) Amount in foreign currency Example: 1000 - `lines.currencyDebit` (number) Debit amount in foreign currency Example: 500 - `lines.currencyCredit` (number) Credit amount in foreign currency Example: 500 - `lines.tags` (array) List of tags or labels associated with the entry detail Example: ["adjustment","VAT"] - `files` (object) List of files attached to the entry - `files.id` (integer) - `files.token` (string, required) - `files.fileName` (string, required) - `files.fileExtension` (string, required) - `files.fileSize` (integer) - `receiptCollection` (integer) Identifier of the receipt collection associated with the entry Example: 321 - `purchaseReceiptCollection` (integer) Identifier of the purchase receipt collection associated with the entry Example: 654 - `remittanceReceipt` (integer) Identifier of the remittance receipt associated with the entry Example: 789 - `closingType` (string) Type of closing applied to the entry Example: "YEAR_END" ## Response 200 fields (application/json): - `id` (integer, required) Unique identifier of the entity Example: 1 - `code` (integer) Unique identifier code of the entry Example: 10123 - `periodId` (integer) Identifier of the accounting period Example: 2024 - `journal` (object) Journal information where the entry is recorded - `journal.code` (string, required) Unique code of the accounting journal Example: "SALES" - `journal.description` (string, required) Description of the accounting journal Example: "Sales Journal" - `entryDate` (string) Date of the accounting entry Example: "2024-05-15" - `valueDate` (string) Value date of the accounting entry Example: "2024-05-16" - `currency` (object) Currency of the accounting entry - `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) - `currencyChange` (number) Exchange rate applied for the currency Example: 1.12 - `document` (string) Reference document number Example: "DOC-2024-015" - `originalDocument` (string) Original document reference Example: "INV-2024-077" - `observations` (string) Additional observations or comments for the entry Example: "Manual adjustment for reconciliation" - `debit` (number) Total debit amount of the entry Example: 1500 - `credit` (number) Total credit amount of the entry Example: 1500 - `consolidated` (boolean) Indicates if the entry is consolidated Example: true - `origin` (string) Origin information of the accounting entry Enum: "AMORTIZATION", "BALANCE", "RECEIPT", "PAYMENT", "POS_INVOICE", "DELIVERY_NOTE", "PAYROLL", "SAGE", "BANK" - `vatRecord` (object) VAT record associated with the entry - `vatRecord.vatType` (string) Type of VAT applied Example: "GENERAL" - `vatRecord.billingSeriesCode` (string) Code of the billing series associated with the record Example: "BS001" - `vatRecord.billingSeriesDescription` (string) Description of the billing series Example: "Standard Billing Series" - `vatRecord.code` (integer) Unique identifier code of the VAT record Example: 12345 - `vatRecord.vatOperationTypeCode` (string) Code of the VAT operation type Example: "E01" - `vatRecord.vatOperationTypeDescription` (string) Description of the VAT operation type Example: "Intra-community acquisition of goods" - `vatRecord.description` (string) Description of the VAT record Example: "Purchase of office supplies with general VAT" - `vatRecord.cif` (string) Tax identification number (CIF/NIF) associated with the record Example: "B12345678" - `vatRecord.invoiceDate` (string) Date of the invoice related to the VAT record Example: "2024-05-15" - `vatRecord.accountingDate` (string) Date of the accounting record Example: "2024-05-16" - `vatRecord.totalAmount` (number) Total amount of the VAT record Example: 1500 - `vatRecord.invoiceDescription` (string) Invoice description associated with the VAT record Example: "Purchase of raw materials" - `paymentId` (integer) Identifier of the related payment Example: 5678 - `exported` (boolean) Indicates if the entry has been exported - `controlCode` (integer) Control code for internal use Example: 445 - `lines` (object) List of entry detail lines - `lines.lineNumber` (integer) Line number within the accounting entry Example: 1 - `lines.concept` (object) Concept information associated with the line - `lines.concept.code` (string) Code of the concept Example: "CON001" - `lines.concept.description` (string) Description of the concept Example: "Sales revenue" - `lines.conceptDescription` (string) Description of the concept Example: "Purchase of office supplies" - `lines.extension` (string) Extension or additional reference information Example: "EXT-REF-01" - `lines.account` (object) Accounting account associated with the line - `lines.account.code` (string) Code of the chart account Example: 1000 - `lines.account.description` (string) Description of the chart account Example: "Cash account" - `lines.account.cif` (string) Tax identification number Example: "B12345678" - `lines.account.active` (boolean) Indicates if the account is active Example: true - `lines.account.color` (string) Color code for visual representation Example: "#FF5733" - `lines.account.parentCode` (string) Code of the parent account Example: 100 - `lines.account.parentDescription` (string) Description of the parent account Example: "Assets" - `lines.debit` (number) Debit amount of the line Example: 1200 - `lines.credit` (number) Credit amount of the line Example: 1200 - `lines.reconciliation` (integer) Reconciliation status of the line (0 = none, 1-5 = different reconciliation levels) - `lines.projectId` (integer) Identifier of the associated project Example: 45 - `lines.currencyAmount` (number) Amount in foreign currency Example: 1000 - `lines.currencyDebit` (number) Debit amount in foreign currency Example: 500 - `lines.currencyCredit` (number) Credit amount in foreign currency Example: 500 - `lines.tags` (array) List of tags or labels associated with the entry detail Example: ["adjustment","VAT"] - `files` (object) List of files attached to the entry - `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" - `receiptCollection` (object) Receipt collection associated with the entry - `receiptCollection.orderNumber` (integer) Order number of the collection line. Example: 1 - `receiptCollection.collectionDate` (string) Date of the collection. Example: "2024-03-15" - `receiptCollection.country` (string) Country associated with the collection. Example: "Spain" - `receiptCollection.accountCode` (string) Account code associated with the collection. Example: 572000003 - `receiptCollection.observations` (string) Observations or notes for the collection. Example: "First payment received via bank transfer." - `receiptCollection.amount` (number) Amount collected. Example: 1000.5 - `receiptCollection.accounted` (boolean) Indicates if the amount is already accounted. Example: true - `receiptCollection.bankName` (string) Name of the bank where the collection was processed. Example: "Bank of Spain" - `receiptCollection.customerCode` (string) Unique customer code. Example: "CUST001" - `receiptCollection.customerBusinessName` (string) Business name of the customer. Example: "Clavei S.A." - `receiptCollection.customerName` (string) Contact name of the customer. Example: "Ana Martínez" - `purchaseReceiptCollection` (object) Purchase receipt collection associated with the entry - `purchaseReceiptCollection.supplierCode` (string) - `purchaseReceiptCollection.supplierBusinessName` (string) - `purchaseReceiptCollection.supplierName` (string) - `remittanceReceipt` (object) Remittance receipt associated with the entry - `closingType` (string) Type of closing applied to the entry Enum: "OPENING", "CLOSING", "OPERATING_CLOSING"