BTS API Hujjatlari
Tovarlarni qabul qilish

Tovarlarni qabul qilish

POST /v1/receiving-goods/create

Ushbu API omborga tovarlarni qabul qilish jarayonini yaratish va ro‘yxatdan o‘tkazish uchun mo‘ljallangan. Qabul qilish jarayoni orqali kelayotgan tovarlar Fulfillment tizimida nazoratga olinadi va keyingi ombor hamda logistika operatsiyalari uchun tayyor holatga keltiriladi.

API Server http://wms.bts.uz:8040/
Base Path /v1/receiving-goods/create
Full URL
http://wms.bts.uz:8040/v1/receiving-goods/create
Authentication Bearer Token
Headers
Header
Value
Req.
Authorization
Bearer {token}
🔒
Content-Type
application/json
🔒
Accept
application/json
🔒

REQUEST

Request Body
                     
                     {
  "client_receiving_good_code": "CRGC123456",
  "receiving_goods": [
    {
      "client_product_id": 201,
      "client_product_variation_id": 1,
      "product_cart_sku": "CRGC123456",
      "product_variation_sku": "VAR123456",
      "product_sku": "SKU123456",
      "size": "XL",
      "color": "Red",
      "quantity": 3,
      "nomenclature": "Laptop Dell XPS 15",
      "price": 1500,
      "total_amount": 15000,
      "package_quantity": 5,
      "vat_rate": 15,
      "vat_amount": 2250,
      "discount_amount": 500,
      "under_delivery_percent": 5,
      "over_delivery_percent": 2,
      "nomenclature_package": "Box",
      "comment": "Yetkazib berish kechiktirildi, qo'shimcha tekshirish talab etiladi.",
      "price_includes_vat": true
    }
  ]
}                     
                
Field Type Description
client_receiving_good_code * string Mijoz tomonidan berilgan qabul qilish hujjati kodi
receiving_goods * array<object> Qabul qilinayotgan mahsulotlar ro‘yxati
receiving_goods.client_product_id * integer Mijoz mahsulotining identifikatori
receiving_goods.client_product_variation_id * integer Mahsulot variatsiyasi identifikatori
receiving_goods.product_cart_sku * string Mahsulot kartasi SKU kodi
receiving_goods.product_variation_sku * string Mahsulot variatsiyasi SKU kodi
receiving_goods.product_sku * string Mahsulotning asosiy SKU kodi
receiving_goods.size string Mahsulot o‘lchami
receiving_goods.color string Mahsulot rangi
receiving_goods.quantity * integer Qabul qilinayotgan miqdor
receiving_goods.nomenclature * string Mahsulot nomenklaturasi
receiving_goods.price * float Bir dona mahsulot narxi
receiving_goods.total_amount * float Umumiy summa
receiving_goods.package_quantity integer Qadoqlar soni
receiving_goods.vat_rate integer QQS foizi
receiving_goods.vat_amount float QQS summasi
receiving_goods.discount_amount float Chegirma summasi
receiving_goods.under_delivery_percent integer Kam yetkazib berish foizi
receiving_goods.over_delivery_percent integer Ortiqcha yetkazib berish foizi
receiving_goods.nomenclature_package string Nomenklatura qadoqlash turi
receiving_goods.comment string Qo‘shimcha izoh
receiving_goods.price_includes_vat * boolean Narx QQS bilanmi

RESPONSE

200 Record successfully created
Masalan: Record successfully created. Content-Type: application/json
Response Body
                                 
                                 {
  "message": "Record successfully created."
}                                 
                            
Field Type Description
message * string Amal muvaffaqiyatli bajarilganligi haqidagi xabar