Интерфейс для получение всех данных по одному заказу (указав order_id) или по всем заказам одного клиента. Возвращаются все позиции заказа.
{
"processing_result": {
"text": "Orders are received.",
"status": "ok",
"ctx_id": "TfHL2MQm:0-jp",
"code": 0
},
"processing_date": "2020-08-25 13:58:59",
"GetAccountOrders": {
"response": {
"tenant": "order0",
"orders": [ {
"tel_num": "45342343453",
"start_date": "2020-08-25 13:58:32",
"order_type": "OnSite",
"order_total": 138.6,
"order_status": "Draft",
"order_positions": [
{
"unit": "шт",
"quantity": 3,
"product_name": "position #178",
"price": 23.1,
"position_type": "Goods",
"position_total": 69.3,
"position_id": 298,
"order_id": 238
},
{
"unit": "шт",
"quantity": 3,
"product_name": "position #890",
"price": 23.1,
"position_type": "Goods",
"position_total": 69.3,
"position_id": 299,
"order_id": 238
}
],
"order_num": 238,
"order_id": 238,
"order_description": "order Description",
"end_date": "2020-08-28 13:58:32",
"email": "email@email.com",
"customer_name": "NewClient_1598353112675",
"address_text": "a big white building",
"account_id": 184,
"account_address_id": 195
}],
"account_id": 184
},
"request": {
"tenant": "order0",
"account_id": 184
},
"extra_logic": "",
"enriched_request": {
"tenant": "order0",
"account_id": 184
}
}
}
CODE