URL = '/api/v2/public/order/post/register/bulk/restriction/'
METHOD = 'POST'
{
"shop_id": "450a71a6-5cf5-45bg-9561-57e854e04572",
"orders": [
{
"address": "tehran-...",
"city_code": "1",
"province_code": "1",
"description": null,
"email": null,
"employee_code": "-1",
"first_name": "my first name",
"last_name": "my last name",
"mobile": "09011111111",
"phone": null,
"postal_code": "1313131313",
"pay_type": "1",
"order_type": "0",
"package_weight": 10,
"presenter_code":999,
"products": [
{
"count": 1,
"discount": 0,
"price": 5000,
"title": "my product title",
"weight": 500,
"product_id": 23
}
]
}
]
}
orders
is a list of orders.
field | required | allow null | allow blank | description | type |
shop_id | true | false | false | شناسه فروشگاه | str |
address | true | false | false | آدرس گیرنده | str |
city_code | true | false | false | کد شهرستان | int |
province_code | true | false | false | کد استان | int |
description | true | true | false | توضیحات | str |
email | true | true | false | ایمیل | str |
employee_code | true | false | false | کد کارمند | int |
first_name | true | false | false | نام | str |
last_name | true | false | false | نام خانوادگی | str |
mobile | true | false | false | شماره موبایل | str |
phone | true | true | false | شماره تلفن | str |
postal_code | true | false | false | کدپستی | int |
pay_type | true | false | false | نوع پرداخت سفارش | int |
order_type | true | false | false | نوع سفارش | int |
package_weight | true | false | false | وزن بسته بندی | int |
presenter_code | false | false | false | کد معرف | int |
count | true | false | false | تعداد محصول | int |
discount | true | false | false | تخفیف محصول | int |
price | true | true | false | مبلغ محصول | int |
title | true | true | false | نام محصول | int |
weight | true | true | false | وزن بسته بندی | int |
product_id | true | true | false | شناسه یکتا محصول | int |
{
"returns": {
"status": 200,
"message": "عملیات با موفقیت انجام شد."
},
"entries": [
{
"id": "a93f6b7f-d05e-4bee-a700-deb0d16572bf",
"order_id": 19393,
"is_success": true,
"message": "عملیات با موفقیت انجام شد.",
"full_name": "my first name my last name",
"address": "tehran-..."
}
]
}
- محدودیت ارسال برای ثبت سفارش دسته جمعی بصورت لحظه ای 20 سفارش میباشد.