/v1/order/render ⦸

Важно

Этот метод устарел. Не используйте его.

/v1/order/render

Запрос информации для отображения корзины.

В параметрах запроса передаются идентификаторы товаров и их количество или номер заказа. В ответе возвращаются параметры и контент для формы Яндекс Пэй.

На входе идентификаторы товаров и их количество.
Имеется возможность передать произвольные данные в поле metadata с фронтенда продавца на бэкенд магазина. Метод вызывается при изменении состава корзины, выборе адреса, способа доставки, вводе промокодов. Продавцу необходимо проверять состав заказа и заполнять детальную информацию для товаров, способов доставки и промокодов, пересчитывать стоимости товаров и всего заказа.

В ответе ожидаются детальная информация по заказу и товарам:

  • Доступные типы способов оплаты и доставки в availablePaymentMethods, shipping.availableMethods
  • Дополнительные данные пользователя необходимые для оформления заказа, в requiredFields
  • Стоимость каждого товара и название. Опционально, максимально доступное количество товара
  • Информация о скидках, примененных к корзине, в discounts

Request

POST

https://example.merchant.ru/v1/order/render

Production

POST

https://sandbox.example.merchant.ru/v1/order/render

Sandbox

Body

application/json
{
  "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,
        "measurements": null,
        "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
  },
  "currencyCode": "RUB",
  "merchantId": "123e4567-e89b-12d3-a456-426614174000",
  "metadata": "example",
  "orderId": "example",
  "paymentMethod": {
    "cardLast4": "example",
    "cardNetwork": "AMEX",
    "methodType": "CARD"
  },
  "shippingAddress": {
    "addressLine": "example",
    "building": "example",
    "comment": "example",
    "country": "example",
    "district": "example",
    "entrance": "example",
    "floor": "example",
    "intercom": "example",
    "locale": "example",
    "locality": "example",
    "location": {
      "latitude": 0.5,
      "longitude": 0.5
    },
    "region": "example",
    "room": "example",
    "street": "example",
    "zip": "example"
  },
  "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": null,
      "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"
    }
  }
}

Name

Description

cart

All of 1 type
  • Type: CartWithoutFinalPrice

    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"
          },
          "measurements": {
            "height": 0.5,
            "length": 0.5,
            "weight": 0.5,
            "width": 0.5
          },
          "productId": "example",
          "quantity": {
            "available": "123.45",
            "count": "123.45"
          },
          "receipt": {
            "agent": null,
            "excise": "123.45",
            "markQuantity": null,
            "measure": 0,
            "paymentMethodType": 1,
            "paymentSubjectType": 1,
            "productCode": "example",
            "supplier": null,
            "tax": 1,
            "title": "example"
          },
          "skuId": "example",
          "subtotal": "123.45",
          "title": "example",
          "total": "123.45",
          "type": "UNSPECIFIED",
          "unitPrice": "123.45"
        }
      ],
      "measurements": null,
      "total": null
    }
    

Корзина c ценами, размером и весом товаров

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": null,
      "measurements": null,
      "productId": "example",
      "quantity": null,
      "receipt": null,
      "skuId": "example",
      "subtotal": "123.45",
      "title": "example",
      "total": "123.45",
      "type": "UNSPECIFIED",
      "unitPrice": "123.45"
    }
  ],
  "measurements": null,
  "total": null
}

currencyCode

Type: string

Трехбуквенный код валюты заказа (ISO 4217)

Enum: RUB, UZS

merchantId

Type: string<uuid>

Example: 123e4567-e89b-12d3-a456-426614174000

metadata

Type: string

Произвольные данные, переданные при инициализации кнопки

Example: example

orderId

Type: string

Id существующего заказа на стороне продавца, переданный при инициализации кнопки

Example: example

paymentMethod

All of 1 type
  • Type: PaymentMethod

    Example
    {
      "cardLast4": "example",
      "cardNetwork": "AMEX",
      "methodType": "CARD"
    }
    

Выбранный способ оплаты

Example
{
  "cardLast4": "example",
  "cardNetwork": "AMEX",
  "methodType": "CARD"
}

shippingAddress

All of 1 type
  • Type: Address

    Example
    {
      "addressLine": "example",
      "building": "example",
      "comment": "example",
      "country": "example",
      "district": "example",
      "entrance": "example",
      "floor": "example",
      "intercom": "example",
      "locale": "example",
      "locality": "example",
      "location": {
        "latitude": 0.5,
        "longitude": 0.5
      },
      "region": "example",
      "room": "example",
      "street": "example",
      "zip": "example"
    }
    

Адрес доставки доступен, если выбран метод COURIER

Example
{
  "addressLine": "example",
  "building": "example",
  "comment": "example",
  "country": "example",
  "district": "example",
  "entrance": "example",
  "floor": "example",
  "intercom": "example",
  "locale": "example",
  "locality": "example",
  "location": {
    "latitude": 0.5,
    "longitude": 0.5
  },
  "region": "example",
  "room": "example",
  "street": "example",
  "zip": "example"
}

shippingMethod

