Buyurtmani qisman qaytarish
Buyurtmani qisman qaytarish
POST
/v1/order/partial-order-return
Ushbu API buyurtmaning umumiy holatini o‘zgartirmagan holda, faqat tanlangan mahsulotlar va ularning miqdorini qisman qaytarish yoki bekor qilish imkonini beradi.
REQUEST
Request Body
{
"order_id": 1220011,
"order_items": [
{
"client_product_id": 1,
"client_product_variation_id": 1,
"quantity": 1
}
]
}
| Field | Type | Description |
|---|---|---|
order_id * |
integer | Qaytarish amalga oshirilayotgan buyurtma raqami |
order_items * |
array<object> | Qaytarilayotgan mahsulotlar ro‘yxati |
client_product_id * |
integer | Mijoz mahsuloti identifikatori |
client_product_variation_id |
integer | Mahsulot variatsiyasi identifikatori |
quantity * |
integer | Qaytarilayotgan mahsulot miqdori |
RESPONSE
200
Record successfully created
Masalan: Record successfully created.
Content-Type:
application/json
Response Body
{
"message": "Record successfully created.",
"data": {
"id": 2,
"order_id": 1220011,
"orderReturnItems": [
{
"order_return_id": 2,
"product_id": 1,
"quantity": 1
}
]
}
}
| Field | Type | Description |
|---|---|---|
message * |
string | Qisman qaytarish muvaffaqiyatli amalga oshirilganligi haqida xabar |
data * |
object | Qisman qaytarilgan buyurtma ma’lumotlari |
id * |
integer | Qisman qaytarish amaliyoti identifikatori |
order_id * |
integer | Asl buyurtma raqami |
orderReturnItems * |
array<object> | Qaytarilgan mahsulotlar ro‘yxati |
order_return_id * |
integer | Qisman qaytarish identifikatori |
product_id * |
integer | Qaytarilgan mahsulot identifikatori |
quantity * |
integer | Qaytarilgan mahsulot miqdori |