---
title: "admin_terminals_operations_post"
method: POST
path: "/accounts/{aid}/payments/admin/terminals/operations"
tags: ["terminals"]
---

# admin_terminals_operations_post

`POST /accounts/{aid}/payments/admin/terminals/operations`

Send a command to a payment terminal.

The response is returned immediately after the command is dispatched
to the terminal. The terminal's response is processed asynchronously.

scopes:
- admin:checkout
- write:checkout:/admin/terminals

## Headers

- `Idempotency-Key` string, uuid

## Request body

- TerminalOperationRequest
  - `terminal_id` string, required — Terminal identifier
  - `operation` 'end_of_day' | 'send_logs' | 'check_update' | 'open_menu', required

## Response `200`

Terminal operation created

- TerminalOperation — Terminal operation. The shape depends on the operation field.
  - `id` string, uuid, required — Unique identifier for the terminal operation.
  - `account_id` string — Account identifier the operation belongs to.
  - `terminal_id` string, required — Identifier of the terminal the operation was sent to.
  - `operation` 'end_of_day' | 'send_logs' | 'check_update' | 'open_menu', required
  - `status` 'PENDING' | 'COMPLETED' | 'FAILED' | 'TIMEOUT', required — Status of the terminal operation. - `PENDING`: Operation has been dispatched to the terminal and is awaiting a response. - `COMPLETED`: Terminal has responded and the operation finished successfully. - `FAILED`: Terminal responded but reported a failure. - `TIMEOUT`: No response was received from the terminal within the timeout window. A new operation can be dispatched.
  - `created_at` string, date-time, required — When the operation was created.
  - `created_by` string, required — Identity of the user or system that created the operation.
  - `updated_at` string, date-time, required — When the operation was last updated.
  - `updated_by` string, required — Identity of the user or system that last updated the operation.

## Other responses

- `400` — Bad / Invalid request
- `401` — Access forbidden, invalid JWT token was used
- `403` — Forbidden
- `404` — Resource was not found
- `409` — Operation already pending for terminal
- `500` — Unexpected Error

---

[API](https://skmtc.net/dintero/apis/account-management-api.md) · [All operations](https://skmtc.net/dintero/apis/account-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dintero/account-management-api/versions/9b83a4199008/schema)
