List
Get the list of orders
HTTP Request
GET /api/v3/orders
Query Parameters
Parameter | Default | Description |
---|---|---|
order_type | Order type (1 - Purchase order, 2 - Sales order) | |
order_date_from | Order date from (Y-m-d) | |
order_date_to | Order date to (Y-m-d) | |
created_at_from | Order creation date from (Y-m-d) | |
created_at_to | Order creation date to (Y-m-d) | |
account_id | Customer ID | |
offset | Starting position to retrieve data | |
limit | Number of records per page |
Body
{
"records": [
{
"order_id": "14219",
"order_code": "DH14219",
"order_type": "2",
"amount": "1,000,000.0",
"f_amount": "0.0",
"discount": "0.0",
"discount_amount": "0.0",
"vat_amount": "0.0",
"account_info": {
"account_id": "22",
"account_code": "KH4989988",
"email": null,
"phone": "09370399001",
"address": "11 Thai Ha, Dong Da, Hanoi"
},
"order_date": "2022-02-22",
"created_at": "2022-02-22 11:39:03",
"updated_at": "2022-02-22 11:43:41",
"status": "1",
"assigned_user": "3",
"assigned_name": "Nguyen Trung Hieu",
"payment_status": "unpaid",
"lading_code": "",
"lading_info": {
"status": {
"code": "ASSIGNING",
"name": "Finding a supplier"
},
"tracking_url": "http://app.ahamove.com/record/24DWX2OF"
}
}
],
"pagination": {
"limit": "10",
"offset": "0",
"total_record": "1"
}
}