All of 1 type
  • Type: ShippingMethod

    Example
    {
      "courierOption": {
        "allowedPaymentMethods": [
          "CARD"
        ],
        "amount": "123.45",
        "category": "EXPRESS",
        "courierOptionId": "example",
        "customerChoice": {
          "date": "2025-01-01",
          "time": null
        },
        "fromDate": "2025-01-01",
        "fromTime": "example",
        "provider": "BOXBERRY",
        "receipt": {
          "agent": null,
          "excise": "123.45",
          "markQuantity": null,
          "measure": 0,
          "paymentMethodType": 1,
          "paymentSubjectType": 1,
          "productCode": "example",
          "supplier": null,
          "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"
      }
    }
    

Выбранный способ доставки

Example
{
  "courierOption": {
    "allowedPaymentMethods": [
      "CARD"
    ],
    "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": [
      "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": [
      {}
    ],
    "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"
  }
}

Coupon

Name

Description

value

Type: string

Код купона

Example: example

description

Type: string

Описание. Например, "Скидка 3%"

Example: example

status

Type: string

Enum: VALID, INVALID, EXPIRED, null

Example: VALID

Example
{
  "description": "example",
  "status": "VALID",
  "value": "example"
}

Discount

Name

Description

amount

Type: string<double>

Сумма скидки

Example: 123.45

description

Type: string

Текстовое описание

Example: example

discountId

Type: string

Идентификатор скидки в системе мерчанта

Example: example

Example
{
  "amount": "123.45",
  "description": "example",
  "discountId": "example"
}

CartItemFeatures

Name

Description

pointsDisabled

Type: boolean

Не распределять баллы Плюса. Используется только при создании заказа. Если это поле не указано, то баллы будут распределены на товар

Default: false

tariffModifier

Type: string

Модификатор тарифа для расчета комиссии. Определяет, какой тариф будет применяться при расчете комиссии за обработку позиции в корзине.

Enum: VERY_LOW, LOW, MEDIUM, HIGH, VERY_HIGH, null

Example: VERY_LOW

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: 123.45

available

Type: string<double>

Максимально доступное количество товара

Example: 123.45

Example
{
  "available": "123.45",
  "count": "123.45"
}

PaymentsOperator

Name

Description

phones

Type: string[]

Example
[
  "example"
]
Example
{
  "phones": [
    "example"
  ]
}

TransferOperator

Name

Description

address

Type: string

Example: example

inn

Type: string

Example: example

name

Type: string

Example: example

phones

Type: string[]

Example
[
  "example"
]
Example
{
  "address": "example",
  "inn": "example",
  "name": "example",
  "phones": [
    "example"
  ]
}

Agent

Name

Description

agentType

Type: integer

Признак агента по предмету расчёта. См. значения

Enum: 1, 2, 3, 4, 5, 6, 7

operation

Type: string

Example: example

paymentsOperator

Type: PaymentsOperator

Example
{
  "phones": [
    "example"
  ]
}

phones

Type: string[]

Example
[
  "example"
]

transferOperator

Type: TransferOperator

Example
{
  "address": "example",
  "inn": "example",
  "name": "example",
  "phones": [
    "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

Example: example

name

Type: string

Example: example

phones

Type: string[]

Example
[
  "example"
]
Example
{
  "inn": "example",
  "name": "example",
  "phones": [
    "example"
  ]
}

ItemReceipt

Name

Description

tax

Type: integer

Описание значений: Ссылка

Enum: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

agent

Type: Agent

Example
{
  "agentType": 1,
  "operation": "example",
  "paymentsOperator": {
    "phones": [
      "example"
    ]
  },
  "phones": [
    "example"
  ],
  "transferOperator": {
    "address": "example",
    "inn": "example",
    "name": "example",
    "phones": [
      "example"
    ]
  }
}

excise

Type: string<double>

Не должно содержать больше двух знаков после запятой. Например: 1.12, 5.1, 10, 11.00 .

Example: 123.45

markQuantity

Type: MarkQuantity

Example
{
  "denominator": 0,
  "numerator": 0
}

measure

Type: integer

Описание значений: Ссылка

Enum: 0, 10, 11, 12, 20, 21, 22, 30, 31, 32, 40, 41, 42, 50, 51, 70, 71, 72, 73, 80, 81, 82, 83, 255, null

paymentMethodType

Type: integer

Описание значений: Ссылка

Enum: 1, 2, 3, 4, 5, 6, 7, null

paymentSubjectType

Type: integer

Описание значений: Ссылка

Enum: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, null

productCode

Type: string<base64>

Код товара (base64 кодированный массив от 1 до 32 байт)

Example: example

supplier

Type: Supplier

Example
{
  "inn": "example",
  "name": "example",
  "phones": [
    "example"
  ]
}

title

Type: string

Example: 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"
}

CartItemWithoutFinalPrice

Name

Description

productId

Type: string

Id товара в системе продавца. В параметрах запроса каждый идентификатор товара productId должен быть уникальным

Example: example

quantity

All of 1 type
  • Type: ItemQuantity

    Example
    {
      "available": "123.45",
      "count": "123.45"
    }
    

Количество товара в заказе

Example
{
  "available": "123.45",
  "count": "123.45"
}

description

Type: string

Описание товара

Example: example

discountedUnitPrice

Type: string<double>

Цена за единицу товара с учётом скидок на позицию

Example: 123.45

features

All of 1 type
  • Type: CartItemFeatures

    Example
    {
      "pointsDisabled": false,
      "tariffModifier": "VERY_LOW"
    }
    

Промо параметры товара

Example
{
  "pointsDisabled": false,
  "tariffModifier": "VERY_LOW"
}

measurements

All of 1 type
  • Type: Measurements

    Example
    {
      "height": 0.5,
      "length": 0.5,
      "weight": 0.5,
      "width": 0.5
    }
    

Размеры и вес товара. Обязательно для товара типа PHYSICAL

Example
{
  "height": 0.5,
  "length": 0.5,
  "weight": 0.5,
  "width": 0.5
}

receipt

All of 1 type
  • Type: ItemReceipt

    Example
    {
      "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"
    }
    

Данные для формирования чека

Example
{
  "agent": {
    "agentType": 1,
    "operation": "example",
    "paymentsOperator": null,
    "phones": [
      "example"
    ],
    "transferOperator": 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

Type: string

Уникальный id, который описывает единицу ассортимента. Необходим для применения индивидуального тарифа.

Example: example

subtotal

Type: string<double>

Суммарная цена за позицию без учета скидок

Example: 123.45

title

Type: string

Наименование товара

Example: example

total

Type: string<double>

Суммарная цена за позицию с учётом скидок на позицию

Example: 123.45

type

Type: string

Тип товара. Важен для интеграции с доставками

Default: UNSPECIFIED

Enum: PHYSICAL, DIGITAL, UNSPECIFIED

unitPrice

Type: string<double>

Полная цена за единицу товара без учетка скидки

Example: 123.45

Example
{
  "description": "example",
  "discountedUnitPrice": "123.45",
  "features": {
    "pointsDisabled": false,
    "tariffModifier": "VERY_LOW"
  },
  "measurements": {
    "height": 0.5,
    "length": 0.5,
    "weight": 0.5,
    "width": 0.5
  },
  "productId": "example",
  "quantity": {
    "available": "123.45",
    "count": "123.45"
  },
  "receipt": {
    "agent": {
      "agentType": 1,
      "operation": "example",
      "paymentsOperator": null,
      "phones": [
        null
      ],
      "transferOperator": null
    },
    "excise": "123.45",
    "markQuantity": {
      "denominator": 0,
      "numerator": 0
    },
    "measure": 0,
    "paymentMethodType": 1,
    "paymentSubjectType": 1,
    "productCode": "example",
    "supplier": {
      "inn": "example",
      "name": "example",
      "phones": [
        null
      ]
    },
    "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: 123.45

externalAmount

Type: string<double>

Сумма внешнего покрытия (сертификаты, подарочные карты).

Example: 123.45

Example
{
  "amount": "123.45",
  "externalAmount": "123.45"
}

CartWithoutFinalPrice

Name

Description

cartId

Type: string

Внутренний идентификатор корзины Яндекс Пэй.

Бэкенд магазина должен использовать этот параметр как идентификатор корзины покупателя и как ключ идемпотентности для запроса /order/create. Если бэкенд магазина получает повторный запрос /order/create, то необходимо вернуть уже созданный номер заказа. На одну корзину (cartId) бэкенд магазина может создать не больше одного заказа (orderId).

Example: example

coupons

Type: Coupon[]

Купоны, применённые к корзине

Example
[
  {
    "description": "example",
    "status": "VALID",
    "value": "example"
  }
]

discounts

Type: Discount[]

Скидки, применённые к корзине

Example
[
  {
    "amount": "123.45",
    "description": "example",
    "discountId": "example"
  }
]

externalId

Type: string

Переданный продавцом идентификатор корзины

Example: example

items

Type: CartItemWithoutFinalPrice[]

Example
[
  {
    "description": "example",
    "discountedUnitPrice": "123.45",
    "features": {
      "pointsDisabled": false,
      "tariffModifier": "VERY_LOW"
    },
    "measurements": {
      "height": 0.5,
      "length": 0.5,
      "weight": 0.5,
      "width": 0.5
    },
    "productId": "example",
    "quantity": {
      "available": "123.45",
      "count": "123.45"
    },
    "receipt": {
      "agent": null,
      "excise": "123.45",
      "markQuantity": null,
      "measure": 0,
      "paymentMethodType": 1,
      "paymentSubjectType": 1,
      "productCode": "example",
      "supplier": null,
      "tax": 1,
      "title": "example"
    },
    "skuId": "example",
    "subtotal": "123.45",
    "title": "example",
    "total": "123.45",
    "type": "UNSPECIFIED",
    "unitPrice": "123.45"
  }
]

measurements

Type: Measurements

Example
{
  "height": 0.5,
  "length": 0.5,
  "weight": 0.5,
  "width": 0.5
}

total

All of 1 type
  • Type: CartTotal

    Example
    {
      "amount": "123.45",
      "externalAmount": "123.45"
    }
    

Итоговая стоимость корзины, которая пойдет в оплату

Default: null

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"
      },
      "measurements": {
        "height": 0.5,
        "length": 0.5,
        "weight": 0.5,
        "width": 0.5
      },
      "productId": "example",
      "quantity": {
        "available": "123.45",
        "count": "123.45"
      },
      "receipt": {
        "agent": null,
        "excise": "123.45",
        "markQuantity": null,
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": null,
        "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: CARD, SPLIT, SBP, SPLIT_SBP, CASH_ON_DELIVERY, CARD_ON_DELIVERY, UNIQR_REUSABLE, UNIQR_ONETIME

cardLast4

Type: string

Example: example

cardNetwork

Type: string

Платежная система

Enum: AMEX, DISCOVER, JCB, MASTERCARD, MAESTRO, VISAELECTRON, VISA, MIR, UNIONPAY, UZCARD, HUMOCARD, UNKNOWN, UNDEFINED, null

Example: AMEX

Example
{
  "cardLast4": "example",
  "cardNetwork": "AMEX",
  "methodType": "CARD"
}

Location

Name

Description

latitude

Type: number

longitude

Type: number

Example
{
  "latitude": 0.5,
  "longitude": 0.5
}

Address

Name

Description

building

Type: string

Example: example

country

Type: string

Example: example

addressLine

Type: string

Полный адрес

Example: example

comment

Type: string

Example: example

district

Type: string

Example: example

entrance

Type: string

Example: example

floor

Type: string

Example: example

intercom

Type: string

Example: example

locale

Type: string

Example: example

locality

Type: string

Example: example

location

Type: Location

Example
{
  "latitude": 0.5,
  "longitude": 0.5
}

region

Type: string

Example: example

room

Type: string

Example: example

street

Type: string

Example: example

zip

Type: string

Example: example

Example
{
  "addressLine": "example",
  "building": "example",
  "comment": "example",
  "country": "example",
  "district": "example",
  "entrance": "example",
  "floor": "example",
  "intercom": "example",
  "locale": "example",
  "locality": "example",
  "location": {
    "latitude": 0.5,
    "longitude": 0.5
  },
  "region": "example",
  "room": "example",
  "street": "example",
  "zip": "example"
}

TimeInterval

Name

Description

end

Type: string

Время конца интервала

Example: example

start

Type: string

Время начала интервала

Example: example

Example
{
  "end": "example",
  "start": "example"
}

FlexibleCustomerChoice

Name

Description

date

Type: string<date>

Example: 2025-01-01

time

Type: TimeInterval

Example
{
  "end": "example",
  "start": "example"
}
Example
{
  "date": "2025-01-01",
  "time": {
    "end": "example",
    "start": "example"
  }
}

FlexibleTimeIntervalsGridDescriptor

Name

Description

duration

Type: string

Продолжительность каждого интервала

Example: example

end

Type: string

Максимальное время начала самого последнего интервала

Example: example

start

Type: string

Время начала самого первого интервала

Example: example

step

Type: string

Разница во времени между началами двух соседних интервалов

Example: example

Example
{
  "duration": "example",
  "end": "example",
  "start": "example",
  "step": "example"
}

FlexibleTimeIntervals

Name

Description

type

Type: string

Если указан тип GRID, то необходимо задать поле grid. Если указан тип VALUES, то необходимо задать поле values

Enum: GRID, VALUES

grid

All of 1 type

Кодирует интервалы в виде сетки. Используйте этот формат, если необходимо задать больше 20 интервалов доставки. Пример: {"start": "09:00", "end": "21:00", "duration": "00:20", "step": "01:00"} трактуется как набор интервалов: [{"start": "09:00", "end": "09:20"}, {"start": "10:00", "end": "10:20"}, ..., {"start": "20:00", "end": "20:20"}]

Example
{
  "duration": "example",
  "end": "example",
  "start": "example",
  "step": "example"
}

values

Type: TimeInterval[]

Задаёт список интервалов напрямую. Подходит для небольшого количества интервалов доставки. Рекомендуемое максимальная количество интервалов - 20

Example
[
  {
    "end": "example",
    "start": "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: 123.45

category

Type: string

Enum: EXPRESS, TODAY, STANDARD

courierOptionId

Type: string

id выбранного варианта доставки в системе продавца

Example: example

title

Type: string

Название способа доставки. Показывается пользователю в списке вариантов

Example: example

allowedPaymentMethods

Type: string[]

Индивидуальные методы оплаты для метода доставки. Этот параметр нужно использовать, если нужно ограничить методы оплаты, указанные в availablePaymentMethods. Если параметр не указан, то используются все методы оплаты, перечисленные в availablePaymentMethods.

Example
[
  "CARD"
]

customerChoice

All of 1 type
  • Type: FlexibleCustomerChoice

    Example
    {
      "date": "2025-01-01",
      "time": {
        "end": "example",
        "start": "example"
      }
    }
    

Выбранные пользователем дата и интервал. Только для type: FLEXIBLE

Example
{
  "date": "2025-01-01",
  "time": {
    "end": "example",
    "start": "example"
  }
}

fromDate

Type: string<date>

Ближайшая дата доставки для type: PLAIN. Начало интервала выбора даты доставки для type: FLEXIBLE

Example: 2025-01-01

fromTime

Type: string

Начало интервала времени доставки. Только для type: PLAIN

Example: example

provider

Type: string

Тип службы доставки.

Enum: BOXBERRY, CDEK, RUSSIAN_POST, EMS, COURIER, DHL, EXPRESS_DELIVERY, FIVEPOST, OZON_ROCKET, DPD, SBER_LOGISTICS, PEK, PICKPOINT, KCE, PONY_EXPRESS, YANDEX_DELIVERY, null

Example: BOXBERRY

receipt

Type: ItemReceipt

Example
{
  "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

All of 1 type
  • Type: FlexibleTimeIntervals

    Example
    {
      "grid": {
        "duration": "example",
        "end": "example",
        "start": "example",
        "step": "example"
      },
      "type": "GRID",
      "values": [
        {
          "end": "example",
          "start": "example"
        }
      ]
    }
    

Кодирует интервалы времени доставки, доступные для выбора. Только для type: FLEXIBLE

Example
{
  "grid": {
    "duration": "example",
    "end": "example",
    "start": "example",
    "step": "example"
  },
  "type": "GRID",
  "values": [
    {
      "end": "example",
      "start": "example"
    }
  ]
}

toDate

Type: string<date>

Самая поздняя дата доставки для type: PLAIN. Конец интервала выбора даты доставки для type: FLEXIBLE

Example: 2025-01-01

toTime

Type: string

Конец интервала времени доставки. Только для type: PLAIN

Example: example

type

Type: string

Тип опции. Для FLEXIBLE вариантов доставки пользователю дается возможность выбрать желаемые дату и интервал:

  • дата доставки выбирается покупателем в отрезке [fromDate, toDate]
  • чтобы предоставить пользователю выбор интервала в течении дня, заполните timeIntervals Для PLAIN вариантов такой выбор отсутствует.

Default: PLAIN

Enum: PLAIN, FLEXIBLE

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": null,
      "phones": [
        "example"
      ],
      "transferOperator": 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"
}

PickupSchedule

Name

Description

fromTime

Type: string

HH:mm, "08:00"

Example: example

label

Type: string

Например, "пн-пт"

Example: example

toTime

Type: string

HH:mm, "20:00"

Example: example

Example
{
  "fromTime": "example",
  "label": "example",
  "toTime": "example"
}

PickupOption

Name

Description

address

Type: string

Адрес в виде строки

Example: example

location

Type: Location

Example
{
  "latitude": 0.5,
  "longitude": 0.5
}

pickupPointId

Type: string

Уникальный id точки самовывоза в системе продавца

Example: example

title

Type: string

Название точки самовывоза

Example: example

allowedPaymentMethods

Type: string[]

Индивидуальные методы оплаты для выбранного способа самовывоза. Доступные методы оплаты заказа при выбранном способе самовывоза. Этот параметр нужно использовать, если нужно ограничить методы оплаты, указанные в availablePaymentMethods. Если параметр не указан, то используются все методы оплаты, перечисленные в availablePaymentMethods.

Example
[
  "CARD"
]

amount

Type: string<double>

Стоимость доставки в точку

Example: 123.45

description

Type: string

Дополнительное описание

Example: example

fromDate

Type: string<date>

YYYY-MM-DD. Ближайшая возможная дата доставки

Example: 2025-01-01

phones

Type: string[]

Телефоны для связи

Example
[
  "example"
]

provider

Type: string

Тип точки вывоза.

Enum: YANDEX_MARKET, BOXBERRY, CDEK, IN_STORE, RUSSIAN_POST, PICKPOINT, DPD

receipt

Type: ItemReceipt

Example
{
  "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

Type: PickupSchedule[]

График работы точки

Example
[
  {
    "fromTime": "example",
    "label": "example",
    "toTime": "example"
  }
]

storagePeriod

Type: integer

Опционально. Срок хранения товара в точке самовывоза в днях

toDate

Type: string<date>

YYYY-MM-DD. Самая поздняя дата доставки

Example: 2025-01-01

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": null,
      "phones": [
        "example"
      ],
      "transferOperator": 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: 123.45

category

Type: string

Enum: EXPRESS, TODAY, STANDARD

title

Type: string

Название способа доставки. Показывается пользователю в списке вариантов

Example: example

yandexDeliveryOptionId

Type: string

Id предложения Яндекс Доставки

Example: example

allowedPaymentMethods

Type: string[]

Индивидуальные методы оплаты для метода доставки. Этот параметр нужно использовать, если нужно ограничить методы оплаты, указанные в availablePaymentMethods. Если параметр не указан, то используются все методы оплаты, перечисленные в availablePaymentMethods.

Example
[
  "CARD"
]

fromDatetime

Type: string<date-time>

Example: 2025-01-01T00:00:00Z

receipt

Type: ItemReceipt

Example
{
  "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"
}

toDatetime

Type: string<date-time>

Example: 2025-01-01T00:00:00Z

Example
{
  "allowedPaymentMethods": [
    "CARD"
  ],
  "amount": "123.45",
  "category": "EXPRESS",
  "fromDatetime": "2025-01-01T00:00:00Z",
  "receipt": {
    "agent": {
      "agentType": 1,
      "operation": "example",
      "paymentsOperator": null,
      "phones": [
        "example"
      ],
      "transferOperator": 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: DIRECT, PICKUP, COURIER, YANDEX_DELIVERY

courierOption

All of 1 type
  • Type: CourierOption

    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": null,
          "phones": [
            null
          ],
          "transferOperator": null
        },
        "excise": "123.45",
        "markQuantity": {
          "denominator": 0,
          "numerator": 0
        },
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": {
          "inn": "example",
          "name": "example",
          "phones": [
            null
          ]
        },
        "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"
    }
    

если methodType == COURIER

Example
{
  "allowedPaymentMethods": [
    "CARD"
  ],
  "amount": "123.45",
  "category": "EXPRESS",
  "courierOptionId": "example",
  "customerChoice": {
    "date": "2025-01-01",
    "time": null
  },
  "fromDate": "2025-01-01",
  "fromTime": "example",
  "provider": "BOXBERRY",
  "receipt": {
    "agent": null,
    "excise": "123.45",
    "markQuantity": null,
    "measure": 0,
    "paymentMethodType": 1,
    "paymentSubjectType": 1,
    "productCode": "example",
    "supplier": null,
    "tax": 1,
    "title": "example"
  },
  "timeIntervals": {
    "grid": null,
    "type": "GRID",
    "values": [
      null
    ]
  },
  "title": "example",
  "toDate": "2025-01-01",
  "toTime": "example",
  "type": "PLAIN"
}

pickupOption

All of 1 type
  • Type: PickupOption

    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": null,
          "phones": [
            null
          ],
          "transferOperator": null
        },
        "excise": "123.45",
        "markQuantity": {
          "denominator": 0,
          "numerator": 0
        },
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": {
          "inn": "example",
          "name": "example",
          "phones": [
            null
          ]
        },
        "tax": 1,
        "title": "example"
      },
      "schedule": [
        {
          "fromTime": "example",
          "label": "example",
          "toTime": "example"
        }
      ],
      "storagePeriod": 0,
      "title": "example",
      "toDate": "2025-01-01"
    }
    

если methodType == PICKUP

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": null,
    "excise": "123.45",
    "markQuantity": null,
    "measure": 0,
    "paymentMethodType": 1,
    "paymentSubjectType": 1,
    "productCode": "example",
    "supplier": null,
    "tax": 1,
    "title": "example"
  },
  "schedule": [
    {
      "fromTime": "example",
      "label": "example",
      "toTime": "example"
    }
  ],
  "storagePeriod": 0,
  "title": "example",
  "toDate": "2025-01-01"
}

yandexDeliveryOption

All of 1 type
  • Type: YandexDeliveryOption

    Example
    {
      "allowedPaymentMethods": [
        "CARD"
      ],
      "amount": "123.45",
      "category": "EXPRESS",
      "fromDatetime": "2025-01-01T00:00:00Z",
      "receipt": {
        "agent": {
          "agentType": 1,
          "operation": "example",
          "paymentsOperator": null,
          "phones": [
            null
          ],
          "transferOperator": null
        },
        "excise": "123.45",
        "markQuantity": {
          "denominator": 0,
          "numerator": 0
        },
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": {
          "inn": "example",
          "name": "example",
          "phones": [
            null
          ]
        },
        "tax": 1,
        "title": "example"
      },
      "title": "example",
      "toDatetime": "2025-01-01T00:00:00Z",
      "yandexDeliveryOptionId": "example"
    }
    

если methodType == YANDEX_DELIVERY

Example
{
  "allowedPaymentMethods": [
    "CARD"
  ],
  "amount": "123.45",
  "category": "EXPRESS",
  "fromDatetime": "2025-01-01T00:00:00Z",
  "receipt": {
    "agent": null,
    "excise": "123.45",
    "markQuantity": null,
    "measure": 0,
    "paymentMethodType": 1,
    "paymentSubjectType": 1,
    "productCode": "example",
    "supplier": null,
    "tax": 1,
    "title": "example"
  },
  "title": "example",
  "toDatetime": "2025-01-01T00:00:00Z",
  "yandexDeliveryOptionId": "example"
}
Example
{
  "courierOption": {
    "allowedPaymentMethods": [
      "CARD"
    ],
    "amount": "123.45",
    "category": "EXPRESS",
    "courierOptionId": "example",
    "customerChoice": {
      "date": "2025-01-01",
      "time": null
    },
    "fromDate": "2025-01-01",
    "fromTime": "example",
    "provider": "BOXBERRY",
    "receipt": {
      "agent": null,
      "excise": "123.45",
      "markQuantity": null,
      "measure": 0,
      "paymentMethodType": 1,
      "paymentSubjectType": 1,
      "productCode": "example",
      "supplier": null,
      "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"
  }
}

Responses

200 OK

Вебхук успешно получен и обработан. Тело ответа может быть любым, рекомендуем отправить {"status": "success"}. При получении 200 Яндекс Пэй прекращает отправку повторных вебхуков.

Body

application/json
{
  "data": {
    "availablePaymentMethods": [
      "CARD"
    ],
    "cart": {
      "coupons": [
        {}
      ],
      "discounts": [
        {}
      ],
      "externalId": "example",
      "items": [
        {}
      ],
      "measurements": null,
      "total": null
    },
    "currencyCode": "RUB",
    "enableCommentField": true,
    "enableCoupons": true,
    "metadata": "example",
    "orderAmount": "123.45",
    "requiredFields": {
      "billingContact": null,
      "shippingContact": null
    },
    "shipping": {
      "availableCourierOptions": [
        {}
      ],
      "availableMethods": [
        "DIRECT"
      ],
      "courierOptionsError": "WRONG_ADDRESS",
      "yandexDelivery": null
    }
  },
  "status": "example"
}

Name

Description

data

Type: MerchantRenderOrderResponseData

Example
{
  "availablePaymentMethods": [
    "CARD"
  ],
  "cart": {
    "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,
        "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": {
      "amount": "123.45",
      "externalAmount": "123.45",
      "pointsAmount": "123.45"
    }
  },
  "currencyCode": "RUB",
  "enableCommentField": true,
  "enableCoupons": true,
  "metadata": "example",
  "orderAmount": "123.45",
  "requiredFields": {
    "billingContact": {
      "email": true
    },
    "shippingContact": {
      "email": true,
      "name": true,
      "phone": true
    }
  },
  "shipping": {
    "availableCourierOptions": [
      {
        "allowedPaymentMethods": [
          null
        ],
        "amount": "123.45",
        "category": "EXPRESS",
        "courierOptionId": "example",
        "fromDate": "2025-01-01",
        "fromTime": "example",
        "provider": "BOXBERRY",
        "receipt": null,
        "timeIntervals": null,
        "title": "example",
        "toDate": "2025-01-01",
        "toTime": "example",
        "type": "PLAIN"
      }
    ],
    "availableMethods": [
      "DIRECT"
    ],
    "courierOptionsError": "WRONG_ADDRESS",
    "yandexDelivery": {
      "warehouse": null
    }
  }
}

status

Type: string

Example: example

CartItemWithoutFinalPrice

Name

Description

productId

Type: string

Id товара в системе продавца. В параметрах запроса каждый идентификатор товара productId должен быть уникальным

Example: example

quantity

All of 1 type
  • Type: ItemQuantity

    Example
    {
      "available": "123.45",
      "count": "123.45"
    }
    

Количество товара в заказе

Example
{
  "available": "123.45",
  "count": "123.45"
}

description

Type: string

Описание товара

Example: example

discountedUnitPrice

Type: string<double>

Цена за единицу товара с учётом скидок на позицию

Example: 123.45

features

All of 1 type
  • Type: CartItemFeatures

    Example
    {
      "pointsDisabled": false,
      "tariffModifier": "VERY_LOW"
    }
    

Промо параметры товара

Example
{
  "pointsDisabled": false,
  "tariffModifier": "VERY_LOW"
}

measurements

All of 1 type
  • Type: Measurements

    Example
    {
      "height": 0.5,
      "length": 0.5,
      "weight": 0.5,
      "width": 0.5
    }
    

Размеры и вес товара. Обязательно для товара типа PHYSICAL

Example
{
  "height": 0.5,
  "length": 0.5,
  "weight": 0.5,
  "width": 0.5
}

pointsAmount

Type: string<double>

Количество баллов Плюса

Поле только для чтения. Переданные значения будут проигнорированы.

Example: 123.45

receipt

All of 1 type
  • Type: ItemReceipt

    Example
    {
      "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"
    }
    

Данные для формирования чека

Example
{
  "agent": {
    "agentType": 1,
    "operation": "example",
    "paymentsOperator": null,
    "phones": [
      "example"
    ],
    "transferOperator": 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

Type: string

Уникальный id, который описывает единицу ассортимента. Необходим для применения индивидуального тарифа.

Example: example

subtotal

Type: string<double>

Суммарная цена за позицию без учета скидок

Example: 123.45

title

Type: string

Наименование товара

Example: example

total

Type: string<double>

Суммарная цена за позицию с учётом скидок на позицию

Example: 123.45

type

Type: string

Тип товара. Важен для интеграции с доставками

Default: UNSPECIFIED

Enum: PHYSICAL, DIGITAL, UNSPECIFIED

unitPrice

Type: string<double>

Полная цена за единицу товара без учетка скидки

Example: 123.45

Example
{
  "description": "example",
  "discountedUnitPrice": "123.45",
  "features": {
    "pointsDisabled": false,
    "tariffModifier": "VERY_LOW"
  },
  "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": null,
      "phones": [
        null
      ],
      "transferOperator": null
    },
    "excise": "123.45",
    "markQuantity": {
      "denominator": 0,
      "numerator": 0
    },
    "measure": 0,
    "paymentMethodType": 1,
    "paymentSubjectType": 1,
    "productCode": "example",
    "supplier": {
      "inn": "example",
      "name": "example",
      "phones": [
        null
      ]
    },
    "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: 123.45

externalAmount

Type: string<double>

Сумма внешнего покрытия (сертификаты, подарочные карты).

Example: 123.45

pointsAmount

Type: string<double>

Количество баллов Плюса

Поле только для чтения. Переданные значения будут проигнорированы.

Example: 123.45

Example
{
  "amount": "123.45",
  "externalAmount": "123.45",
  "pointsAmount": "123.45"
}

CartWithoutFinalPrice

Name

Description

cartId

Type: string

Внутренний идентификатор корзины Яндекс Пэй.

Бэкенд магазина должен использовать этот параметр как идентификатор корзины покупателя и как ключ идемпотентности для запроса /order/create. Если бэкенд магазина получает повторный запрос /order/create, то необходимо вернуть уже созданный номер заказа. На одну корзину (cartId) бэкенд магазина может создать не больше одного заказа (orderId).

Example: example

coupons

Type: Coupon[]

Купоны, применённые к корзине

Example
[
  {
    "description": "example",
    "status": "VALID",
    "value": "example"
  }
]

discounts

Type: Discount[]

Скидки, применённые к корзине

Example
[
  {
    "amount": "123.45",
    "description": "example",
    "discountId": "example"
  }
]

externalId

Type: string

Переданный продавцом идентификатор корзины

Example: example

items

Type: CartItemWithoutFinalPrice[]

Example
[
  {
    "description": "example",
    "discountedUnitPrice": "123.45",
    "features": {
      "pointsDisabled": false,
      "tariffModifier": "VERY_LOW"
    },
    "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": null,
      "excise": "123.45",
      "markQuantity": null,
      "measure": 0,
      "paymentMethodType": 1,
      "paymentSubjectType": 1,
      "productCode": "example",
      "supplier": null,
      "tax": 1,
      "title": "example"
    },
    "skuId": "example",
    "subtotal": "123.45",
    "title": "example",
    "total": "123.45",
    "type": "UNSPECIFIED",
    "unitPrice": "123.45"
  }
]

measurements

Type: Measurements

Example
{
  "height": 0.5,
  "length": 0.5,
  "weight": 0.5,
  "width": 0.5
}

total

All of 1 type
  • Type: CartTotal

    Example
    {
      "amount": "123.45",
      "externalAmount": "123.45",
      "pointsAmount": "123.45"
    }
    

Итоговая стоимость корзины, которая пойдет в оплату

Default: null

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"
      },
      "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": null,
        "excise": "123.45",
        "markQuantity": null,
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": null,
        "tax": 1,
        "title": "example"
      },
      "skuId": "example",
      "subtotal": "123.45",
      "title": "example",
      "total": "123.45",
      "type": "UNSPECIFIED",
      "unitPrice": "123.45"
    }
  ],
  "measurements": null,
  "total": null
}

