---
title: "Reflow"
method: POST
path: "/workflows/events/reflow"
tags: ["Workflows"]
---

# Reflow

`POST /workflows/events/reflow`

## Request

- Base URL: `https://{prefix}.api.sandbox.checkout.com`
- URL: `https://{prefix}.api.sandbox.checkout.com/workflows/events/reflow`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `string` scopes: `flow`, `flow:reflow`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/workflows/events/reflow/post.ts> (a function with typed inputs; its response is checked against the schema)

Reflow past events attached to multiple event IDs and workflow IDs, or to multiple subject IDs and workflow IDs. If you don't specify any workflow IDs, all matching workflows will be retriggered.

## Request body

- union
  - ReflowEventsByEventAndWorkflowIds
    - `events` string[], required: A list of IDs for the events you want reflowed.
    - `workflows` string[]: A list of IDs for the workflows whose actions you want to retrigger.
  - ReflowEventsBySubjectAndWorkflowIds
    - `subjects` string[], required: A list of subject IDs (for example, payment IDs and disputes IDs). The events associated with these subjects will be reflowed.
    - `workflows` string[]: A list of IDs for the workflows whose actions you want to retrigger.

## Response `202`

Event reflow initiated successfully

## Other responses

- `401`: Unauthorized
- `404`: Events for reflow not found
- `422`: Invalid data was sent
- `500`: Internal Error

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
