API GetOrderList
- tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
- date_from - (mandatory)
- date_to - (mandatory)
- status - (optional) - valid values: [Draft, In Progress, Completed, Closed]
- account_id - (optional)
Позволяет выбрать все заказы на тенанте без учета клиента но с ограничением по периоду. Возвращает только ключевые атрибуты заказа, без позиций.
Примеры:
{
"tenant": "order0",
"date_from": "2020-05-27 22:00:00",
"date_to": "2021-05-27 23:50:00"
}
CODE
{
"processing_result": {
"text": "Orders are received.",
"status": "ok",
"ctx_id": "PdbFqmgT:0-3B",
"code": 0
},
"processing_date": "2020-05-27 23:29:49",
"GetOrderList": {
"response": {
"tenant": "order0",
"orders": [
{
"start_date": "2020-10-03 12:00:00",
"order_type": "Online",
"order_status": "In Progress",
"order_num": 28,
"order_id": 28,
"order_description": "11223344",
"end_date": "2020-03-10 12:00:00",
"customer_name": "wqeqwe",
"address_text": "",
"account_id": 28,
"account_address_id": 31
},
{
"start_date": "2020-10-03 12:00:00",
"order_type": "Online",
"order_status": "In Progress",
"order_num": 29,
"order_id": 29,
"order_description": "11223344",
"end_date": "2020-03-10 12:00:00",
"customer_name": "nsme1",
"address_text": "",
"account_id": 29,
"account_address_id": 32
},
{
"start_date": "2020-10-03 12:00:00",
"order_type": "Online",
"order_status": "In Progress",
"order_num": 32,
"order_id": 32,
"order_description": "loooooong text",
"end_date": "2020-03-10 12:00:00",
"customer_name": "nsme1",
"address_text": "full addres for transportation",
"account_id": 29,
"account_address_id": 32
},
{
"start_date": "2020-10-03 12:00:00",
"order_type": "Online",
"order_status": "In Progress",
"order_num": 34,
"order_id": 34,
"order_description": "loooooong text",
"end_date": "2020-03-10 12:00:00",
"customer_name": "nsme1",
"address_text": "full addres for transportation",
"account_id": 29,
"account_address_id": 32
}
],
"date_to": "2021-05-27 23:50:00",
"date_from": "2020-05-27 22:00:00"
},
"request": {
"tenant": "order0",
"date_to": "2021-05-27 23:50:00",
"date_from": "2020-05-27 22:00:00"
},
"extra_logic": "",
"enriched_request": {
"tenant": "order0",
"date_to": "2021-05-27 23:50:00",
"date_from": "2020-05-27 22:00:00"
}
}
}
CODE