/v1/subscriptions/recur
Request
POST
https://pay.yandex.ru/api/merchant/v1/subscriptions/recur
Production
POST
https://sandbox.pay.yandex.ru/api/merchant/v1/subscriptions/recur
Sandbox
Body
{
"amount": "123.45",
"cart": {
"externalId": "string",
"items": [
{
"description": "string",
"discountedUnitPrice": "123.45",
"productId": "string",
"quantity": {
"available": "123.45",
"count": "123.45",
"label": "string"
},
"receipt": {
"agent": {
"agentType": 1,
"operation": "string",
"paymentsOperator": {
"phones": [
"string"
]
},
"phones": [
"string"
],
"transferOperator": {
"address": "string",
"inn": "string",
"name": "string",
"phones": [
"string"
]
}
},
"excise": "123.45",
"markQuantity": {
"denominator": 0,
"numerator": 0
},
"measure": 0,
"paymentMethodType": 1,
"paymentSubjectType": 1,
"productCode": "string",
"supplier": {
"inn": "string",
"name": "string",
"phones": [
"string"
]
},
"tax": 1,
"title": "string"
},
"subtotal": "123.45",
"title": "string",
"total": "123.45",
"unitPrice": "123.45"
}
],
"total": {
"amount": "123.45",
"label": "string"
}
},
"currencyCode": "RUB",
"metadata": "string",
"orderId": "string",
"parentOrderId": "string",
"purpose": "string"
}
Name |
Type |
Description |
amount* |
string<double> |
Сумма списания
|
cart* |
Корзина |
|
currencyCode* |
string |
Трехбуквенный код валюты заказа (ISO 4217)
|
metadata |
string |
Произвольные данные по заказу для внутреннего использования
|
orderId* |
string |
Идентификатор заказа на стороне продавца (должен быть уникальным)
|
parentOrderId* |
string |
Идентификатор стартового заказа
|
purpose |
string |
Назначение платежа
|
RenderedCart
Корзина
Name |
Type |
Description |
externalId |
string |
Переданный продавцом идентификатор корзины
|
items* |
||
total* |
Итоговая стоимость корзины, которая пойдет в оплату |
RenderedCartItem
Name |
Type |
Description |
description |
string |
Описание товара
|
discountedUnitPrice |
string<double> |
Цена за единицу товара с учётом скидок на позицию
|
productId* |
string |
Id товара в системе продавца. В параметрах запроса каждый идентификатор товара |
quantity* |
Количество товара в заказе |
|
receipt |
Данные для формирования чека |
|
subtotal |
string<double> |
Суммарная цена за позицию без учета скидок
|
title* |
string |
Наименование товара
|
total* |
string<double> |
Суммарная цена за позицию с учётом скидок на позицию
|
unitPrice |
string<double> |
Полная цена за единицу товара без учетка скидки
|
CartTotal
Итоговая стоимость корзины, которая пойдет в оплату
Name |
Type |
Description |
amount* |
string<double> |
Стоимость корзины с учетом всех скидок, и без учета доставки
|
label |
string |
Max length: |
ItemQuantity
Количество товара в заказе
Name |
Type |
Description |
available |
string<double> |
Максимально доступное количество товара
|
count* |
string<double> |
Количество товара в заказе
|
label |
string |
Название единиц измерения, например "кг" или "шт"
|
ItemReceipt
Данные для формирования чека
Name |
Type |
Description |
agent |
||
excise |
string<double> |
Не должно содержать больше двух знаков после запятой.
Например: 1.12, 5.1, 10, 11.00 .
|
markQuantity |
||
measure |
integer |
Описание значений: Ссылка
|
paymentMethodType |
integer |
Описание значений: Ссылка
|
paymentSubjectType |
integer |
Описание значений: Ссылка
|
productCode |
string<base64> |
Код товара (base64 кодированный массив от 1 до 32 байт) |
supplier |
||
tax* |
integer |
Описание значений: Ссылка
|
title |
string |
Max length: |
Agent
Name |
Type |
Description |
agentType* |
integer |
Описание значений: Ссылка
|
operation |
string |
Max length: |
paymentsOperator |
||
phones |
string[] |
Max length: |
transferOperator |
MarkQuantity
Name |
Type |
Description |
denominator* |
integer<int32> |
|
numerator* |
integer<int32> |
Supplier
Name |
Type |
Description |
inn |
string |
Max length: |
name |
string |
Max length: |
phones |
string[] |
Max length: |
PaymentsOperator
Name |
Type |
Description |
phones |
string[] |
Max length: |
TransferOperator
Name |
Type |
Description |
address |
string |
Max length: |
inn |
string |
Max length: |
name |
string |
Max length: |
phones |
string[] |
Max length: |
Responses
200 OK
Body
{
"code": 200,
"data": {
"operationId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b"
},
"status": "success"
}
Name |
Type |
Description |
code |
number |
Default: |
data |
||
status |
string |
Enum: |
RecurSubscriptionResponseData
Name |
Type |
Description |
operationId* |
string<uuid> |
Max length: |