v1

latestOpenAPI 3.1.02026-07-241910582.8 KB

Update Payment Flow

Update a payment flow

patch/payment_flows/{id}

Path parameters

idstring required

The ID of a payment flow.

Request body

statusstring required

The status of the payment flow. You may only transition a flow from pending to cancelled.

Response

200

idstring
objectstring
live_modeboolean
client_tokenstring
statusstring
amountinteger
currencystring
directionstring
counterparty_idstring
{"stackTrail":"paths:/payment_flows/{id}:patch:responses:200:content:application/json:schema:properties:receiving_account_id","oasType":"schema","type":"unknown"}
originating_account_idstring
{"stackTrail":"paths:/payment_flows/{id}:patch:responses:200:content:application/json:schema:properties:payment_order_id","oasType":"schema","type":"unknown"}
created_atstring
updated_atstring

Example response

{
  "id": "d93b8ae4-b30e-42ce-bc5d-e1ca5785f863",
  "object": "payment_flow",
  "live_mode": true,
  "client_token": "pay-live-fmsXHyYikKHstYHeSB6Co5AjezMqKoFKFhKmwnY2tvJMUFmndkarJY7GcwYkcBvr",
  "status": "cancelled",
  "amount": 10000,
  "currency": "USD",
  "direction": "debit",
  "counterparty_id": "34b33f71-daaa-4ce3-b9f3-a275e7b9a6f7",
  "originating_account_id": "ceab8d17-1312-44fe-94e2-a858370c3f10",
  "created_at": "2023-02-18T03:50:54Z",
  "updated_at": "2023-02-18T03:50:54Z"
}