---
title: "Updates a specific linked transactions (billable expenses)"
method: POST
path: "/LinkedTransactions/{LinkedTransactionID}"
tags: ["Accounting"]
---

# Updates a specific linked transactions (billable expenses)

`POST /LinkedTransactions/{LinkedTransactionID}`

## Path parameters

- `LinkedTransactionID` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- LinkedTransactions
  - `LinkedTransactions` LinkedTransaction[]
    - `SourceTransactionID` string, uuid — Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice
    - `SourceLineItemID` string, uuid — The line item identifier from the source transaction.
    - `ContactID` string, uuid — Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
    - `TargetTransactionID` string, uuid — Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice
    - `TargetLineItemID` string, uuid — The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID.
    - `LinkedTransactionID` string, uuid — The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9
    - `Status` 'APPROVED' | 'DRAFT' | 'ONDRAFT' | 'BILLED' | 'VOIDED' — Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
    - `Type` 'BILLABLEEXPENSE' — This will always be BILLABLEEXPENSE. More types may be added in future.
    - `UpdatedDateUTC` string — The last modified date in UTC format
    - `SourceTransactionTypeCode` 'ACCPAY' | 'SPEND' — The Type of the source tranasction. This will be ACCPAY if the linked transaction was created from an invoice and SPEND if it was created from a bank transaction.
    - `ValidationErrors` ValidationError[] — Displays array of validation error messages from the API
      - `Message` string — Validation error message

## Response `200`

Success - return response of type LinkedTransactions array with updated LinkedTransaction

- LinkedTransactions
  - `LinkedTransactions` LinkedTransaction[]
    - `SourceTransactionID` string, uuid — Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice
    - `SourceLineItemID` string, uuid — The line item identifier from the source transaction.
    - `ContactID` string, uuid — Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
    - `TargetTransactionID` string, uuid — Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice
    - `TargetLineItemID` string, uuid — The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID.
    - `LinkedTransactionID` string, uuid — The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9
    - `Status` 'APPROVED' | 'DRAFT' | 'ONDRAFT' | 'BILLED' | 'VOIDED' — Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
    - `Type` 'BILLABLEEXPENSE' — This will always be BILLABLEEXPENSE. More types may be added in future.
    - `UpdatedDateUTC` string — The last modified date in UTC format
    - `SourceTransactionTypeCode` 'ACCPAY' | 'SPEND' — The Type of the source tranasction. This will be ACCPAY if the linked transaction was created from an invoice and SPEND if it was created from a bank transaction.
    - `ValidationErrors` ValidationError[] — Displays array of validation error messages from the API
      - `Message` string — Validation error message

## Other responses

- `400` — Success - return response of type LinkedTransactions array with updated LinkedTransaction

---

[API](https://skmtc.net/xeroapi/apis/xero-accounting-api.md) · [All operations](https://skmtc.net/xeroapi/apis/xero-accounting-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xeroapi/xero-accounting-api/versions/dc231cafd8de/schema)
