---
title: "Update Expense Report"
method: PATCH
path: "/accounting/expense-reports/{id}"
tags: ["Expense Reports"]
---

# Update Expense Report

`PATCH /accounting/expense-reports/{id}`

Update Expense Report

## Path parameters

- `id` string, required

## Query parameters

- `raw` boolean

## Headers

- `x-apideck-consumer-id` string, required
- `x-apideck-app-id` string, required
- `x-apideck-service-id` string

## Request body

- ExpenseReport
  - `id` string — A unique identifier for an object.
  - `display_id` string, nullable — Id to be displayed.
  - `number` string, nullable — The expense report number.
  - `title` string, nullable — Title or purpose of the expense report.
  - `employee` object, required — The employee who submitted the expense report.
    - `id` string — A unique identifier for the employee.
    - `display_name` string, nullable — The display name of the employee.
  - `status` 'draft' | 'submitted' | 'approved' | 'reimbursed' | 'rejected' | 'reversed' | 'voided', nullable — The status of the expense report.
  - `transaction_date` string, date-time, nullable, required — The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD
  - `posting_date` string, date, nullable — The date the expense report was posted to the general ledger.
  - `due_date` string, date, nullable — Date when reimbursement is due.
  - `currency` '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', nullable — Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
  - `currency_rate` number, nullable — Currency Exchange Rate at the time entity was recorded/generated.
  - `sub_total` number, nullable — Subtotal amount, normally before tax.
  - `total_tax` number, nullable — Total tax amount applied to this transaction.
  - `total_amount` number, nullable — Total amount of all expense lines including tax.
  - `reimbursable_amount` number, nullable — Total reimbursable amount (may differ from total if some expenses are non-reimbursable).
  - `memo` string, nullable — The memo of the expense report.
  - `department` LinkedDepartment, nullable
    - `id` string — A unique identifier for an object.
    - `display_id` string, nullable — Id to be displayed.
    - `name` string, nullable — The name of the resource.
    - `downstream_id` string, nullable — The third-party API ID of original entity
  - `location` LinkedLocation, nullable
    - `id` string — The unique identifier for the location.
    - `display_id` string, nullable — Id to be displayed.
    - `name` string, nullable — The name of the location.
    - `downstream_id` string, nullable — The third-party API ID of original entity
  - `account` LinkedLedgerAccount, nullable
    - `id` string — The unique identifier for the account.
    - `name` string, nullable — The name of the account.
    - `nominal_code` string, nullable — The nominal code of the account.
    - `code` string, nullable — The code assigned to the account.
    - `parent_id` string, nullable — The parent ID of the account.
    - `display_id` string, nullable — The display ID of the account.
  - `accounting_period` object, nullable — The accounting period the expense report is posted to.
    - `id` string — A unique identifier for the accounting period.
    - `name` string, nullable — The name of the accounting period.
  - `line_items` ExpenseReportLineItem[], required — Expense line items linked to this expense report.
    - `id` string — A unique identifier for an object.
    - `line_number` integer, nullable — Line number of the resource
    - `expense_category` LinkedExpenseCategory — The expense category this entity is linked to.
      - `id` string — The ID of the expense category.
      - `downstream_id` string, nullable — The third-party API ID of the expense category.
      - `display_id` string, nullable — The display ID of the expense category.
      - `name` string, nullable — The name of the expense category.
    - `account` LinkedLedgerAccount, nullable
      - `id` string — The unique identifier for the account.
      - `name` string, nullable — The name of the account.
      - `nominal_code` string, nullable — The nominal code of the account.
      - `code` string, nullable — The code assigned to the account.
      - `parent_id` string, nullable — The parent ID of the account.
      - `display_id` string, nullable — The display ID of the account.
    - `description` string, nullable — The description of the expense line item.
    - `quantity` number, nullable
    - `unit_price` number, nullable
    - `amount` number, required — The amount of the expense line item.
    - `tax_rate` LinkedTaxRate
      - `id` string, nullable — The ID of the object.
      - `code` string, nullable — Tax rate code
      - `name` string, nullable — Name of the tax rate
      - `rate` number, nullable — Rate of the tax rate
    - `tax_amount` number, nullable — Tax amount
    - `total_amount` number, nullable — The total amount of the expense line item including tax.
    - `transaction_date` string, date, nullable — The date of the individual expense.
    - `billable` boolean, nullable — Whether the expense is billable to a customer.
    - `reimbursable` boolean, nullable — Whether the expense is reimbursable to the employee.
    - `customer` LinkedCustomer, nullable — The customer this entity is linked to.
      - `id` string — The ID of the customer this entity is linked to.
      - `display_id` string, nullable — The display ID of the customer.
      - `display_name` string, nullable — The display name of the customer.
      - `name` string — The name of the customer. Deprecated, use display_name instead.
      - `company_name` string, nullable — The company name of the customer.
      - `email` string — The email address of the customer.
    - `department` LinkedDepartment, nullable
      - `id` string — A unique identifier for an object.
      - `display_id` string, nullable — Id to be displayed.
      - `name` string, nullable — The name of the resource.
      - `downstream_id` string, nullable — The third-party API ID of original entity
    - `location` LinkedLocation, nullable
      - `id` string — The unique identifier for the location.
      - `display_id` string, nullable — Id to be displayed.
      - `name` string, nullable — The name of the location.
      - `downstream_id` string, nullable — The third-party API ID of original entity
    - `tracking_categories` LinkedTrackingCategory[], nullable — A list of linked tracking categories.
      - `id` string — The unique identifier for the tracking category.
      - `code` string, nullable — The code of the tracking category.
      - `name` string, nullable — The name of the tracking category.
      - `parent_id` string — The unique identifier for the parent tracking category.
      - `parent_name` string, nullable — The name of the parent tracking category.
    - `receipt_url` string, nullable — URL to the receipt or attachment for this expense line.
    - `currency` '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', nullable — Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217).
    - `updated_by` string, nullable — The user who last updated the object.
    - `created_by` string, nullable — The user who created the object.
    - `updated_at` string, date-time, nullable — The date and time when the object was last updated.
    - `created_at` string, date-time, nullable — The date and time when the object was created.
  - `reference` string, nullable — Optional reference identifier for the transaction.
  - `subsidiary` LinkedSubsidiary, nullable
    - `id` string — A unique identifier for an object.
    - `display_id` string, nullable — Id to be displayed.
    - `name` string, nullable — The name of the resource.
  - `tracking_categories` LinkedTrackingCategory[], nullable — A list of linked tracking categories.
    - `id` string — The unique identifier for the tracking category.
    - `code` string, nullable — The code of the tracking category.
    - `name` string, nullable — The name of the tracking category.
    - `parent_id` string — The unique identifier for the parent tracking category.
    - `parent_name` string, nullable — The name of the parent tracking category.
  - `tax_inclusive` boolean, nullable — Amounts are including tax
  - `approved_by` object, nullable — The person who approved the expense report.
    - `id` string — A unique identifier for the approver.
    - `display_name` string, nullable — The display name of the approver.
  - `custom_fields` CustomField[]
    - union
      - object
        - `id` string, nullable, required — Unique identifier for the custom field.
        - `name` string, nullable — Name of the custom field.
        - `description` string, nullable — More information about the custom field
        - `value` union
          - string, nullable
          - number, nullable
          - boolean, nullable
          - object, nullable
          - union[]
            - union
              - …
      - object
        - `id` string, nullable — Unique identifier for the custom field.
        - `name` string, nullable, required — Name of the custom field.
        - `description` string, nullable — More information about the custom field
        - `value` union
          - string, nullable
          - number, nullable
          - boolean, nullable
          - object, nullable
          - union[]
            - union
              - …
  - `custom_mappings` CustomMappings, nullable — When custom mappings are configured on the resource, the result is included here.
  - `row_version` string, nullable — 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.
  - `updated_by` string, nullable — The user who last updated the object.
  - `created_by` string, nullable — The user who created the object.
  - `updated_at` string, date-time, nullable — The date and time when the object was last updated.
  - `created_at` string, date-time, nullable — The date and time when the object was created.
  - `pass_through` object[] — The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
    - `service_id` string, required — Identifier for the service to which this pass_through should be applied.
    - `operation_id` string — Optional identifier for a workflow operation to which this pass_through should be applied. This is useful for Unify calls that are making more than one downstream request.
    - `extend_object` object — Simple object allowing any properties for direct extension.
    - `extend_paths` object[] — Array of objects for structured data modifications via paths.
      - `path` string, required — JSONPath string specifying where to apply the value.
      - `value` unknown, required

## Response `200`

Expense Reports

- UpdateExpenseReportResponse
  - `status_code` integer, required — HTTP Response Status Code
  - `status` string, required — HTTP Response Status
  - `service` string, required — Apideck ID of service provider
  - `resource` string, required — Unified API resource name
  - `operation` string, required — Operation performed
  - `data` UnifiedId, required — A object containing a unique identifier for the resource that was created, updated, or deleted.
    - `id` string, required — The unique identifier of the resource
  - `_raw` Raw, nullable — Raw response from the integration when raw=true query param is provided

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `404` — The specified resource was not found
- `422` — Unprocessable
- `default` — Unexpected error

---

[API](https://skmtc.net/apideck-libraries/apis/accounting-api.md) · [All operations](https://skmtc.net/apideck-libraries/apis/accounting-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apideck-libraries/accounting-api/revisions/0acbb12d68de/schema)
