---
title: "Get an action by ID"
method: GET
path: "/merchant/actions/{actionId}"
tags: ["Actions"]
---

# Get an action by ID

`GET /merchant/actions/{actionId}`

Get a workflow action for the given ID.

## Path parameters

- `actionId` string, uuid, required

## Query parameters

- `includeEvents` boolean

## Response `200`

OK.

- object
  - `id` string, uuid — Unique identifier of the Action.
  - `workflowExecutionId` string, required — Unique identifier of the Workflow Execution that this action belongs to.
  - `workflowCode` string, required — Workflow code.
  - `workspaceId` string, uuid, required — Unique identifier of the Workspace that this action belongs to.
  - `type` 'authorize' | 'capture' | 'cancel' | 'confirm' | 'crateInstrument' | 'fraudScore' | 'fraudUpdate' | 'lookup' | 'payout' | 'refund' | 'startPaymentSession', required — Value of Action Types enumeration.
  - `status` 'created' | 'failed' | 'success', required — Value of Action Status enumeration.
  - `createdAt` string, date-time — Date of creation of the Action.
  - `updatedAt` string, date-time — Last update of the Action.
  - `errorCode` string — Error code of last failed execution event.

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Insufficient Scope.
- `404` — Not Found.
- `429` — Too Many Requests.

---

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