---
title: "Update Transaction"
method: PATCH
path: "/digital-banking/v1/accounts/{account_id}/transactions/{transaction_id}"
tags: ["Transactions"]
---

# Update Transaction

`PATCH /digital-banking/v1/accounts/{account_id}/transactions/{transaction_id}`

## Request

- Base URL: `https://api.modernfi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.modernfi.com/digital-banking/v1/accounts/{account_id}/transactions/{transaction_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/modernfi/apis/endpoints/docs/digital-banking/v1/accounts/:account_id/transactions/:transaction_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `account_id` union, required
  - string, uuid
  - string
- `transaction_id` string, uuid, required

## Query parameters

- `id_type` 'INSTITUTION': Type of the account id. Institution accounts ids are external ids and come from the institution.

## Request body

- UpdateTransactionRequest
  - `transaction_status` 'PENDING' | 'POSTED' | 'CANCELLED'
  - `institution_transaction_id` string, nullable

## Response `200`

Successful Response

- TransactionResponse
  - `id` string, required
  - `account_id` string, required
  - `institution_id` string, required
  - `amount` string, required
  - `transacted_at` string, required
  - `transaction_status` 'PENDING' | 'POSTED' | 'CANCELLED', required
  - `description` string, nullable
  - `is_interest_payment` boolean, required
  - `posted_at` string, nullable
  - `institution_transaction_id` string, nullable
  - `transaction_type` 'CREDIT' | 'DEBIT', required

## Other responses

- `204`: Successful Response
- `400`: Bad Request - Invalid input or validation error
- `401`: Unauthenticated - Invalid or missing authentication credentials
- `403`: Unauthorized - Insufficient permissions to access resource
- `422`: Validation Error
- `500`: Internal Server Error

---

[API](https://skmtc.dev/modernfi/apis/endpoints.md) - [All operations](https://skmtc.dev/modernfi/apis/endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/modernfi/apis/endpoints/revisions/4bf4ac474dc0?raw)
