list orders
This commit is contained in:
@@ -129,6 +129,42 @@ curl --location 'https://land.dbiz.com//api/method/upload_file' \
|
||||
--form 'optimize="true"'
|
||||
|
||||
|
||||
#get list order
|
||||
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.sales_order.get_list' \
|
||||
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; full_name=Ha%20Duy%20Lam; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; system_user=yes; user_id=lamhd%40gmail.com; user_image=/files/avatar_0986788766_1763627962.jpg' \
|
||||
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"limit_start" : 0,
|
||||
"limit_page_length" : 0
|
||||
|
||||
}'
|
||||
|
||||
#response list order
|
||||
{
|
||||
"message": [
|
||||
{
|
||||
"name": "SAL-ORD-2025-00107",
|
||||
"transaction_date": "2025-11-24",
|
||||
"delivery_date": "2025-11-24",
|
||||
"address": "123 add dad",
|
||||
"grand_total": 3355443.2,
|
||||
"status": "Chờ phê duyệt",
|
||||
"status_color": "Warning"
|
||||
},
|
||||
{
|
||||
"name": "SAL-ORD-2025-00106",
|
||||
"transaction_date": "2025-11-24",
|
||||
"delivery_date": "2025-11-24",
|
||||
"address": "123 add dad",
|
||||
"grand_total": 3355443.2,
|
||||
"status": "Chờ phê duyệt",
|
||||
"status_color": "Warning"
|
||||
},
|
||||
...
|
||||
]
|
||||
}
|
||||
|
||||
#order detail
|
||||
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.sales_order.get_detail' \
|
||||
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d' \
|
||||
|
||||
Reference in New Issue
Block a user