Инициирует формирование инвойсов (включая PDF) для указаных заказов. Операция выполняется асинхронно, готовые инвойсы будут прикреплены к заказам, их можно будет получить через API GetAccountOrders
{
"processing_result": {
"text": "Invoices are generated.",
"status": "ok",
"ctx_id": "FD6TPMnJ:0-LD",
"code": 0
},
"processing_date": "2020-07-03 10:14:58",
"GenerateOrderInvoice": {
"response": {
"tenant": "orderingtenant885",
"orders": [ {
"tel_num": "998877665544332211",
"start_date": "2020-07-03 10:12:38",
"order_type": "Online",
"order_total": 260.5,
"order_status": "In Progress",
"order_positions": [
{
"unit": "шт",
"quantity": 2,
"product_name": "position #612",
"price": 30,
"position_type": "Goods",
"position_total": 60,
"position_id": 7,
"order_id": 4,
"catalog_position_id": 4
},
{
"unit": "кг",
"quantity": 1,
"product_name": "position #2",
"product_code": "6205",
"price": 200.5,
"position_type": "Goods",
"position_total": 200.5,
"position_id": 8,
"order_id": 4
}
],
"order_num": 4,
"order_id": 4,
"order_description": " updated order Description",
"end_date": "2020-07-04 10:12:38",
"email": "updatedEmail@email.com",
"customer_name": "NewClient_1593756522762",
"address_text": "address text updated",
"account_id": 1,
"account_address_id": 1
}],
"order_id": [4],
"TZ": "Europe/Minsk"
},
"request": {
"tenant": "orderingtenant885",
"order_id": [4]
},
"extra_logic": "",
"enriched_request": {
"tenant": "orderingtenant885",
"order_id": [4]
}
}
}
CODE