- Request
- Responses
- 200 OK
- Body
- Delivery
- OrderResponseOperation
- Coupon
- Discount
- CartItemFeatures
- Measurements
- ItemQuantity
- PaymentsOperator
- TransferOperator
- Agent
- MarkQuantity
- Supplier
- ItemReceipt
- CartItem
- CartTotal
- Cart
- PaymentMethod
- TimeInterval
- FlexibleCustomerChoice
- FlexibleTimeIntervalsGridDescriptor
- FlexibleTimeIntervals
- CourierOption
- Location
- PickupSchedule
- PickupOption
- YandexDeliveryOption
- ShippingMethod
- BaseMerchantApiOrder
- OrderResponseData
/v1/orders/{order_id}ㅤ
Запрос на получение деталей заказа.
Запрос возвращает детали заказа и список транзакций по возврату.
Request
GET
https://pay.yandex.ru/api/merchant/v1/orders/{order_id}
Production
GET
https://sandbox.pay.yandex.ru/api/merchant/v1/orders/{order_id}
Sandbox
Path parameters
|
Name |
Description |
|
order_id |
Type: string Уникальный идентификатор заказа на стороне продавца, который был передан в /orders при создании заказа. Max length: Example: `` |
Responses
200 OK
Body
application/json
{
"code": 200,
"data": {
"delivery": {
"actualPrice": "123.45",
"created": "2025-01-01T00:00:00Z",
"price": "123.45",
"status": "NEW",
"updated": "2025-01-01T00:00:00Z"
},
"operations": [
{
"amount": "123.45",
"approvalCode": "example",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
],
"order": {
"cart": {
"cartId": "example",
"coupons": [
null
],
"discounts": [
null
],
"externalId": "example",
"items": [
null
],
"measurements": {},
"total": null
},
"coolingPeriodExpiresAt": "2025-09-26T14:55:10.390377+03:00",
"created": "2025-01-01T00:00:00Z",
"currencyCode": "RUB",
"isPrepayment": false,
"merchantId": "123e4567-e89b-12d3-a456-426614174000",
"metadata": "example",
"orderAmount": "123.45",
"orderId": "example",
"paymentMethod": {
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "CARD"
},
"paymentStatus": "PENDING",
"paymentUrl": "example",
"reason": "example",
"reasonCode": "NOT_ENOUGH_FUNDS",
"shippingMethod": {
"courierOption": null,
"methodType": "DIRECT",
"pickupOption": null,
"yandexDeliveryOption": null
},
"updated": "2025-01-01T00:00:00Z",
"fiscalContact": "test@example.com"
}
},
"status": "success"
}
|
Name |
Description |
|
code |
Type: unknown Default: |
|
data |
Type: OrderResponseData Example
|
|
status |
Type: string Default: Const: |
Delivery
|
Name |
Description |
|
price |
Type: string<double> Цена доставки для покупателя Example: |
|
actualPrice |
Type: string<double> Цена доставки для продавца Example: |
|
created |
Type: string<date-time> Дата и время создания доставки (ISO 8601) Example: |
|
status |
Type: string Статус доставки Default: Enum: |
|
updated |
Type: string<date-time> Дата и время обновления доставки (ISO 8601) Example: |
Example
{
"actualPrice": "123.45",
"created": "2025-01-01T00:00:00Z",
"price": "123.45",
"status": "NEW",
"updated": "2025-01-01T00:00:00Z"
}
OrderResponseOperation
|
Name |
Description |
|
amount |
Type: string<double> Сумма операции в фиатной валюте Example: |
|
operationId |
Type: string<uuid> Max length: Example: |
|
operationType |
Type: string Enum: |
|
orderId |
Type: string Уникальный идентификатор заказа на стороне продавца. Используется:
Max length: Example: |
|
approvalCode |
Type: string Код подтверждения транзакции от процессингового центра. Example: |
|
created |
Type: string<date-time> Дата и время создания операции (ISO 8601) Example: |
|
externalOperationId |
Type: string Идентификатор операции на стороне продавца Max length: Example: |
|
params |
Type: object Дополнительные параметры операции. Список полей отличается в зависимости от типа операции. При возврате сохраняются
При отмене сохраняется
Example
|
|
reason |
Type: string Причина ошибки Max length: Example: |
|
status |
Type: string Default: Enum: |
|
updated |
Type: string<date-time> Дата и время обновления операции (ISO 8601) Example: |
Example
{
"amount": "123.45",
"approvalCode": "example",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
Coupon
|
Name |
Description |
|
value |
Type: string Код купона Max length: Example: |
|
description |
Type: string Описание. Например, "Скидка 3%" Max length: Example: |
|
status |
Type: string Enum: Example: |
Example
{
"description": "example",
"status": "VALID",
"value": "example"
}
Discount
|
Name |
Description |
|
amount |
Type: string<double> Сумма скидки Example: |
|
description |
Type: string Текстовое описание Max length: Example: |
|
discountId |
Type: string Идентификатор скидки в системе мерчанта Max length: Example: |
Example
{
"amount": "123.45",
"description": "example",
"discountId": "example"
}
CartItemFeatures
|
Name |
Description |
|
pointsDisabled |
Type: boolean Не распределять баллы Плюса. Используется только при создании заказа. Если это поле не указано, то баллы будут распределены на товар Default: |
|
tariffModifier |
Type: string Модификатор тарифа для расчета комиссии. Определяет, какой тариф будет применяться при расчете комиссии за обработку позиции в корзине. Enum: Example: |
Example
{
"pointsDisabled": false,
"tariffModifier": "VERY_LOW"
}
Measurements
|
Name |
Description |
|
height |
Type: number Высота, в метрах |
|
length |
Type: number Длина, в метрах |
|
weight |
Type: number Вес, в килограммах |
|
width |
Type: number Ширина, в метрах |
Example
{
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
}
ItemQuantity
|
Name |
Description |
|
count |
Type: string<double> Количество товара в заказе. Это поле обязательно для формирования чека, если в личном кабинете подключена фискализация через Яндекс Пэй. Example: |
|
available |
Type: string<double> Максимально доступное количество товара Example: |
Example
{
"available": "123.45",
"count": "123.45"
}
PaymentsOperator
|
Name |
Description |
|
phones |
Type: string[] Example
|
Example
{
"phones": [
"example"
]
}
TransferOperator
|
Name |
Description |
|
address |
Type: string Max length: Example: |
|
inn |
Type: string Max length: Example: |
|
name |
Type: string Max length: Example: |
|
phones |
Type: string[] Example
|
Example
{
"address": "example",
"inn": "example",
"name": "example",
"phones": [
"example"
]
}
Agent
|
Name |
Description |
|
agentType |
Type: integer Признак агента по предмету расчета. См. значения Enum: |
|
operation |
Type: string Max length: Example: |
|
paymentsOperator |
Type: PaymentsOperator Example
|
|
phones |
Type: string[] Example
|
|
transferOperator |
Type: TransferOperator Example
|
Example
{
"agentType": 1,
"operation": "example",
"paymentsOperator": {
"phones": [
"example"
]
},
"phones": [
"example"
],
"transferOperator": {
"address": "example",
"inn": "example",
"name": "example",
"phones": [
"example"
]
}
}
MarkQuantity
|
Name |
Description |
|
denominator |
Type: integer |
|
numerator |
Type: integer |
Example
{
"denominator": 0,
"numerator": 0
}
Supplier
|
Name |
Description |
|
inn |
Type: string Max length: Example: |
|
name |
Type: string Max length: Example: |
|
phones |
Type: string[] Example
|
Example
{
"inn": "example",
"name": "example",
"phones": [
"example"
]
}
ItemReceipt
Данные для формирования чека.
|
Name |
Description |
|
tax |
Type: integer Ставка НДС. Описание значений: Ссылка. Это поле обязательно для формирования чека, если в личном кабинете подключена фискализация через Яндекс Пэй. Enum: |
|
agent |
Type: Agent Example
|
|
excise |
Type: string<double> Не должно содержать больше двух знаков после запятой. Например: 1.12, 5.1, 10, 11.00 . Example: |
|
markQuantity |
Type: MarkQuantity Example
|
|
measure |
Type: integer Описание значений: Ссылка Enum: |
|
paymentMethodType |
Type: integer Описание значений: Ссылка Enum: |
|
paymentSubjectType |
Type: integer Описание значений: Ссылка Enum: |
|
productCode |
Type: string<base64> Код товара (base64 кодированный массив от 1 до 32 байт) Example: |
|
supplier |
Type: Supplier Example
|
|
title |
Type: string Max length: Example: |
Example
{
"agent": {
"agentType": 1,
"operation": "example",
"paymentsOperator": {
"phones": [
"example"
]
},
"phones": [
"example"
],
"transferOperator": {
"address": "example",
"inn": "example",
"name": "example",
"phones": [
"example"
]
}
},
"excise": "123.45",
"markQuantity": {
"denominator": 0,
"numerator": 0
},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "example",
"supplier": {
"inn": "example",
"name": "example",
"phones": [
"example"
]
},
"tax": 1,
"title": "example"
}
CartItem
|
Name |
Description |
|
productId |
Type: string Id товара в системе продавца. В параметрах запроса каждый идентификатор товара Max length: Example: |
|
quantity |
All of 1 type
Количество товара в заказе Example
|
|
description |
Type: string Описание товара Max length: Example: |
|
discountedUnitPrice |
Type: string<double> Цена за единицу товара с учетом скидок на позицию Example: |
|
features |
All of 1 type
Промо параметры товара Example
|
|
finalPrice |
Type: string<double> Цена за единицу товара с учетом всех скидок на позицию и на корзину Example: |
|
measurements |
All of 1 type
Размеры и вес товара. Обязательно для товара типа Example
|
|
pointsAmount |
Type: string<double> Количество баллов Плюса Поле только для чтения. Переданные значения будут проигнорированы. Example: |
|
receipt |
All of 1 type
Данные для формирования чека. Example
|
|
skuId |
Type: string Уникальный id, который описывает единицу ассортимента. Необходим для применения индивидуального тарифа. Max length: Example: |
|
subtotal |
Type: string<double> Суммарная цена за позицию без учета скидок Example: |
|
title |
Type: string Наименование товара Max length: Example: |
|
total |
Type: string<double> Итоговая цена позиции с учетом примененных скидок. Важно Убедитесь, что цена за единицу товара ( Чтобы избежать ошибок, вынесите товары в отдельные позиции с разными ПримерПравильно:
Цена за единицу Неправильно:
Цена за единицу В таком случае разбейте на две позиции:
Example: |
|
type |
Type: string Тип товара. Важен для интеграции с доставками Default: Enum: |
|
unitPrice |
Type: string<double> Полная цена за единицу товара без учетка скидки Example: |
Example
{
"description": "example",
"discountedUnitPrice": "123.45",
"features": {
"pointsDisabled": false,
"tariffModifier": "VERY_LOW"
},
"finalPrice": "123.45",
"measurements": {
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
},
"pointsAmount": "123.45",
"productId": "example",
"quantity": {
"available": "123.45",
"count": "123.45"
},
"receipt": {
"agent": {
"agentType": 1,
"operation": "example",
"paymentsOperator": {
"phones": [
null
]
},
"phones": [
"example"
],
"transferOperator": {
"address": "example",
"inn": "example",
"name": "example",
"phones": [
null
]
}
},
"excise": "123.45",
"markQuantity": {
"denominator": 0,
"numerator": 0
},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "example",
"supplier": {
"inn": "example",
"name": "example",
"phones": [
"example"
]
},
"tax": 1,
"title": "example"
},
"skuId": "example",
"subtotal": "123.45",
"title": "example",
"total": "123.45",
"type": "UNSPECIFIED",
"unitPrice": "123.45"
}
CartTotal
|
Name |
Description |
|
amount |
Type: string<double> Стоимость корзины с учетом всех скидок. Это поле обязательно для формирования чека, если в личном кабинете подключена фискализация через Яндекс Пэй. Example: |
|
externalAmount |
Type: string<double> Сумма внешней оплаты (сертификаты, подарочные карты, баллы лояльности). Может быть не указана, равна 0 или больше 0. Ограничения:
Example: |
|
pointsAmount |
Type: string<double> Количество баллов Плюса Поле только для чтения. Переданные значения будут проигнорированы. Example: |
Example
{
"amount": "123.45",
"externalAmount": "123.45",
"pointsAmount": "123.45"
}
Cart
|
Name |
Description |
|
items |
Type: CartItem[] Позиция корзины Example
|
|
cartId |
Type: string Внутренний идентификатор корзины на стороне Яндекс Пэй. Max length: Example: |
|
coupons |
Type: Coupon[] Купоны, примененные к корзине Example
|
|
discounts |
Type: Discount[] Скидки, примененные к корзине Example
|
|
externalId |
Type: string Идентификатор корзины на стороне продавца. Max length: Example: |
|
measurements |
Type: Measurements Example
|
|
total |
All of 1 type
Итоговая стоимость корзины, которая пойдет в оплату Default: |
Example
{
"cartId": "example",
"coupons": [
{
"description": "example",
"status": "VALID",
"value": "example"
}
],
"discounts": [
{
"amount": "123.45",
"description": "example",
"discountId": "example"
}
],
"externalId": "example",
"items": [
{
"description": "example",
"discountedUnitPrice": "123.45",
"features": {
"pointsDisabled": false,
"tariffModifier": "VERY_LOW"
},
"finalPrice": "123.45",
"measurements": {
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
},
"pointsAmount": "123.45",
"productId": "example",
"quantity": {
"available": "123.45",
"count": "123.45"
},
"receipt": {
"agent": {},
"excise": "123.45",
"markQuantity": {},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "example",
"supplier": {},
"tax": 1,
"title": "example"
},
"skuId": "example",
"subtotal": "123.45",
"title": "example",
"total": "123.45",
"type": "UNSPECIFIED",
"unitPrice": "123.45"
}
],
"measurements": null,
"total": null
}
PaymentMethod
|
Name |
Description |
|
methodType |
Type: string Enum: |
|
cardLast4 |
Type: string Max length: Example: |
|
cardNetwork |
Type: string Платежная система Enum: Example: |
Example
{
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "CARD"
}
TimeInterval
|
Name |
Description |
|
end |
Type: string Время конца интервала Example: |
|
start |
Type: string Время начала интервала Example: |
Example
{
"end": "example",
"start": "example"
}
FlexibleCustomerChoice
|
Name |
Description |
|
date |
Type: string<date> Example: |
|
time |
Type: TimeInterval Example
|
Example
{
"date": "2025-01-01",
"time": {
"end": "example",
"start": "example"
}
}
FlexibleTimeIntervalsGridDescriptor
|
Name |
Description |
|
duration |
Type: string Продолжительность каждого интервала Example: |
|
end |
Type: string Максимальное время начала самого последнего интервала Example: |
|
start |
Type: string Время начала самого первого интервала Example: |
|
step |
Type: string Разница во времени между началами двух соседних интервалов Example: |
Example
{
"duration": "example",
"end": "example",
"start": "example",
"step": "example"
}
FlexibleTimeIntervals
|
Name |
Description |
|
type |
Type: string Если указан тип Enum: |
|
grid |
All of 1 type
Кодирует интервалы в виде сетки. Используйте этот формат, если необходимо задать больше 20 интервалов доставки.
Пример: Example
|
|
values |
Type: TimeInterval[] Задает список интервалов напрямую. Подходит для небольшого количества интервалов доставки. Рекомендуемое максимальная количество интервалов - 20 Example
|
Example
{
"grid": {
"duration": "example",
"end": "example",
"start": "example",
"step": "example"
},
"type": "GRID",
"values": [
{
"end": "example",
"start": "example"
}
]
}
CourierOption
|
Name |
Description |
|
amount |
Type: string<double> Стоимость доставки Example: |
|
category |
Type: string Enum: |
|
courierOptionId |
Type: string id выбранного варианта доставки в системе продавца Max length: Example: |
|
title |
Type: string Название способа доставки. Показывается пользователю в списке вариантов Max length: Example: |
|
allowedPaymentMethods |
Type: string[] Индивидуальные методы оплаты для метода доставки. Этот параметр нужно использовать, если нужно ограничить методы оплаты, указанные в Example
|
|
customerChoice |
All of 1 type
Выбранные пользователем дата и интервал. Только для Example
|
|
fromDate |
Type: string<date> Ближайшая дата доставки для Example: |
|
fromTime |
Type: string Начало интервала времени доставки. Только для Example: |
|
provider |
Type: string Тип службы доставки. Enum: Example: |
|
receipt |
All of 1 type
Данные для формирования чека. Example
|
|
timeIntervals |
All of 1 type
Кодирует интервалы времени доставки, доступные для выбора. Только для Example
|
|
toDate |
Type: string<date> Самая поздняя дата доставки для Example: |
|
toTime |
Type: string Конец интервала времени доставки. Только для Example: |
|
type |
Type: string Тип опции.
Для
Default: Enum: |
Example
{
"allowedPaymentMethods": [
"CARD"
],
"amount": "123.45",
"category": "EXPRESS",
"courierOptionId": "example",
"customerChoice": {
"date": "2025-01-01",
"time": {
"end": "example",
"start": "example"
}
},
"fromDate": "2025-01-01",
"fromTime": "example",
"provider": "BOXBERRY",
"receipt": {
"agent": {
"agentType": 1,
"operation": "example",
"paymentsOperator": {
"phones": [
null
]
},
"phones": [
"example"
],
"transferOperator": {
"address": "example",
"inn": "example",
"name": "example",
"phones": [
null
]
}
},
"excise": "123.45",
"markQuantity": {
"denominator": 0,
"numerator": 0
},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "example",
"supplier": {
"inn": "example",
"name": "example",
"phones": [
"example"
]
},
"tax": 1,
"title": "example"
},
"timeIntervals": {
"grid": {
"duration": "example",
"end": "example",
"start": "example",
"step": "example"
},
"type": "GRID",
"values": [
null
]
},
"title": "example",
"toDate": "2025-01-01",
"toTime": "example",
"type": "PLAIN"
}
Location
|
Name |
Description |
|
latitude |
Type: number |
|
longitude |
Type: number |
Example
{
"latitude": 0.5,
"longitude": 0.5
}
PickupSchedule
|
Name |
Description |
|
fromTime |
Type: string HH:mm, "08:00" Example: |
|
label |
Type: string Например, "пн-пт" Max length: Example: |
|
toTime |
Type: string HH:mm, "20:00" Example: |
Example
{
"fromTime": "example",
"label": "example",
"toTime": "example"
}
PickupOption
|
Name |
Description |
|
address |
Type: string Адрес в виде строки Max length: Example: |
|
location |
Type: Location Example
|
|
pickupPointId |
Type: string Уникальный id точки самовывоза в системе продавца Max length: Example: |
|
title |
Type: string Название точки самовывоза Max length: Example: |
|
allowedPaymentMethods |
Type: string[] Индивидуальные методы оплаты для выбранного способа самовывоза. Доступные методы оплаты заказа при выбранном способе самовывоза. Этот параметр нужно использовать, если нужно ограничить методы оплаты, указанные в Example
|
|
amount |
Type: string<double> Стоимость доставки в точку Example: |
|
description |
Type: string Дополнительное описание Max length: Example: |
|
fromDate |
Type: string<date> YYYY-MM-DD. Ближайшая возможная дата доставки Example: |
|
phones |
Type: string[] Телефоны для связи Example
|
|
provider |
Type: string Тип точки вывоза. Enum: |
|
receipt |
All of 1 type
Данные для формирования чека. Example
|
|
schedule |
Type: PickupSchedule[] График работы точки Example
|
|
storagePeriod |
Type: integer Опционально. Срок хранения товара в точке самовывоза в днях |
|
toDate |
Type: string<date> YYYY-MM-DD. Самая поздняя дата доставки Example: |
Example
{
"address": "example",
"allowedPaymentMethods": [
"CARD"
],
"amount": "123.45",
"description": "example",
"fromDate": "2025-01-01",
"location": {
"latitude": 0.5,
"longitude": 0.5
},
"phones": [
"example"
],
"pickupPointId": "example",
"provider": "YANDEX_MARKET",
"receipt": {
"agent": {
"agentType": 1,
"operation": "example",
"paymentsOperator": {
"phones": [
null
]
},
"phones": [
"example"
],
"transferOperator": {
"address": "example",
"inn": "example",
"name": "example",
"phones": [
null
]
}
},
"excise": "123.45",
"markQuantity": {
"denominator": 0,
"numerator": 0
},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "example",
"supplier": {
"inn": "example",
"name": "example",
"phones": [
"example"
]
},
"tax": 1,
"title": "example"
},
"schedule": [
{
"fromTime": "example",
"label": "example",
"toTime": "example"
}
],
"storagePeriod": 0,
"title": "example",
"toDate": "2025-01-01"
}
YandexDeliveryOption
|
Name |
Description |
|
amount |
Type: string<double> Стоимость доставки Example: |
|
category |
Type: string Enum: |
|
title |
Type: string Название способа доставки. Показывается пользователю в списке вариантов Max length: Example: |
|
yandexDeliveryOptionId |
Type: string Id предложения Яндекс Доставки Max length: Example: |
|
allowedPaymentMethods |
Type: string[] Индивидуальные методы оплаты для метода доставки. Этот параметр нужно использовать, если нужно ограничить методы оплаты, указанные в Example
|
|
fromDatetime |
Type: string<date-time> Example: |
|
receipt |
All of 1 type
Данные для формирования чека. Example
|
|
toDatetime |
Type: string<date-time> Example: |
Example
{
"allowedPaymentMethods": [
"CARD"
],
"amount": "123.45",
"category": "EXPRESS",
"fromDatetime": "2025-01-01T00:00:00Z",
"receipt": {
"agent": {
"agentType": 1,
"operation": "example",
"paymentsOperator": {
"phones": [
null
]
},
"phones": [
"example"
],
"transferOperator": {
"address": "example",
"inn": "example",
"name": "example",
"phones": [
null
]
}
},
"excise": "123.45",
"markQuantity": {
"denominator": 0,
"numerator": 0
},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "example",
"supplier": {
"inn": "example",
"name": "example",
"phones": [
"example"
]
},
"tax": 1,
"title": "example"
},
"title": "example",
"toDatetime": "2025-01-01T00:00:00Z",
"yandexDeliveryOptionId": "example"
}
ShippingMethod
|
Name |
Description |
|
methodType |
Type: string Enum: |
|
courierOption |
All of 1 type
если methodType == COURIER Example
|
|
pickupOption |
All of 1 type
если methodType == PICKUP Example
|
|
yandexDeliveryOption |
All of 1 type
если methodType == YANDEX_DELIVERY Example
|
Example
{
"courierOption": {
"allowedPaymentMethods": [
"CARD"
],
"amount": "123.45",
"category": "EXPRESS",
"courierOptionId": "example",
"customerChoice": {
"date": "2025-01-01",
"time": {}
},
"fromDate": "2025-01-01",
"fromTime": "example",
"provider": "BOXBERRY",
"receipt": {
"agent": {},
"excise": "123.45",
"markQuantity": {},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "example",
"supplier": {},
"tax": 1,
"title": "example"
},
"timeIntervals": {
"grid": null,
"type": "GRID",
"values": [
null
]
},
"title": "example",
"toDate": "2025-01-01",
"toTime": "example",
"type": "PLAIN"
},
"methodType": "DIRECT",
"pickupOption": {
"address": "example",
"allowedPaymentMethods": [
"CARD"
],
"amount": "123.45",
"description": "example",
"fromDate": "2025-01-01",
"location": {
"latitude": 0.5,
"longitude": 0.5
},
"phones": [
"example"
],
"pickupPointId": "example",
"provider": "YANDEX_MARKET",
"receipt": null,
"schedule": [
{
"fromTime": "example",
"label": "example",
"toTime": "example"
}
],
"storagePeriod": 0,
"title": "example",
"toDate": "2025-01-01"
},
"yandexDeliveryOption": {
"allowedPaymentMethods": [
"CARD"
],
"amount": "123.45",
"category": "EXPRESS",
"fromDatetime": "2025-01-01T00:00:00Z",
"receipt": null,
"title": "example",
"toDatetime": "2025-01-01T00:00:00Z",
"yandexDeliveryOptionId": "example"
}
}
BaseMerchantApiOrder
|
Name |
Description |
|
cart |
All of 1 type
Корзина Example
|
|
currencyCode |
Type: string Трехбуквенный код валюты заказа (ISO 4217) Enum: Max length: |
|
coolingPeriodExpiresAt |
Type: string<date-time> Дата и время окончания периода «охлаждения» (ISO 8601). Доступен только в статусе После перехода заказа в другие статусы — значение Важно Наличие поля Example: |
|
created |
Type: string<date-time> Дата и время создания заказа (ISO 8601) Example: |
|
fiscalContact |
Type: string Контактные данные покупателя (почта или номер телефона) для отправки электронного фискального чека. Рекомендуемые форматы для телефона: Все символы, кроме цифр, игнорируются. Номера, начинающиеся с Например, Example: |
|
isPrepayment |
Type: boolean Если Используется в механике Сплит c оплатой «при получении». Default: |
|
merchantId |
Type: string<uuid> Max length: Example: |
|
metadata |
Type: string Произвольные данные, переданные при инициализации кнопки Max length: Example: |
|
orderAmount |
Type: string<double> Полная стоимость заказа к оплате с учетом возвратов, доставки, скидок и промокодов Example: |
|
orderId |
Type: string Уникальный идентификатор заказа на стороне продавца. Используется:
Max length: Example: |
|
paymentMethod |
Type: PaymentMethod Example
|
|
paymentStatus |
Type: string Статус платежа в заказе. Подробнее читайте в разделе Статусы платежей. Не может быть Enum: Example: |
|
paymentUrl |
Type: string Ссылка на оплату заказа Max length: Example: |
|
reason |
Type: string Причина ошибки (применимо для статусов VOIDED/FAILED) Max length: Example: |
|
reasonCode |
Type: string | null Код ошибки (применимо для статусов Используйте, чтобы отобразить ошибку для покупателя.
Enum: Example: |
|
shippingMethod |
All of 1 type
Выбранный способ доставки Example
|
|
updated |
Type: string<date-time> Дата и время обновления заказа (ISO 8601) Example: |
Example
{
"cart": {
"cartId": "example",
"coupons": [
{
"description": "example",
"status": "VALID",
"value": "example"
}
],
"discounts": [
{
"amount": "123.45",
"description": "example",
"discountId": "example"
}
],
"externalId": "example",
"items": [
{
"description": "example",
"discountedUnitPrice": "123.45",
"features": null,
"finalPrice": "123.45",
"measurements": null,
"pointsAmount": "123.45",
"productId": "example",
"quantity": null,
"receipt": null,
"skuId": "example",
"subtotal": "123.45",
"title": "example",
"total": "123.45",
"type": "UNSPECIFIED",
"unitPrice": "123.45"
}
],
"measurements": {
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
},
"total": null
},
"coolingPeriodExpiresAt": "2025-09-26T14:55:10.390377+03:00",
"created": "2025-01-01T00:00:00Z",
"currencyCode": "RUB",
"isPrepayment": false,
"merchantId": "123e4567-e89b-12d3-a456-426614174000",
"metadata": "example",
"orderAmount": "123.45",
"orderId": "example",
"paymentMethod": {
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "CARD"
},
"paymentStatus": "PENDING",
"paymentUrl": "example",
"reason": "example",
"reasonCode": "NOT_ENOUGH_FUNDS",
"shippingMethod": {
"courierOption": {
"allowedPaymentMethods": [
null
],
"amount": "123.45",
"category": "EXPRESS",
"courierOptionId": "example",
"customerChoice": null,
"fromDate": "2025-01-01",
"fromTime": "example",
"provider": "BOXBERRY",
"receipt": null,
"timeIntervals": null,
"title": "example",
"toDate": "2025-01-01",
"toTime": "example",
"type": "PLAIN"
},
"methodType": "DIRECT",
"pickupOption": {
"address": "example",
"allowedPaymentMethods": [
null
],
"amount": "123.45",
"description": "example",
"fromDate": "2025-01-01",
"location": {},
"phones": [
null
],
"pickupPointId": "example",
"provider": "YANDEX_MARKET",
"receipt": null,
"schedule": [
null
],
"storagePeriod": 0,
"title": "example",
"toDate": "2025-01-01"
},
"yandexDeliveryOption": {
"allowedPaymentMethods": [
null
],
"amount": "123.45",
"category": "EXPRESS",
"fromDatetime": "2025-01-01T00:00:00Z",
"receipt": null,
"title": "example",
"toDatetime": "2025-01-01T00:00:00Z",
"yandexDeliveryOptionId": "example"
}
},
"updated": "2025-01-01T00:00:00Z",
"fiscalContact": "test@example.com"
}
OrderResponseData
|
Name |
Description |
|
delivery |
Type: Delivery Example
|
|
operations |
Type: OrderResponseOperation[] Example
|
|
order |
Type: BaseMerchantApiOrder Example
|
Example
{
"delivery": {
"actualPrice": "123.45",
"created": "2025-01-01T00:00:00Z",
"price": "123.45",
"status": "NEW",
"updated": "2025-01-01T00:00:00Z"
},
"operations": [
{
"amount": "123.45",
"approvalCode": "example",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
],
"order": {
"cart": {
"cartId": "example",
"coupons": [
{}
],
"discounts": [
{}
],
"externalId": "example",
"items": [
{}
],
"measurements": {
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
},
"total": null
},
"coolingPeriodExpiresAt": "2025-09-26T14:55:10.390377+03:00",
"created": "2025-01-01T00:00:00Z",
"currencyCode": "RUB",
"isPrepayment": false,
"merchantId": "123e4567-e89b-12d3-a456-426614174000",
"metadata": "example",
"orderAmount": "123.45",
"orderId": "example",
"paymentMethod": {
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "CARD"
},
"paymentStatus": "PENDING",
"paymentUrl": "example",
"reason": "example",
"reasonCode": "NOT_ENOUGH_FUNDS",
"shippingMethod": {
"courierOption": null,
"methodType": "DIRECT",
"pickupOption": null,
"yandexDeliveryOption": null
},
"updated": "2025-01-01T00:00:00Z",
"fiscalContact": "test@example.com"
}
}