/v1/orders/{order_id}/submit
Qabul qilish vaqtida to‘lanadigan Split to‘lovi uchun to‘lovni tasdiqlash so‘rovi.
CONFIRMED statusidagi to‘lovlar uchun mavjud. So‘rov muvaffaqiyatli bajarilganda holat CAPTUREDga o‘zgaradi.
Agar buyurtmani tasdiqlash bosqichida savat tarkibi rasmiylashtirish bosqichidagi savatdan farq qilsa,
cart va orderAmount maydonlari uchun yangi qiymatlarni yuboring.
Request
POST
https://pay.yandex.uz/api/merchant/v1/orders/{order_id}/submit
Production
POST
https://sandbox.pay.yandex.uz/api/merchant/v1/orders/{order_id}/submit
Sandbox
Path parameters
|
Name |
Description |
|
order_id |
Type: string Sotuvchi tomonidagi buyurtma identifikatori, u /orders so‘roviga javobda yuborilgan. Max length: Example: `` |
Body
application/json
{
"cart": {
"cartId": "example",
"coupons": [
{
"description": "Скидка 3%",
"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,
"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"
}
},
"externalOperationId": "example",
"orderAmount": "123.45"
}
|
Name |
Description |
|
externalOperationId |
Type: string Sotuvchi tizimidagi operatsiya identifikatori Max length: Example: |
|
cart |
All of 1 type
Yakuniy savat Example
|
|
orderAmount |
Type: string<double> Buyurtmaning yakuniy summasi. Agar Example: |
Coupon
|
Name |
Description |
|
value |
Type: string Kupon kodi Max length: Example: |
|
description |
Type: string Kupon tavsifi Max length: Example: |
|
status |
Type: string Enum: Example: |
Example
{
"description": "Скидка 3%",
"status": "VALID",
"value": "example"
}
Discount
|
Name |
Description |
|
amount |
Type: string<double> Chegirma summasi Example: |
|
description |
Type: string Matnli tavsif Max length: Example: |
|
discountId |
Type: string Sotuvchi tizimidagi chegirma identifikatori Max length: Example: |
Example
{
"amount": "123.45",
"description": "example",
"discountId": "example"
}
CartItemFeatures
|
Name |
Description |
|
pointsDisabled |
Type: boolean O‘zbekistonda mavjud emas. Default: |
|
tariffModifier |
Type: string Komissiyani hisoblash uchun tarif modifikatori. Savatdagi pozitsiyani qayta ishlash uchun komissiya hisoblanayotganda qaysi tarif qo‘llanishini belgilaydi. Enum: Example: |
Example
{
"pointsDisabled": false,
"tariffModifier": "VERY_LOW"
}
Measurements
|
Name |
Description |
|
height |
Type: number Balandligi, metrda |
|
length |
Type: number Uzunligi, metrda |
|
weight |
Type: number Og‘irligi, kilogrammda |
|
width |
Type: number Kengligi, metrda |
Example
{
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
}
ItemQuantity
|
Name |
Description |
|
count |
Type: string<double> Buyurtmadagi mahsulot miqdori Example: |
|
available |
Type: string<double> Mahsulot uchun maksimal mavjud miqdor Example: |
Example
{
"available": "123.45",
"count": "123.45"
}
CartItemWithoutFinalPriceCamelCase
|
Name |
Description |
|
productId |
Type: string Sotuvchi tizimidagi mahsulot ID raqami. So‘rov parametrlarida har bir mahsulot identifikatori Max length: Example: |
|
quantity |
All of 1 type
Buyurtmadagi mahsulot miqdori Example
|
|
description |
Type: string Mahsulot tavsifi Max length: Example: |
|
discountedUnitPrice |
Type: string<double> Bir pozitsiya uchun chegirmalarni hisobga olgan holda mahsulot birligining narxi Example: |
|
features |
All of 1 type
Mahsulot promo parametrlari Example
|
|
measurements |
All of 1 type
Mahsulotning o‘lchamlari va og‘irligi. Example
|
|
skuId |
Type: string Assortiment birligini tavsiflovchi noyob ID raqam. Individual tarifni qo‘llash uchun zarur. Max length: Example: |
|
subtotal |
Type: string<double> Chegirmalarsiz pozitsiya bo‘yicha umumiy narx Example: |
|
title |
Type: string Mahsulot nomi Max length: Example: |
|
total |
Type: string<double> Pozitsiya bo‘yicha chegirmalar hisobga olingan umumiy narx Example: |
|
type |
Type: string Mahsulot turi. Yetkazish xizmatlari bilan integratsiya uchun muhim Default: Enum: |
|
unitPrice |
Type: string<double> Chegirmasiz bir dona mahsulotning to‘liq narxi Example: |
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"
},
"skuId": "example",
"subtotal": "123.45",
"title": "example",
"total": "123.45",
"type": "UNSPECIFIED",
"unitPrice": "123.45"
}
CartTotal
|
Name |
Description |
|
amount |
Type: string<double> Barcha chegirmalar hisobga olingan savat qiymati. Example: |
Example
{
"amount": "123.45"
}
CartWithRequiredTotalWithoutFinalPrice
|
Name |
Description |
|
items |
Type: CartItemWithoutFinalPriceCamelCase[] Example
|
|
total |
Type: CartTotal Example
|
|
cartId |
Type: string Yandex tomonidagi savat identifikatori Max length: Example: |
|
coupons |
Type: Coupon[] Savatga qo‘llangan kuponlar Example
|
|
discounts |
Type: Discount[] Savatga qo‘llangan chegirmalar Example
|
|
externalId |
Type: string Sotuvchi tomonidagi savat identifikatori Max length: Example: |
|
measurements |
Type: Measurements Example
|
Example
{
"cartId": "example",
"coupons": [
{
"description": "Скидка 3%",
"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"
},
"skuId": "example",
"subtotal": "123.45",
"title": "example",
"total": "123.45",
"type": "UNSPECIFIED",
"unitPrice": "123.45"
}
],
"measurements": null,
"total": {
"amount": "123.45"
}
}
Responses
200 OK
Body
application/json
{
"code": 200,
"data": {
"operation": {
"amount": "123.45",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"pointsAmount": "123.45",
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
},
"status": "success"
}
|
Name |
Description |
|
code |
Type: unknown Default: |
|
data |
Type: OperationResponseData Example
|
|
status |
Type: string Default: Const: |
CartItemWithoutFinalPriceCamelCase
|
Name |
Description |
|
productId |
Type: string Sotuvchi tizimidagi mahsulot ID raqami. So‘rov parametrlarida har bir mahsulot identifikatori Max length: Example: |
|
quantity |
All of 1 type
Buyurtmadagi mahsulot miqdori Example
|
|
description |
Type: string Mahsulot tavsifi Max length: Example: |
|
discountedUnitPrice |
Type: string<double> Bir pozitsiya uchun chegirmalarni hisobga olgan holda mahsulot birligining narxi Example: |
|
features |
All of 1 type
Mahsulot promo parametrlari Example
|
|
measurements |
All of 1 type
Mahsulotning o‘lchamlari va og‘irligi. Example
|
|
pointsAmount |
Type: string<double> O‘zbekistonda mavjud emas. Example: |
|
skuId |
Type: string Assortiment birligini tavsiflovchi noyob ID raqam. Individual tarifni qo‘llash uchun zarur. Max length: Example: |
|
subtotal |
Type: string<double> Chegirmalarsiz pozitsiya bo‘yicha umumiy narx Example: |
|
title |
Type: string Mahsulot nomi Max length: Example: |
|
total |
Type: string<double> Pozitsiya bo‘yicha chegirmalar hisobga olingan umumiy narx Example: |
|
type |
Type: string Mahsulot turi. Yetkazish xizmatlari bilan integratsiya uchun muhim Default: Enum: |
|
unitPrice |
Type: string<double> Chegirmasiz bir dona mahsulotning to‘liq narxi Example: |
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"
},
"skuId": "example",
"subtotal": "123.45",
"title": "example",
"total": "123.45",
"type": "UNSPECIFIED",
"unitPrice": "123.45"
}
CartTotal
|
Name |
Description |
|
amount |
Type: string<double> Barcha chegirmalar hisobga olingan savat qiymati. Example: |
|
pointsAmount |
Type: string<double> O‘zbekistonda mavjud emas. Example: |
Example
{
"amount": "123.45",
"pointsAmount": "123.45"
}
CartWithRequiredTotalWithoutFinalPrice
|
Name |
Description |
|
items |
Type: CartItemWithoutFinalPriceCamelCase[] Example
|
|
total |
Type: CartTotal Example
|
|
cartId |
Type: string Yandex tomonidagi savat identifikatori Max length: Example: |
|
coupons |
Type: Coupon[] Savatga qo‘llangan kuponlar Example
|
|
discounts |
Type: Discount[] Savatga qo‘llangan chegirmalar Example
|
|
externalId |
Type: string Sotuvchi tomonidagi savat identifikatori Max length: Example: |
|
measurements |
Type: Measurements Example
|
Example
{
"cartId": "example",
"coupons": [
{
"description": "Скидка 3%",
"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"
},
"skuId": "example",
"subtotal": "123.45",
"title": "example",
"total": "123.45",
"type": "UNSPECIFIED",
"unitPrice": "123.45"
}
],
"measurements": null,
"total": {
"amount": "123.45",
"pointsAmount": "123.45"
}
}
Operation
|
Name |
Description |
|
amount |
Type: string<double> Operatsiya summasi fiat valyutada Example: |
|
operationId |
Type: string<uuid> Max length: Example: |
|
operationType |
Type: string Enum: |
|
orderId |
Type: string Max length: Example: |
|
created |
Type: string<date-time> Operatsiya yaratilgan sana va vaqt (ISO 8601) Example: |
|
externalOperationId |
Type: string Sotuvchi tomonidagi tranzaksiya identifikatori Max length: Example: |
|
params |
Type: object Example
|
|
pointsAmount |
Type: string<double> O‘zbekistonda mavjud emas. Example: |
|
reason |
Type: string Xatolik sababi Max length: Example: |
|
status |
Type: string Default: Enum: |
|
updated |
Type: string<date-time> Operatsiya yangilangan sana va vaqt (ISO 8601) Example: |
Example
{
"amount": "123.45",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"pointsAmount": "123.45",
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
OperationResponseData
|
Name |
Description |
|
operation |
Type: Operation Example
|
Example
{
"operation": {
"amount": "123.45",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"pointsAmount": "123.45",
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
}