---
title: "Update an expense record by transaction id (admin)"
method: PATCH
path: "/v1/admin/customer/{customerId}/accounting-integration/expense/{transactionId}"
tags: ["Expense"]
---

# Update an expense record by transaction id (admin)

`PATCH /v1/admin/customer/{customerId}/accounting-integration/expense/{transactionId}`

## Path parameters

- `customerId` string, required
- `transactionId` string, required

## Request body

- object
  - `status` 'deleted'
  - `rutterExpenseId` string
  - `rutterVendorId` string

## Response `200`

Default Response

- object
  - `id` string, required
  - `status` string, required
  - `accountingDate` string, nullable, required
  - `spendCategoryId` string, nullable, required
  - `memo` string, nullable, required
  - `description` string, nullable, required
  - `referenceNumber` string, nullable, required
  - `rutterCustomerId` string, nullable, required
  - `billable` boolean, nullable, required
  - `syncState` union, required
    - 'synced'
    - 'failed'
    - 'pending'
    - 'ready'
  - `syncedAt` string, date-time, nullable, required
  - `expenseOutcome` string, nullable, required
  - `attachmentOutcome` string, nullable, required
  - `errorCode` string, nullable, required
  - `inngestRunId` string, nullable, required

## Other responses

- `400` — Default Response
- `401` — The access to this resource has been denied
- `403` — The access to this resource is forbidden
- `404` — The resource was not found
- `default` — Catch-all error response for any unexpected internal errors

---

[API](https://skmtc.dev/funneldash/apis/surface-admin-api.md) · [All operations](https://skmtc.dev/funneldash/apis/surface-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/funneldash/surface-admin-api/revisions/0dc20381c4a7/schema)
