/v1/orders/
Buyurtma tafsilotlarini olish so‘rovi.
So‘rov buyurtma tafsilotlarini hamda qaytarish bo‘yicha tranzaksiyalar ro‘yxatini qaytaradi.
Request
GET
https://pay.yandex.uz/api/merchant/v1/orders/{order_id}
Production
GET
https://sandbox.pay.yandex.uz/api/merchant/v1/orders/{order_id}
Sandbox
Path parameters
|
Name |
Description |
|
order_id |
Type: string Buyurtma yaratilganda Max length: Example: `` |
Responses
200 OK
Body
application/json
{
"code": 200,
"data": {
"delivery": {
"actualPrice": "123.45",
"created": "2025-01-01T00:00:00Z",
"price": "123.45",
"status": "NEW",
"updated": "2025-01-01T00:00:00Z"
},
"operations": [
{
"amount": "123.45",
"approvalCode": "example",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
],
"order": {
"cart": {
"cartId": "example",
"coupons": [
null
],
"discounts": [
null
],
"externalId": "example",
"items": [
null
],
"measurements": {},
"total": null
},
"coolingPeriodExpiresAt": "2025-01-01T00:00:00Z",
"created": "2025-01-01T00:00:00Z",
"currencyCode": "RUB",
"isPrepayment": false,
"merchantId": "123e4567-e89b-12d3-a456-426614174000",
"metadata": "example",
"orderAmount": "123.45",
"orderId": "example",
"paymentMethod": {
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "SPLIT"
},
"paymentStatus": "PENDING",
"paymentUrl": "example",
"reason": "example",
"updated": "2025-01-01T00:00:00Z"
}
},
"status": "success"
}
|
Name |
Description |
|
code |
Type: unknown Default: |
|
data |
Type: OrderResponseData Example
|
|
status |
Type: string Default: Const: |
Delivery
|
Name |
Description |
|
price |
Type: string<double> Xaridor uchun yetkazish narxi Example: |
|
actualPrice |
Type: string<double> Sotuvchi uchun yetkazish narxi Example: |
|
created |
Type: string<date-time> Yetkazish yaratilgan sana va vaqt (ISO 8601) Example: |
|
status |
Type: string Yetkazish holati Default: Enum: |
|
updated |
Type: string<date-time> Yetkazish yangilangan sana va vaqt (ISO 8601) Example: |
Example
{
"actualPrice": "123.45",
"created": "2025-01-01T00:00:00Z",
"price": "123.45",
"status": "NEW",
"updated": "2025-01-01T00:00:00Z"
}
OrderResponseOperation
|
Name |
Description |
|
amount |
Type: string<double> Operatsiya summasi fiat valyutada Example: |
|
operationId |
Type: string<uuid> Max length: Example: |
|
operationType |
Type: string Enum: |
|
orderId |
Type: string Max length: Example: |
|
approvalCode |
Type: string Protsessing markazidan olingan tranzaksiya tasdiqlash kodi. 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
|
|
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",
"approvalCode": "example",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
Coupon
|
Name |
Description |
|
value |
Type: string 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"
}
CartItem
|
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
|
|
finalPrice |
Type: string<double> Pozitsiya va savat bo‘yicha barcha chegirmalar hisobga olingan holdagi mahsulotning birlik narxi 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"
},
"finalPrice": "123.45",
"measurements": {
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
},
"pointsAmount": "123.45",
"productId": "example",
"quantity": {
"available": "123.45",
"count": "123.45"
},
"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"
}
Cart
|
Name |
Description |
|
items |
Type: CartItem[] Savatchadagi mahsulotlar roʻyxati 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
|
|
total |
All of 1 type
Toʻlovga yoʻnaltiriladigan savatchaning yakuniy qiymati Default: |
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"
},
"finalPrice": "123.45",
"measurements": {
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
},
"pointsAmount": "123.45",
"productId": "example",
"quantity": {
"available": "123.45",
"count": "123.45"
},
"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 Const: Example: |
|
cardLast4 |
Type: string Max length: Example: |
|
cardNetwork |
Type: string To‘lov tizimi Enum: Example: |
Example
{
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "SPLIT"
}
BaseMerchantApiOrder
|
Name |
Description |
|
cart |
All of 1 type
Savat Example
|
|
currencyCode |
Type: string Buyurtma valyutasining uch harfli kodi (ISO 4217). Enum: Max length: |
|
coolingPeriodExpiresAt |
Type: string<date-time> Sovutish muddati tugash sanasi va vaqti (ISO 8601) Example: |
|
created |
Type: string<date-time> Buyurtma yaratilgan sana va vaqt (ISO 8601) Example: |
|
isPrepayment |
Type: boolean Buyurtma “kechiktirilgan to‘lov” oqimi bo‘yicha amalga oshiriladimi. Agar parametr Default: |
|
merchantId |
Type: string<uuid> Max length: Example: |
|
metadata |
Type: string Tugmani ishga tushirish vaqtida uzatilgan ixtiyoriy ma’lumotlar Max length: Example: |
|
orderAmount |
Type: string<double> Qaytarishlar, yetkazish, chegirmalar va promokodlarni hisobga olgan holda to‘lov uchun buyurtmaning to‘liq qiymati Example: |
|
orderId |
Type: string /orders xizmatiga uzatilgan sotuvchi tomonidagi buyurtma ID raqami. Max length: Example: |
|
paymentMethod |
Type: PaymentMethod Example
|
|
paymentStatus |
Type: string Batafsil ma’lumotni Operatsiya holatlari bo‘limidan o‘qing. Enum: Example: |
|
paymentUrl |
Type: string Buyurtma uchun to‘lov havolasi Max length: Example: |
|
reason |
Type: string Buyurtma bekor qilinish sababi. Max length: Example: |
|
updated |
Type: string<date-time> Buyurtma yangilangan sana va vaqt (ISO 8601) Example: |
Example
{
"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,
"finalPrice": "123.45",
"measurements": null,
"pointsAmount": "123.45",
"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": null
},
"coolingPeriodExpiresAt": "2025-01-01T00:00:00Z",
"created": "2025-01-01T00:00:00Z",
"currencyCode": "RUB",
"isPrepayment": false,
"merchantId": "123e4567-e89b-12d3-a456-426614174000",
"metadata": "example",
"orderAmount": "123.45",
"orderId": "example",
"paymentMethod": {
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "SPLIT"
},
"paymentStatus": "PENDING",
"paymentUrl": "example",
"reason": "example",
"updated": "2025-01-01T00:00:00Z"
}
OrderResponseData
|
Name |
Description |
|
delivery |
Type: Delivery Example
|
|
operations |
Type: OrderResponseOperation[] Example
|
|
order |
Type: BaseMerchantApiOrder Example
|
Example
{
"delivery": {
"actualPrice": "123.45",
"created": "2025-01-01T00:00:00Z",
"price": "123.45",
"status": "NEW",
"updated": "2025-01-01T00:00:00Z"
},
"operations": [
{
"amount": "123.45",
"approvalCode": "example",
"created": "2025-01-01T00:00:00Z",
"externalOperationId": "example",
"operationId": "123e4567-e89b-12d3-a456-426614174000",
"operationType": "AUTHORIZE",
"orderId": "example",
"params": {},
"reason": "example",
"status": "PENDING",
"updated": "2025-01-01T00:00:00Z"
}
],
"order": {
"cart": {
"cartId": "example",
"coupons": [
{}
],
"discounts": [
{}
],
"externalId": "example",
"items": [
{}
],
"measurements": {
"height": 0.5,
"length": 0.5,
"weight": 0.5,
"width": 0.5
},
"total": null
},
"coolingPeriodExpiresAt": "2025-01-01T00:00:00Z",
"created": "2025-01-01T00:00:00Z",
"currencyCode": "RUB",
"isPrepayment": false,
"merchantId": "123e4567-e89b-12d3-a456-426614174000",
"metadata": "example",
"orderAmount": "123.45",
"orderId": "example",
"paymentMethod": {
"cardLast4": "example",
"cardNetwork": "AMEX",
"methodType": "SPLIT"
},
"paymentStatus": "PENDING",
"paymentUrl": "example",
"reason": "example",
"updated": "2025-01-01T00:00:00Z"
}
}