list_completed_and_cancelled_orders_header
GET /list_pending_orders_header
To get the TOTAL COUNT of completed and cancelled orders for search criteria.
Use this method FIRST to determine how many total records there are for the given criteria.
After you call this method, then call the method below, and pass the required paging parameters.
/list_completed_and_cancelled_orders_header?token=XXXXX&from_date=2016-09-01&to_date=2016-10-01
| field |
description |
| token |
Credentials provided by Powersoft that allow access to the API |
| from_date |
datetime |
| to_date |
datetime |
Returns
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"total_count_list_completed_and_cancelled_orders": 2
}
GET /list_completed_and_cancelled_orders_header
To get a list of completed and cancelled orders without details, only the header.
/list_completed_and_cancelled_orders_header?token=XXXXX&from_date=2016-09-01&to_date=2016-10-01&page_number=1&page_size=10
| field |
description |
| token |
Credentials provided by Powersoft that allow access to the API |
| from_date |
datetime |
| to_date |
datetime |
| page_number |
The page number in the entire list. eg Page 1 |
| page_size |
The number of rows to return. eg 10 rows |
Returns
{
"api_response": {
"response_code": "1",
"response_msg": "OK",
"response_id": ""
},
"list_completed_and_cancelled_orders": [
{
"shopping_cart_code": "CART123",
"order_date_local": "2014-12-17 10:00:00",
"order_date_utc0": "2014-12-17 08:00:00",
"order_date_deliverby_utc0": "2014-12-24",
"customer_code_365": "00100001",
"customer_email": "jdoe@test.com",
"customer_name": "John Doe",
"total_sub": 25.21,
"total_discount": 0,
"total_vat": 4.79,
"total_grand": 30,
"comments": "special instructions",
"delivery_address_line_1": "10 Larnakos Ave",
"delivery_address_line_2": "",
"delivery_address_line_3": "Pallouriotissa",
"delivery_postal_code": "1641",
"delivery_town": "Nicosia",
"delivery_country_code_iso2": "CY",
"delivery_country_name": "CYPRUS",
"payment_term_code_365": "",
"delivery_term_code_365": "",
"order_status_code_365": "COMPLETED",
"order_status_name": "COMPLETED"
},
{
"shopping_cart_code": "CART123",
"order_date_local": "2014-12-17 10:00:00",
"order_date_utc0": "2014-12-17 08:00:00",
"order_date_deliverby_utc0": "2014-12-24",
"customer_code_365": "00100001",
"customer_email": "jdoe@test.com",
"customer_name": "John Doe",
"total_sub": 25.21,
"total_discount": 2.52,
"total_vat": 4.31,
"total_grand": 27,
"comments": "special instructions",
"delivery_address_line_1": "39 Larnakos Ave",
"delivery_address_line_2": "",
"delivery_address_line_3": "Pallouriotissa",
"delivery_postal_code": "1641",
"delivery_town": "Nicosia",
"delivery_country_code_iso2": "CY",
"delivery_country_name": "CYPRUS",
"payment_term_code_365": "",
"delivery_term_code_365": "",
"order_status_code_365": "CANCELLED",
"order_status_name": "CANCELLED"
}
]
}