Buyurtma haqida to'liq ma'lumot
Buyurtma haqida to'liq ma'lumot
GET
/v1/order/detail?orderId=<orderId>
Buyurtma haqida to'liq ma'lumot
REQUEST
Request Body
No schema defined.
RESPONSE
200
Success
Masalan: Success.
Content-Type:
application/json
Response Body
{
"status": true,
"message": "success.retrieved",
"status_code": 200,
"data": {
"orderId": 4293640,
"clientId": "abc123mn12",
"wcs_code": "900001",
"barcode": "019914293640",
"customer": {
"id": 4722,
"name": "ООО «HAPPY PILLS» 6716sss"
},
"status": {
"code": null,
"info": "У отправителя (У ОТПРАВИТЕЛЯ)"
},
"pickup_type": "courier",
"dropoff_type": "courier",
"sender": {
"name": null,
"phone": "+998991234560",
"address": "Toshkent sh., Bobur ko‘chasi, 5-A",
"region": {
"id": 6,
"name": "город Ташкент",
"code": "01"
},
"city": {
"id": 195,
"name": "Учтепа тумани",
"code": null
},
"village": null,
"branch": {
"id": 112,
"name": "FARHOD",
"code": null
},
"latitude": "41.311081",
"longitude": "69.240562"
},
"receiver": {
"name": "Odil Ahkmedov",
"phone": "+998991234567",
"phone1": "+998901096560",
"address": "Gozovo qish. 41 uy",
"region": {
"id": 6,
"name": "город Ташкент",
"code": "01"
},
"city": {
"id": 194,
"name": "Олмазор тумани",
"code": null
},
"village": null,
"branch": {
"id": 29,
"name": "OLMAZOR",
"code": null
},
"latitude": "41.354213",
"longitude": "69.198745",
"stickerData": {
"hubName": "Тошкент шахри 01",
"cityName": "Olmazor tumani",
"branchName": "0106 - OLMAZOR <b> (Д-КА)</b>",
"zonaId": 26
}
},
"cargo": {
"weight": "3.000",
"volume": "0.000",
"piece": 2,
"package": {
"id": 4,
"name": "СУМКА"
},
"postType": {
"id": 26,
"name": "KANTSELYARIYA TOVARLARI"
},
"postTypes": [],
"options": {
"with_unired": null,
"urgent": 0,
"takePhoto": 1,
"bringBackWaybill": 1,
"bringBackMoney": 1,
"back_money": "10000"
}
},
"cost": null,
"senderDate": "2025-12-25",
"receiverDate": "2025-12-25",
"declarations": [],
"goods": [],
"inn": null,
"ready_to_take": true,
"tracking": "https://bts.uz/uz/waybill-tracking?term=eyJ3YXliaWxsX2lkIjo0MjkzNjQwLCJiYXJjb2RlIjoiMDE5OTE0MjkzNjQwIiwiaXNfcmVjZWl2ZXIiOm51bGx9"
}
}
| Field | Type | Description |
|---|---|---|
status |
boolean | Holat |
message |
string | Xabar |
status_code |
string | Kod Holati |
orderId |
integer | Buyurtma identifikatori |
clientId |
integer | Mijoz identifikatori |
wcs_code |
string | wcs kodi |
barcode |
string | Shtrix-kod |
customer[id] |
integer | Mijoz identifikatori |
customer[name] |
string | Mijoz Ismi |
status[code] |
string | Kod Xolati |
status[info] |
string | Holat haqida ma'lumot |
pickup_type |
string | Olib ketish turi |
dropoff_type |
string | Tashlab ketish turi |
sender[name] |
string | Yuboruvchining ismi |
sender[phone] |
string | Jo'natuvchining telefon raqami |
sender[address] |
string | Jo'natuvchining manzili |
sender[region][id] |
integer | Yuboruvchi mintaqasi identifikatori |
sender[region][name] |
string | Yuboruvchi mintaqasi nomi |
sender[region][code] |
string | Jo'natuvchining mintaqa kodi |
sender[city][id] |
integer | Yuboruvchi shahar identifikatori |
sender[city][name] |
string | Yuboruvchi shahar nomi |
sender[city][code] |
string | Yuboruvchi shahar kodi |
sender[village] |
string | Jo'natuvchi qishlog'i |
sender[branch][id] |
integer | Jo'natuvchi filiali identifikatori |
sender[branch][name] |
string | Jo'natuvchi filialining nomi |
sender[branch][code] |
string | Jo'natuvchi filialining kodi |
sender[latitude] |
string | Jo'natuvchi latitudi |
sender[longitude] |
string | Jo'natuvchi longitudi |
receiver[name] |
string | Qabul qiluvchining ismi |
receiver[phone] |
string | Qabul qiluvchining telefon raqami |
receiver[phone1] |
string | Qabul qiluvchining telefon raqami (qo'shimcha) |
receiver[address] |
string | Qabul qiluvchining manzili |
receiver[region][id] |
integer | Qabul qiluvchi mintaqa identifikatori |
receiver[region][name] |
string | Qabul qiluvchi mintaqa nomi |
receiver[region][code] |
string | Qabul qiluvchining mintaqaviy kodi |
receiver[city][id] |
integer | Qabul qiluvchi shahar identifikatori |
receiver[city][name] |
string | Qabul qiluvchi shahar nomi |
receiver[city][code] |
string | Qabul qiluvchining shahar kodi |
receiver[village] |
string | Qabul qiluvchi qishlog'i |
receiver[branch][id] |
integer | Qabul qiluvchi filial identifikatori |
receiver[branch][name] |
string | Qabul qiluvchi filial nomi |
receiver[branch][code] |
string | Qabul qiluvchi filial kodi |
receiver[latitude] |
string | Qabul qiluvchi latitudi |
receiver[longitude] |
string | Qabul qiluvchi longitudi |
receiver[stickerData][hubName] |
string | Qabul qiluvchi stiker ma'lumotlar markazi nomi |
receiver[stickerData][cityName] |
string | Qabul qiluvchi stiker ma'lumotlari Shahar nomi |
receiver[stickerData][branchName] |
string | Qabul qiluvchi stiker ma'lumotlari filiali nomi |
receiver[stickerData][zonaId] |
integer | Qabul qiluvchi stikerining ma'lumotlar zonasi identifikatori |
cargo[weight] |
float | Yuk og'irligi |
cargo[volume] |
float | Yuk hajmi |
cargo[piece] |
integer | Yuk soni |
cargo[package][id] |
integer | Yuk paketi identifikatori |
cargo[package][name] |
string | Yuk paketining nomi |
cargo[postType][id] |
integer | Yuk pochtasi turi identifikatori |
cargo[postType][name] |
string | Yuk pochtasi turi nomi |
cargo[options][with_unired] |
string | Unired bilan yuk tashish imkoniyatlari |
cargo[options][urgent] |
integer | Yuk tashish imkoniyatlari shoshilinch |
cargo[options][takePhoto] |
integer | Yuk tashish imkoniyatlari suratga olish |
cargo[options][bringBackWaybill] |
integer | Qaytarilgan yuk tashish varaqasi |
cargo[options][bringBackMoney] |
integer | Yuk tashish opsiyalari qaytarilgan pul |
cargo[options][back_money] |
float | Yuk tashish imkoniyatlari Qaytarilgan pul miqdori |
cost |
float | Narxi |
senderDate |
string | Yuborilgan sana |
receiverDate |
string | Qabul qilingan sana |
inn |
string | soliq to‘lovchining identifikatsiya raqami |
ready_to_take |
boolean | Qabul qilishga tayyor |
tracking |
string | kuzatuv |
400
Bad Request
Masalan: Bad Request.
Content-Type:
application/json
Response Body
{
"name": "Bad Request",
"message": "Quyidagi zarur parametrlar mavjud emas: orderId",
"code": 0,
"status": 400,
"type": "yii\\web\\BadRequestHttpException"
}
No schema defined.
404
Not Foound
Masalan: Not Foound.
Content-Type:
application/json
Response Body
{
"status": false,
"message": "error.not_found",
"status_code": 404
}
No schema defined.