# Add GL Code to Account Entry Adds a General Ledger (GL) code to an existing account entry identified by its ID. Endpoint: PUT /api/external/accounting/{accountEntryId} Version: 1.5.0 Security: API_AUTHENTICATION ## Query parameters: - `accountCode` (string, required) accountCode ## Path parameters: - `accountEntryId` (integer, required) accountEntryId ## Response 200 fields (application/json): - `accountCode` (string) - `amount` (number) Amount Example: 5.23 - `billable` (boolean) - `categoryAccountCode` (string) - `currency` (string) Currency Example: "EUR" - `date` (string) Epoch date value Example: 1732188260064 - `description` (string) Notes Example: "Account discount" - `flightNumber` (string) Flight number Example: 34343 - `id` (integer) Example: 33423 - `legId` (integer) Leg ID Example: 2323 - `quantity` (number) - `rate` (number) - `status` (string) Status Enum: "TRANSFERRED", "READY_TO_INVOICE", "TRANSFERRING" - `supplierId` (integer) - `supplierName` (string) - `taxable` (boolean) - `unit` (string) - `attachments` (array) - `attachments.customName` (string) Custom name Example: "Custom name" - `attachments.fileSize` (integer) File size Example: 31633 - `attachments.id` (integer) Document ID Example: 94318 - `attachments.imageSizeX` (integer) Image Width - `attachments.imageSizeY` (integer) Image Height - `attachments.isThumbnail` (boolean) Is thumbnail - `attachments.name` (string) Document name Example: "20241121-122428-220-PIOJG_Cancellation.pdf" - `attachments.originalName` (string) Original document name Example: "PIOJG_Cancellation.pdf" - `attachments.thumbnail` (object) - `attachments.uuid` (string) Document UUID Example: "71b0ea5c-f985-4032-ab58-21376c3c17e0" - `actual` (object) - `actual.baseCurrency` (string) Base currency Example: "USD" - `actual.quantity` (number) Quantity Example: 1 - `actual.rate` (number) Rate Example: 1.23 - `actual.unit` (string) Unit