Skip to main content

List

Get the list of orders

HTTP Request

GET /api/v3/orders

Query Parameters

ParameterDefaultDescription
order_typeOrder type (1 - Purchase order, 2 - Sales order)
order_date_fromOrder date from (Y-m-d)
order_date_toOrder date to (Y-m-d)
created_at_fromOrder creation date from (Y-m-d)
created_at_toOrder creation date to (Y-m-d)
account_idCustomer ID
offsetStarting position to retrieve data
limitNumber 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"
}
}