action apideck_journal_entries_update { label: "Update Journal Entry" description: "Update Journal Entry" provider: apideck method: PATCH path: "/accounting/journal-entries/{id}" encoding: json input: { type: "object" properties: { created_at: { type: "string" format: "date-time" description: "The date and time when the object was created." } created_by: { type: "string" description: "The user who created the object." } currency: { type: "string" description: "Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)." enum: ["UNKNOWN_CURRENCY", "AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LVL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRC", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "USS", "UYI", "UYU", "UZS", "VEF", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XTS", "XXX", "YER", "ZAR", "ZMK", "ZMW", "BTC", "ETH"] } currency_rate: { type: "number" description: "Currency Exchange Rate at the time entity was recorded/generated." } id: { type: "string" } journal_symbol: { type: "string" description: "Journal symbol of the entry. For example IND for indirect costs" } line_items: { type: "array" description: "Requires a minimum of 2 line items that sum to 0" items: { type: "object" required: ["ledger_account", "total_amount", "type"] properties: { department_id: { type: "string" description: "A unique identifier for an object." } description: { type: "string" description: "User defined description" } id: { type: "string" description: "A unique identifier for an object." } ledger_account: { type: "object" properties: { code: { type: "string" description: "The code assigned to the account." } id: { type: "string" description: "The unique identifier for the account." } name: { type: "string" description: "The name of the account." } nominal_code: { type: "string" description: "The nominal code of the account." } } } location_id: { type: "string" description: "A unique identifier for an object." } tax_amount: { type: "number" description: "Tax amount" } tax_rate: { type: "object" properties: { code: { type: "string" description: "Tax rate code" } id: { type: "string" description: "The ID of the object." } name: { type: "string" description: "Name of the tax rate" } rate: { type: "number" description: "Rate of the tax rate" } } } total_amount: { type: "number" description: "Debit entries are considered positive, and credit entries are considered negative." } tracking_category: { type: "object" properties: { id: { type: "string" description: "The unique identifier for the tracking category." } name: { type: "string" description: "The name of the tracking category." } } } type: { type: "string" description: "Debit entries are considered positive, and credit entries are considered negative." enum: ["debit", "credit"] } } additionalProperties: false } } memo: { type: "string" description: "Reference for the journal entry." } posted_at: { type: "string" format: "date-time" description: "This is the date on which the journal entry was added. This can be different from the creation date and can also be backdated." } raw: { type: "boolean" } row_version: { type: "string" description: "A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object." } title: { type: "string" description: "Journal entry title" } updated_at: { type: "string" format: "date-time" description: "The date and time when the object was last updated." } updated_by: { type: "string" description: "The user who last updated the object." } "x-apideck-app-id": { type: "string" } "x-apideck-consumer-id": { type: "string" } "x-apideck-service-id": { type: "string" } } required: ["id", "x-apideck-app-id", "x-apideck-consumer-id"] additionalProperties: false } output: { type: "object" required: ["data", "operation", "resource", "service", "status", "status_code"] properties: { data: { type: "object" required: ["id"] properties: { id: { type: "string" description: "The unique identifier of the resource" } } } operation: { type: "string" description: "Operation performed" } resource: { type: "string" description: "Unified API resource name" } service: { type: "string" description: "Apideck ID of service provider" } status: { type: "string" description: "HTTP Response Status" } status_code: { type: "integer" description: "HTTP Response Status Code" } } } }