BTS API Hujjatlari
Buyurtma stickeri

Buyurtma stickeri

GET /v1/order/sticker?orderId=<orderId>

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.

Bir nechta buyurtma stickerini olish uchun POST (JSON) da orderIds yuborilishi kerak hamda mavjud orderId lar yuborilsa bitta pdf urlda bir nechta buyurtma stickeri bo'ladi. 
Bunda maximum 50ta orderId yuborish mumkin

API Server https://apitest.bts.uz:28345/
Base Path /v1/order/sticker?orderId=<orderId>
Full URL
https://apitest.bts.uz:28345/v1/order/sticker?orderId=<orderId>
Authentication Bearer Token
Headers
Header
Value
Req.
Authorization
Bearer {token}
🔒
Content-Type
application/json
🔒
Accept
application/json
🔒
language
uz
🔒

REQUEST

// Faqat Multi Labelda yuborilsin
{
    "orderIds": [111111,222222,333333,444444,55555]
}
Field Type Description
orderIds array<int> Bir nechta buyurtma stickerini olish uchun POST (JSON) da orderIds yuborilishi kerak hamda mavjud orderId lar yuborilsa bitta pdf urlda bir nechta buyurtma stickeri bo'ladi. Bunda maximum 50ta orderId yuborish mumkin

RESPONSE

HTTP 200
Response Body
{
    "status": true,
    "message": "Ma’lumot muvaffaqiyatli olindi",
    "status_code": 200,
    "data": {
        "labelEncode": null,
        "labelSticker": "{pdf_url}"
    }
}
No schema defined.
HTTP 400
Response Body
{
    "name": "Bad Request",
    "message": "Quyidagi zarur parametrlar mavjud emas: orderId",
    "code": 0,
    "status": 400,
    "type": "yii\\web\\BadRequestHttpException"
}
No schema defined.
HTTP 401
Response Body
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401,
    "type": "yii\\web\\UnauthorizedHttpException"
}
No schema defined.
HTTP 404
Response Body
{
    "status": false,
    "message": "error.not_found",
    "status_code": 404
}
No schema defined.