RenderedCartItem

Name

Description

productId

Type: string

Id товара в системе продавца. В параметрах запроса каждый идентификатор товара productId должен быть уникальным

Example: example

quantity

All of 1 type
  • Type: ItemQuantity

    Example
    {
      "available": "123.45",
      "count": "123.45"
    }
    

Количество товара в заказе

Example
{
  "available": "123.45",
  "count": "123.45"
}

total

Type: string<double>

Суммарная цена за позицию с учётом скидок на позицию

Example: 123.45

description

Type: string

Описание товара

Example: example

discountedUnitPrice

Type: string<double>

Цена за единицу товара с учётом скидок на позицию

Example: 123.45

features

All of 1 type
  • Type: CartItemFeatures

    Example
    {
      "pointsDisabled": false,
      "tariffModifier": "VERY_LOW"
    }
    

Промо параметры товара

Example
{
  "pointsDisabled": false,
  "tariffModifier": "VERY_LOW"
}

measurements

All of 1 type
  • Type: Measurements

    Example
    {
      "height": 0.5,
      "length": 0.5,
      "weight": 0.5,
      "width": 0.5
    }
    

Размеры и вес товара. Обязательно для товара типа PHYSICAL

Example
{
  "height": 0.5,
  "length": 0.5,
  "weight": 0.5,
  "width": 0.5
}

