Buyurtma stickeri
Buyurtma stickeri
GET
/v1/order/sticker?orderId=<orderId>&decode=<decode>
Ushbu bo‘lim orqali mavjud buyurtma uchun sticker (yuk yorlig‘i) olinadi.
So‘rov yuborilganda tizim buyurtmaga tegishli yuk yorlig‘ini shakllantiradi va yuklab olish uchun tayyor holatda qaytaradi. Javobda stikerni PDF ko‘rinishida olish mumkin bo‘lgan havola mavjud bo‘ladi.
Ushbu endpoint faqat stikerni olish uchun ishlatiladi, buyurtma ma’lumotlarini o‘zgartirmaydi.
decode=1 yuborilganda
{
"labelEncode_base64": "data:application/pdf;base64,dfbkfbekwrjhgbjergbjerbg",
"labelSticker_base64": "data:application/pdf;base64,1111"
}
REQUEST
| Field | Type | Description |
|---|---|---|
orderId * |
integer | Query: /v1/order/sticker?orderId= |
decode |
integer | 0 — PDF URL; 1 — base64 |
RESPONSE
HTTP 200
Response Body
{
"status": true,
"message": "Ma’lumot muvaffaqiyatli olindi.",
"status_code": 200,
"data": {
"labelEncode": null,
"labelSticker": "https://space2.bts.uz:39215/waybill_barcodes/shortb7e328ed6d28dcaa72b969b72428ee7f.pdf"
}
}
| Field | Type | Description |
|---|---|---|
status |
boolean | So'rov muvaffaqiyatli bajarilganligi (true/false) |
message |
string | Javob xabari |
status_code |
integer | HTTP status kodi |
data[labelEncode] |
string | Etiketka PDF URL (decode=0) |
data[labelSticker] |
string | Sticker PDF URL (decode=0) |
data[labelEncode_base64] |
string | Etiketka base64 (decode=1) |
data[labelSticker_base64] |
string | Sticker base64 (decode=1) |