---
title: "Replaces the Expense resource."
method: PUT
path: "/expenses/{id}"
tags: ["Expense"]
---

# Replaces the Expense resource.

`PUT /expenses/{id}`

Replaces the Expense resource.

## Path parameters

- `id` string, required

## Request body

- Expense
  - `id` string — Unique identifier for this customer note that no particular pattern in this field is guaranteed, only that this field is unique e.g. "xero-70"
  - `integration` string — The key of the integration source e.g. "quickbooks", or "xero"
  - `srcId` string — The unique identifier of the source 3rd party integration e.g. "982000000030049"
  - `txnId` string — Transaction ID e.g. "9856"
  - `type` string — Type of expense: e.g. "expense"
  - `accountId` string — ID of account associated with expense e.g. "1057"
  - `currency` string, nullable — Currency code e.g. "EUR"
  - `subtotal` integer, nullable — Subtotal of expense in cents e.g. 9000
  - `totalAmount` integer, nullable — Total of expense in cents e.g. 12000
  - `referenceNumber` string, nullable — Reference number of the expense, max length of 100 e.g. "782364"
  - `status` string, nullable — Status of expense e.g. "Unbilled"
  - `invoiceId` string, nullable — ID of the invoice e.g. "460000000028192"
  - `invoiceNumber` string, nullable — Invoice number e.g. "INV-00003"
  - `modified` string, date-time, nullable — Time at which the expense details were last updated e.g. "2019-05-25T02:17:40.080Z"
  - `accountName` string, nullable — Expense account name e.g. "Rent"
  - `created` string, date-time, nullable — Time at which the expense details were created e.g. "2019-05-22T02:17:40.080Z"
  - `accountCode` string, nullable — Chart of accounts identifier for the account e.g. "4560"
  - `contactId` string, nullable — Id of the contact which is usually a payee e.g. "23"
  - `contactName` string, nullable — Name of the contact which is usually a payee e.g. "Cool Cars"
  - `contactType` string, nullable — Type of the contact which can be customer, vendor, or employee
  - `paymentMethodId` string, nullable — Reference to the related Payment Method object
  - `date` string, date-time, nullable — Date of the expense e.g. "2019-05-22T02:17:40.080Z"
  - `taxAmount` integer, nullable — Total tax amount in cents e.g. 3000
  - `description` string, nullable — A note, memo, or description for the expense e.g. "GPS rent"
  - `deleted` boolean — Indicates if the expense has been deleted

## Response `200`

Expense resource updated

- Expense
  - `id` string — Unique identifier for this customer note that no particular pattern in this field is guaranteed, only that this field is unique e.g. "xero-70"
  - `integration` string — The key of the integration source e.g. "quickbooks", or "xero"
  - `srcId` string — The unique identifier of the source 3rd party integration e.g. "982000000030049"
  - `txnId` string — Transaction ID e.g. "9856"
  - `type` string — Type of expense: e.g. "expense"
  - `accountId` string — ID of account associated with expense e.g. "1057"
  - `currency` string, nullable — Currency code e.g. "EUR"
  - `subtotal` integer, nullable — Subtotal of expense in cents e.g. 9000
  - `totalAmount` integer, nullable — Total of expense in cents e.g. 12000
  - `referenceNumber` string, nullable — Reference number of the expense, max length of 100 e.g. "782364"
  - `status` string, nullable — Status of expense e.g. "Unbilled"
  - `invoiceId` string, nullable — ID of the invoice e.g. "460000000028192"
  - `invoiceNumber` string, nullable — Invoice number e.g. "INV-00003"
  - `modified` string, date-time, nullable — Time at which the expense details were last updated e.g. "2019-05-25T02:17:40.080Z"
  - `accountName` string, nullable — Expense account name e.g. "Rent"
  - `created` string, date-time, nullable — Time at which the expense details were created e.g. "2019-05-22T02:17:40.080Z"
  - `accountCode` string, nullable — Chart of accounts identifier for the account e.g. "4560"
  - `contactId` string, nullable — Id of the contact which is usually a payee e.g. "23"
  - `contactName` string, nullable — Name of the contact which is usually a payee e.g. "Cool Cars"
  - `contactType` string, nullable — Type of the contact which can be customer, vendor, or employee
  - `paymentMethodId` string, nullable — Reference to the related Payment Method object
  - `date` string, date-time, nullable — Date of the expense e.g. "2019-05-22T02:17:40.080Z"
  - `taxAmount` integer, nullable — Total tax amount in cents e.g. 3000
  - `description` string, nullable — A note, memo, or description for the expense e.g. "GPS rent"
  - `deleted` boolean — Indicates if the expense has been deleted

## Other responses

- `400` — Invalid input
- `404` — Resource not found
- `422` — Unprocessable entity

---

[API](https://skmtc.net/bossinsights/apis/boss-insights.md) · [All operations](https://skmtc.net/bossinsights/apis/boss-insights/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bossinsights/boss-insights/revisions/d08a107895ad/schema)