pointsAmount

Type: string<double>

Количество баллов Плюса

Поле только для чтения. Переданные значения будут проигнорированы.

Example: 123.45

receipt

All of 1 type
  • Type: ItemReceipt

    Example
    {
      "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"
    }
    

Данные для формирования чека

Example
{
  "agent": {
    "agentType": 1,
    "operation": "example",
    "paymentsOperator": null,
    "phones": [
      "example"
    ],
    "transferOperator": 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

Type: string

Уникальный id, который описывает единицу ассортимента. Необходим для применения индивидуального тарифа.

Example: example

subtotal

Type: string<double>

Суммарная цена за позицию без учета скидок

Example: 123.45

title

Type: string

Наименование товара

Example: example

type

Type: string

Тип товара. Важен для интеграции с доставками

Default: UNSPECIFIED

Enum: PHYSICAL, DIGITAL, UNSPECIFIED

unitPrice

Type: string<double>

Полная цена за единицу товара без учетка скидки

Example: 123.45

Example
{
  "description": "example",
  "discountedUnitPrice": "123.45",
  "features": {
    "pointsDisabled": false,
    "tariffModifier": "VERY_LOW"
  },
  "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": null,
      "phones": [
        null
      ],
      "transferOperator": null
    },
    "excise": "123.45",
    "markQuantity": {
      "denominator": 0,
      "numerator": 0
    },
    "measure": 0,
    "paymentMethodType": 1,
    "paymentSubjectType": 1,
    "productCode": "example",
    "supplier": {
      "inn": "example",
      "name": "example",
      "phones": [
        null
      ]
    },
    "tax": 1,
    "title": "example"
  },
  "skuId": "example",
  "subtotal": "123.45",
  "title": "example",
  "total": "123.45",
  "type": "UNSPECIFIED",
  "unitPrice": "123.45"
}

