---
title: "Update fraud order status"
method: POST
path: "/merchant/workflows/{workflowCode}/executions/{executionId}/orderUpdate"
tags: ["Actions"]
---

# Update fraud order status

`POST /merchant/workflows/{workflowCode}/executions/{executionId}/orderUpdate`

Update the fraud provider with the fraud order status.

## Path parameters

- `workflowCode` string, required — Machine-friendly code of Workflow.
- `executionId` string, uuid, required

## Headers

- `x-idempotency-key` string, uuid, required

## Request body

- object
  - `status` 'customerCancelled' | 'failed' | 'fullyDelivered' | 'fullyReplaced' | 'fullyReturned' | 'fullyShipped' | 'merchantCancelled' | 'noShow' | 'partiallyDelivered' | 'partiallyReplaced' | 'partiallyReturned' | 'partiallyShipped' | 'pending' | 'processing', required — Value of Fraud Order status enumeration.

## Response `200`

Fraud order status update was requested.

- object
  - `name` 'fraudUpdate', required — Triggers fraud updates for payment(s) related to the execution.
  - `actionId` string, uuid, required — Unique identifier for this action execution. If its processing is done asynchronously, you will receive a notification with the same `actionId`.
  - `workspaceId` string, uuid — Unique identifier of a workspace in Payrails.
  - `executedAt` string, date-time, required — Date and time when execution of the Action was started.
  - `links` object, required — Links to the next possible actions that can be taken.
    - `execution` union — URL to fetch the current execution state.
      - string
      - object — Link related information.
        - `href` string, required
        - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' — HTTP method that should be used to call the `href`.
    - `consumerWait` union — URL the consumer can be redirected to until payment is complete. This endpoint will redirect the consumer as needed for 3DS or other PSP interactions.
      - string
      - object — Link related information.
        - `href` string, required
        - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' — HTTP method that should be used to call the `href`.
  - `requestId` string, uuid — Unique identifier for this request's execution.

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Insufficient Scope.
- `404` — Not Found.

---

[API](https://skmtc.dev/payrails/apis/payrails-api-reference.md) · [All operations](https://skmtc.dev/payrails/apis/payrails-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/payrails/payrails-api-reference/revisions/9dd2f0158582/schema)
