/v1/operations/

Запрос на получение деталей операций авторизации, списания, возврата или отмены платежа.

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

Type

Description

external_operation_id*

string

Идентификатор операции на стороне продавца

Responses

200 OK

Body

application/json
{
    "code": 200,
    "data": {
        "operation": {
            "amount": "123.45",
            "created": "2022-12-29T18:02:01Z",
            "externalOperationId": "string",
            "operationId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",
            "operationType": "AUTHORIZE",
            "orderId": "string",
            "params": {},
            "reason": "string",
            "status": "PENDING",
            "updated": "2022-12-29T18:02:01Z"
        }
    },
    "status": "success"
}

Name

Type

Description

code

number

Default: 200

data

OperationResponseData

status

string

Enum: success
Default: success

OperationResponseData

Name

Type

Description

operation

Operation

Operation

Name

Type

Description

amount*

string<double>

Сумма операции
Example: 123.45

created

string<date-time>

Дата и время создания операции (ISO 8601)

externalOperationId

string

Идентификатор операции на стороне продавца
Max length: 2048

operationId*

string<uuid>

Max length: 2048

operationType*

string

Enum: AUTHORIZE, BIND_CARD, REFUND, CAPTURE, VOID, RECURRING

orderId*

string

Max length: 2048

params

object

reason

string

Причина ошибки
Max length: 2048

status

string

Enum: PENDING, SUCCESS, FAIL
Default: PENDING

updated

string<date-time>

Дата и время обновления операции (ISO 8601)

Предыдущая
Следующая