RenderedCart

Name

Description

items

Type: RenderedCartItem[]

Корзина товаров, которую оплачивает покупатель.

Example
[
  {
    "description": "example",
    "discountedUnitPrice": "123.45",
    "features": {
      "pointsDisabled": false,
      "tariffModifier": "VERY_LOW"
    },
    "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": null,
      "excise": "123.45",
      "markQuantity": null,
      "measure": 0,
      "paymentMethodType": 1,
      "paymentSubjectType": 1,
      "productCode": "example",
      "supplier": null,
      "tax": 1,
      "title": "example"
    },
    "skuId": "example",
    "subtotal": "123.45",
    "title": "example",
    "total": "123.45",
    "type": "UNSPECIFIED",
    "unitPrice": "123.45"
  }
]

total

All of 1 type
  • Type: CartTotal

    Example
    {
      "amount": "123.45",
      "externalAmount": "123.45",
      "pointsAmount": "123.45"
    }
    

Итоговая информация о стоимости заказа.

Example
{
  "amount": "123.45",
  "externalAmount": "123.45",
  "pointsAmount": "123.45"
}

coupons

Type: Coupon[]

Купоны, применённые к корзине

Example
[
  {
    "description": "example",
    "status": "VALID",
    "value": "example"
  }
]

discounts

