---
title: "Update Payment Flow"
method: PATCH
path: "/payment_flows/{id}"
---

# Update Payment Flow

`PATCH /payment_flows/{id}`

Update a payment flow

## Path parameters

- `id` string, required

## Request body

- object
  - `status` string, required — The status of the payment flow. You may only transition a flow from `pending` to `cancelled`.

## Response `200`

200

- object
  - `id` string
  - `object` string
  - `live_mode` boolean
  - `client_token` string
  - `status` string
  - `amount` integer
  - `currency` string
  - `direction` string
  - `counterparty_id` string
  - `receiving_account_id` unknown
  - `originating_account_id` string
  - `payment_order_id` unknown
  - `created_at` string
  - `updated_at` string

## Other responses

- `404` — 404
- `422` — 422

---

[API](https://skmtc.net/modern-treasury/apis/modern-treasury-api.md) · [All operations](https://skmtc.net/modern-treasury/apis/modern-treasury-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modern-treasury/modern-treasury-api/revisions/ed0431a2dcd0/schema)
