/v1/operations/{external_operation_id}ㅤ
Запрос на получение деталей операций авторизации, списания, возврата или отмены платежа.
Request
GET
https://pay.yandex.ru/api/merchant/v1/operations/{external_operation_id}
Production
GET
https://sandbox.pay.yandex.ru/api/merchant/v1/operations/{external_operation_id}
Sandbox
Path parameters
|
Name |
Description |
|
external_operation_id |
Type: string Идентификатор операции на стороне продавца Max length: Example: `` |
Responses
200 OK
Body
application/json
{
"code": 200,
"data": {
"operation": {
"amount": "123.45",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"pointsAmount": "123.45",
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
},
"status": "success"
}
|
Name |
Description |
|
code |
Type: unknown Default: |
|
data |
Type: OperationResponseData Example
|
|
status |
Type: string Default: Const: |
Operation
|
Name |
Description |
|
amount |
Type: string<double> Сумма операции в фиатной валюте Example: |
|
operationId |
Type: string<uuid> Max length: Example: |
|
operationType |
Type: string Enum: |
|
orderId |
Type: string Уникальный идентификатор заказа на стороне продавца. Используется:
Max length: Example: |
|
created |
Type: string<date-time> Дата и время создания операции (ISO 8601) Example: |
|
externalOperationId |
Type: string Идентификатор операции на стороне продавца Max length: Example: |
|
params |
Type: object Дополнительные параметры операции. Список полей отличается в зависимости от типа операции. При возврате сохраняются
При отмене сохраняется
Example
|
|
pointsAmount |
Type: string<double> Сумма операции в баллах Плюса Example: |
|
reason |
Type: string Причина ошибки Max length: Example: |
|
status |
Type: string Default: Enum: |
|
updated |
Type: string<date-time> Дата и время обновления операции (ISO 8601) Example: |
Example
{
"amount": "123.45",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"pointsAmount": "123.45",
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
OperationResponseData
|
Name |
Description |
|
operation |
Type: Operation Example
|
Example
{
"operation": {
"amount": "123.45",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"pointsAmount": "123.45",
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
}
No longer supported, please use an alternative and newer version.