Type: Discount[]

Скидки, применённые к корзине

Example
[
  {
    "amount": "123.45",
    "description": "example",
    "discountId": "example"
  }
]

externalId

Type: string

Переданный продавцом идентификатор корзины

Example: example

measurements

Type: Measurements

Example
{
  "height": 0.5,
  "length": 0.5,
  "weight": 0.5,
  "width": 0.5
}
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"
      },
      "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": null,
        "excise": "123.45",
        "markQuantity": null,
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": null,
        "tax": 1,
        "title": "example"
      },
      "skuId": "example",
      "subtotal": "123.45",
      "title": "example",
      "total": "123.45",
      "type": "UNSPECIFIED",
      "unitPrice": "123.45"
    }
  ],
  "measurements": null,
  "total": {
    "amount": "123.45",
    "externalAmount": "123.45",
    "pointsAmount": "123.45"
  }
}

BillingContactFields

Name

Description

email

Type: boolean

Example
{
  "email": true
}

ContactFields

Name

Description

email

Type: boolean

name

Type: boolean

phone

Type: boolean

Example
{
  "email": true,
  "name": true,
  "phone": true
}

RequiredFields

Name

Description

billingContact

Type: BillingContactFields

Example
{
  "email": true
}

shippingContact

Type: ContactFields

Example
{
  "email": true,
  "name": true,
  "phone": true
}
Example
{
  "billingContact": {
    "email": true
  },
  "shippingContact": {
    "email": true,
    "name": true,
    "phone": true
  }
}

CourierOption1

Name

Description

amount

Type: string<double>

Стоимость доставки

Example: 123.45

category

Type: string

Enum: EXPRESS, TODAY, STANDARD

courierOptionId

Type: string

id выбранного варианта доставки в системе продавца

Example: example

title

Type: string

Название способа доставки. Показывается пользователю в списке вариантов

Example: example

allowedPaymentMethods

Type: string[]

Индивидуальные методы оплаты для метода доставки. Этот параметр нужно использовать, если нужно ограничить методы оплаты, указанные в availablePaymentMethods. Если параметр не указан, то используются все методы оплаты, перечисленные в availablePaymentMethods.

Example
[
  "CARD"
]

fromDate

Type: string<date>

Ближайшая дата доставки для type: PLAIN. Начало интервала выбора даты доставки для type: FLEXIBLE

Example: 2025-01-01

fromTime

Type: string

Начало интервала времени доставки. Только для type: PLAIN

Example: example

provider

Type: string

Тип службы доставки.

Enum: BOXBERRY, CDEK, RUSSIAN_POST, EMS, COURIER, DHL, EXPRESS_DELIVERY, FIVEPOST, OZON_ROCKET, DPD, SBER_LOGISTICS, PEK, PICKPOINT, KCE, PONY_EXPRESS, YANDEX_DELIVERY, null

Example: BOXBERRY

receipt

Type: ItemReceipt

Example
{
  "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

All of 1 type
  • Type: FlexibleTimeIntervals

    Example
    {
      "grid": {
        "duration": "example",
        "end": "example",
        "start": "example",
        "step": "example"
      },
      "type": "GRID",
      "values": [
        {
          "end": "example",
          "start": "example"
        }
      ]
    }
    

Кодирует интервалы времени доставки, доступные для выбора. Только для type: FLEXIBLE

Example
{
  "grid": {
    "duration": "example",
    "end": "example",
    "start": "example",
    "step": "example"
  },
  "type": "GRID",
  "values": [
    {
      "end": "example",
      "start": "example"
    }
  ]
}

toDate

Type: string<date>

Самая поздняя дата доставки для type: PLAIN. Конец интервала выбора даты доставки для type: FLEXIBLE

Example: 2025-01-01

toTime

Type: string

Конец интервала времени доставки. Только для type: PLAIN

Example: example

type

Type: string

Тип опции. Для FLEXIBLE вариантов доставки пользователю дается возможность выбрать желаемые дату и интервал:

  • дата доставки выбирается покупателем в отрезке [fromDate, toDate]
  • чтобы предоставить пользователю выбор интервала в течении дня, заполните timeIntervals Для PLAIN вариантов такой выбор отсутствует.

Default: PLAIN

Enum: PLAIN, FLEXIBLE

Example
{
  "allowedPaymentMethods": [
    "CARD"
  ],
  "amount": "123.45",
  "category": "EXPRESS",
  "courierOptionId": "example",
  "fromDate": "2025-01-01",
  "fromTime": "example",
  "provider": "BOXBERRY",
  "receipt": {
    "agent": {
      "agentType": 1,
      "operation": "example",
      "paymentsOperator": null,
      "phones": [
        "example"
      ],
      "transferOperator": 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": [
      {
        "end": "example",
        "start": "example"
      }
    ]
  },
  "title": "example",
  "toDate": "2025-01-01",
  "toTime": "example",
  "type": "PLAIN"
}

Contact

Name

Description

email

Type: string

Example: example

firstName

Type: string

Example: example

lastName

Type: string

Example: example

phone

Type: string

Example: example

phoneAdditionalCode

Type: string

Example: example

secondName

Type: string

Example: example

Example
{
  "email": "example",
  "firstName": "example",
  "lastName": "example",
  "phone": "example",
  "phoneAdditionalCode": "example",
  "secondName": "example"
}

WeeklySchedule

Name

Description

fri

All of 1 type
  • Type: TimeInterval

    Example
    {
      "end": "example",
      "start": "example"
    }
    

Пятница

Example
{
  "end": "example",
  "start": "example"
}

mon

All of 1 type
  • Type: TimeInterval

    Example
    {
      "end": "example",
      "start": "example"
    }
    

Понедельник

Example
{
  "end": "example",
  "start": "example"
}

sat

All of 1 type
  • Type: TimeInterval

    Example
    {
      "end": "example",
      "start": "example"
    }
    

Суббота

Example
{
  "end": "example",
  "start": "example"
}

sun

All of 1 type
  • Type: TimeInterval

    Example
    {
      "end": "example",
      "start": "example"
    }
    

Воскресенье

Example
{
  "end": "example",
  "start": "example"
}

thu

All of 1 type
  • Type: TimeInterval

    Example
    {
      "end": "example",
      "start": "example"
    }
    

Четверг

Example
{
  "end": "example",
  "start": "example"
}

tue

All of 1 type
  • Type: TimeInterval

    Example
    {
      "end": "example",
      "start": "example"
    }
    

Вторник

Example
{
  "end": "example",
  "start": "example"
}

wed

All of 1 type
  • Type: TimeInterval

    Example
    {
      "end": "example",
      "start": "example"
    }
    

Среда

Example
{
  "end": "example",
  "start": "example"
}
Example
{
  "fri": {
    "end": "example",
    "start": "example"
  },
  "mon": null,
  "sat": null,
  "sun": null,
  "thu": null,
  "tue": null,
  "wed": null
}

Schedule

Name

Description

tzoffset

Type: integer

Смещение часового пояса относительно UTC в минутах. Например, 180 для Москвы (UTC+3)

Min value: -720

Max value: 840

weekly

All of 1 type
  • Type: WeeklySchedule

    Example
    {
      "fri": {
        "end": "example",
        "start": "example"
      },
      "mon": null,
      "sat": null,
      "sun": null,
      "thu": null,
      "tue": null,
      "wed": null
    }
    

Еженедельное расписание работы

Example
{
  "fri": {
    "end": "example",
    "start": "example"
  },
  "mon": null,
  "sat": null,
  "sun": null,
  "thu": null,
  "tue": null,
  "wed": null
}

custom

Type: object | null

[additional]

All of 1 type
  • Type: TimeInterval1

    Example
    {
      "end": "example",
      "start": "example"
    }
    
Example
{
  "end": "example",
  "start": "example"
}

Переопределённое расписание для конкретных дат. Ключи - даты в формате "YYYY-MM-DD", значения - объекты {"start": string, "end": string} или null для указания выходных

Example
{}
Example
{
  "custom": {},
  "tzoffset": -720,
  "weekly": {
    "fri": {
      "end": "example",
      "start": "example"
    },
    "mon": null,
    "sat": null,
    "sun": null,
    "thu": null,
    "tue": null,
    "wed": null
  }
}

ShippingWarehouse

Name

Description

address

Type: Address

Example
{
  "addressLine": "example",
  "building": "example",
  "comment": "example",
  "country": "example",
  "district": "example",
  "entrance": "example",
  "floor": "example",
  "intercom": "example",
  "locale": "example",
  "locality": "example",
  "location": {
    "latitude": 0.5,
    "longitude": 0.5
  },
  "region": "example",
  "room": "example",
  "street": "example",
  "zip": "example"
}

contact

Type: Contact

Example
{
  "email": "example",
  "firstName": "example",
  "lastName": "example",
  "phone": "example",
  "phoneAdditionalCode": "example",
  "secondName": "example"
}

emergencyContact

Type: Contact

Example
{
  "email": "example",
  "firstName": "example",
  "lastName": "example",
  "phone": "example",
  "phoneAdditionalCode": "example",
  "secondName": "example"
}

schedule

All of 1 type
  • Type: Schedule

    Example
    {
      "custom": {},
      "tzoffset": -720,
      "weekly": {
        "fri": {
          "end": "example",
          "start": "example"
        },
        "mon": null,
        "sat": null,
        "sun": null,
        "thu": null,
        "tue": null,
        "wed": null
      }
    }
    

Расписание работы

Example
{
  "custom": {},
  "tzoffset": -720,
  "weekly": {
    "fri": null,
    "mon": null,
    "sat": null,
    "sun": null,
    "thu": null,
    "tue": null,
    "wed": null
  }
}
Example
{
  "address": {
    "addressLine": "example",
    "building": "example",
    "comment": "example",
    "country": "example",
    "district": "example",
    "entrance": "example",
    "floor": "example",
    "intercom": "example",
    "locale": "example",
    "locality": "example",
    "location": {
      "latitude": 0.5,
      "longitude": 0.5
    },
    "region": "example",
    "room": "example",
    "street": "example",
    "zip": "example"
  },
  "contact": {
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "phone": "example",
    "phoneAdditionalCode": "example",
    "secondName": "example"
  },
  "emergencyContact": null,
  "schedule": {
    "custom": {},
    "tzoffset": -720,
    "weekly": {
      "fri": null,
      "mon": null,
      "sat": null,
      "sun": null,
      "thu": null,
      "tue": null,
      "wed": null
    }
  }
}

YandexDeliveryShippingParams

Name

Description

warehouse

Type: ShippingWarehouse

Example
{
  "address": {
    "addressLine": "example",
    "building": "example",
    "comment": "example",
    "country": "example",
    "district": "example",
    "entrance": "example",
    "floor": "example",
    "intercom": "example",
    "locale": "example",
    "locality": "example",
    "location": {
      "latitude": 0.5,
      "longitude": 0.5
    },
    "region": "example",
    "room": "example",
    "street": "example",
    "zip": "example"
  },
  "contact": {
    "email": "example",
    "firstName": "example",
    "lastName": "example",
    "phone": "example",
    "phoneAdditionalCode": "example",
    "secondName": "example"
  },
  "emergencyContact": null,
  "schedule": {
    "custom": {},
    "tzoffset": -720,
    "weekly": {
      "fri": null,
      "mon": null,
      "sat": null,
      "sun": null,
      "thu": null,
      "tue": null,
      "wed": null
    }
  }
}
Example
{
  "warehouse": {
    "address": {
      "addressLine": "example",
      "building": "example",
      "comment": "example",
      "country": "example",
      "district": "example",
      "entrance": "example",
      "floor": "example",
      "intercom": "example",
      "locale": "example",
      "locality": "example",
      "location": {
        "latitude": 0.5,
        "longitude": 0.5
      },
      "region": "example",
      "room": "example",
      "street": "example",
      "zip": "example"
    },
    "contact": {
      "email": "example",
      "firstName": "example",
      "lastName": "example",
      "phone": "example",
      "phoneAdditionalCode": "example",
      "secondName": "example"
    },
    "emergencyContact": null,
    "schedule": {
      "custom": {},
      "tzoffset": -720,
      "weekly": null
    }
  }
}

ShippingOptions

Name

Description

availableMethods

Type: string[]

Example
[
  "DIRECT"
]

availableCourierOptions

Type: CourierOption1[]

Доступные варианты доставки (при наличии адреса в запросе)

Example
[
  {
    "allowedPaymentMethods": [
      "CARD"
    ],
    "amount": "123.45",
    "category": "EXPRESS",
    "courierOptionId": "example",
    "fromDate": "2025-01-01",
    "fromTime": "example",
    "provider": "BOXBERRY",
    "receipt": {
      "agent": null,
      "excise": "123.45",
      "markQuantity": null,
      "measure": 0,
      "paymentMethodType": 1,
      "paymentSubjectType": 1,
      "productCode": "example",
      "supplier": null,
      "tax": 1,
      "title": "example"
    },
    "timeIntervals": {
      "grid": null,
      "type": "GRID",
      "values": [
        {}
      ]
    },
    "title": "example",
    "toDate": "2025-01-01",
    "toTime": "example",
    "type": "PLAIN"
  }
]

courierOptionsError

Type: string

Ошибка при определении доставки. При указании этого параметра, в интерфейсе пользователя будет отображаться описание ошибки.

Enum: WRONG_ADDRESS, DELIVERY_NOT_AVAILABLE_FOR_ADDRESS, null

Example: WRONG_ADDRESS

yandexDelivery

Type: YandexDeliveryShippingParams

Example
{
  "warehouse": {
    "address": {
      "addressLine": "example",
      "building": "example",
      "comment": "example",
      "country": "example",
      "district": "example",
      "entrance": "example",
      "floor": "example",
      "intercom": "example",
      "locale": "example",
      "locality": "example",
      "location": null,
      "region": "example",
      "room": "example",
      "street": "example",
      "zip": "example"
    },
    "contact": {
      "email": "example",
      "firstName": "example",
      "lastName": "example",
      "phone": "example",
      "phoneAdditionalCode": "example",
      "secondName": "example"
    },
    "emergencyContact": null,
    "schedule": {
      "custom": {},
      "tzoffset": -720,
      "weekly": null
    }
  }
}
Example
{
  "availableCourierOptions": [
    {
      "allowedPaymentMethods": [
        "CARD"
      ],
      "amount": "123.45",
      "category": "EXPRESS",
      "courierOptionId": "example",
      "fromDate": "2025-01-01",
      "fromTime": "example",
      "provider": "BOXBERRY",
      "receipt": {
        "agent": null,
        "excise": "123.45",
        "markQuantity": null,
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": null,
        "tax": 1,
        "title": "example"
      },
      "timeIntervals": {
        "grid": null,
        "type": "GRID",
        "values": [
          null
        ]
      },
      "title": "example",
      "toDate": "2025-01-01",
      "toTime": "example",
      "type": "PLAIN"
    }
  ],
  "availableMethods": [
    "DIRECT"
  ],
  "courierOptionsError": "WRONG_ADDRESS",
  "yandexDelivery": {
    "warehouse": {
      "address": {
        "addressLine": "example",
        "building": "example",
        "comment": "example",
        "country": "example",
        "district": "example",
        "entrance": "example",
        "floor": "example",
        "intercom": "example",
        "locale": "example",
        "locality": "example",
        "location": null,
        "region": "example",
        "room": "example",
        "street": "example",
        "zip": "example"
      },
      "contact": {
        "email": "example",
        "firstName": "example",
        "lastName": "example",
        "phone": "example",
        "phoneAdditionalCode": "example",
        "secondName": "example"
      },
      "emergencyContact": null,
      "schedule": null
    }
  }
}

MerchantRenderOrderResponseData

Name

Description

cart

All of 1 type
  • Type: RenderedCart

    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"
          },
          "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": null,
            "excise": "123.45",
            "markQuantity": null,
            "measure": 0,
            "paymentMethodType": 1,
            "paymentSubjectType": 1,
            "productCode": "example",
            "supplier": null,
            "tax": 1,
            "title": "example"
          },
          "skuId": "example",
          "subtotal": "123.45",
          "title": "example",
          "total": "123.45",
          "type": "UNSPECIFIED",
          "unitPrice": "123.45"
        }
      ],
      "measurements": null,
      "total": {
        "amount": "123.45",
        "externalAmount": "123.45",
        "pointsAmount": "123.45"
      }
    }
    

Корзина

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,
      "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": null,
  "total": {
    "amount": "123.45",
    "externalAmount": "123.45",
    "pointsAmount": "123.45"
  }
}

currencyCode

Type: string

Трехбуквенный код валюты заказа (ISO 4217)

Enum: RUB, UZS

availablePaymentMethods

Type: string[]

Доступные методы оплаты на платежной форме Яндекс Пэй.

Нужно указать все возможные методы, которые может выбрать пользователь - при оплате онлайн и доставке. Если вы интегрируете оплату только одним методом, например, Сплит — указывается один метод ["SPLIT"].

Example
[
  "CARD"
]

enableCommentField

Type: boolean

enableCoupons

Type: boolean

metadata

Type: string

Произвольные данные, переданные при инициализации кнопки

Example: example

orderAmount

Type: string<double>

Полная стоимость заказа к оплате с учётом возвратов, доставки, скидок и промокодов

Example: 123.45

requiredFields

All of 1 type
  • Type: RequiredFields

    Example
    {
      "billingContact": {
        "email": true
      },
      "shippingContact": {
        "email": true,
        "name": true,
        "phone": true
      }
    }
    

Данные пользователя, необходимые для оформления заказа

Example
{
  "billingContact": {
    "email": true
  },
  "shippingContact": {
    "email": true,
    "name": true,
    "phone": true
  }
}

shipping

Type: ShippingOptions

Example
{
  "availableCourierOptions": [
    {
      "allowedPaymentMethods": [
        "CARD"
      ],
      "amount": "123.45",
      "category": "EXPRESS",
      "courierOptionId": "example",
      "fromDate": "2025-01-01",
      "fromTime": "example",
      "provider": "BOXBERRY",
      "receipt": {
        "agent": null,
        "excise": "123.45",
        "markQuantity": null,
        "measure": 0,
        "paymentMethodType": 1,
        "paymentSubjectType": 1,
        "productCode": "example",
        "supplier": null,
        "tax": 1,
        "title": "example"
      },
      "timeIntervals": {
        "grid": null,
        "type": "GRID",
        "values": [
          null
        ]
      },
      "title": "example",
      "toDate": "2025-01-01",
      "toTime": "example",
      "type": "PLAIN"
    }
  ],
  "availableMethods": [
    "DIRECT"
  ],
  "courierOptionsError": "WRONG_ADDRESS",
  "yandexDelivery": {
    "warehouse": {
      "address": {},
      "contact": {},
      "emergencyContact": null,
      "schedule": null
    }
  }
}
Example
{
  "availablePaymentMethods": [
    "CARD"
  ],
  "cart": {
    "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,
        "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": {
      "amount": "123.45",
      "externalAmount": "123.45",
      "pointsAmount": "123.45"
    }
  },
  "currencyCode": "RUB",
  "enableCommentField": true,
  "enableCoupons": true,
  "metadata": "example",
  "orderAmount": "123.45",
  "requiredFields": {
    "billingContact": {
      "email": true
    },
    "shippingContact": {
      "email": true,
      "name": true,
      "phone": true
    }
  },
  "shipping": {
    "availableCourierOptions": [
      {
        "allowedPaymentMethods": [
          "CARD"
        ],
        "amount": "123.45",
        "category": "EXPRESS",
        "courierOptionId": "example",
        "fromDate": "2025-01-01",
        "fromTime": "example",
        "provider": "BOXBERRY",
        "receipt": null,
        "timeIntervals": null,
        "title": "example",
        "toDate": "2025-01-01",
        "toTime": "example",
        "type": "PLAIN"
      }
    ],
    "availableMethods": [
      "DIRECT"
    ],
    "courierOptionsError": "WRONG_ADDRESS",
    "yandexDelivery": {
      "warehouse": null
    }
  }
}

400 Bad Request

Ошибка обработки вебхука. При отсутствии ответа или любом статусе кроме 200 Яндекс Пэй генерирует новый JWT-токен и повторяет отправку вебхука:

  • первые 10 раз через 5 мс;
  • далее с экспоненциально возрастающим интервалом до 15 минут;
  • затем каждые 15 минут в течение 24 часов. Общее время повторных отправок — 24 часа. После этого вебхук считается недоставленным.

Body

application/json
{
  "reason": "example",
  "reasonCode": "FORBIDDEN",
  "status": "fail"
}

Name

Description

reasonCode

Type: string

Код ошибки:

  • FORBIDDEN — заказ существует, но был оплачен не через Яндекс Пэй;
  • ORDER_NOT_FOUND — заказ не найден в системе продавца;
  • ORDER_AMOUNT_MISMATCH — сумма заказа не совпадает с суммой в системе продавца;
  • ORDER_DETAILS_MISMATCH — детали заказа отличаются от данных в системе продавца;
  • OTHER — общая ошибка;
  • UNAUTHORIZED — не удалось проверить подпись JWT-токена;
  • TOKEN_EXPIRED — срок действия JWT-токена истек;
  • CONFLICT — данные в нотификации расходятся с состоянием заказа в системе продавца. Например, пришла нотификация об оплате для отмененного заказа.

Enum: FORBIDDEN, ITEM_NOT_FOUND, ORDER_NOT_FOUND, ORDER_AMOUNT_MISMATCH, ORDER_DETAILS_MISMATCH, OUT_OF_INVENTORY, PICKUP_POINT_NOT_FOUND, SHIPPING_DETAILS_MISMATCH, OTHER, UNAUTHORIZED, TOKEN_EXPIRED, CONFLICT

reason

Type: string

Описание причины ошибки.

Example: example

status

Type: string

Default: fail

No longer supported, please use an alternative and newer version.

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