user guide
×
Меню
Индекс

Receiving orders

 
action: order_list_get
 
You can learn information about one order by setting Id
 
Receipt of several orders is possible in portions of no more than 100 pieces.
 
It is necessary to specify the date from which date_from data is needed, the date up to which date_to data is needed. The difference between them cannot be more than 30 days.
Specify the status of the required orders. You also need to specify whether orders are needed with or without your database code (it's easier to separate already loaded orders). The value of code_1c can
be 0 or 1.
 
The first request is to get the number of orders that are in the get_count=1 filter;
 
Conclusion
 
 
{
    "status""ok",
    "error""",
    "data": [
        [
            {
                "count""1079"
            }
        ]
    ]
}
 
Further, with the following query, specifying position (from which position the data is needed) and count (number of records), you can get the necessary orders.
 
Conclusion
 
{
    "status""ok",
    "error""",
    "data": {
        "count"1,
        "orders": [
            {
                "id""10801",
                "name""MdkkUl5q",
                "code""MdkkUl5q",
                "code1c""00000005593",
                "confirmed""1",
                "confirmed_date""2021-09-06 09:41:20",
                "confirmed_email""",
                "client""806",
                "date""2021-09-06 10:29:24",
                "urgent"null,
                "status""3",
                "parent"null,
                "plan_of_production""2021-09-10 09:00:00",
                "changed_plan_of_production"null,
                "stock_need""1",
                "ready_to_put""2021-09-06 11:12:17",
                "ready_to_put_user""185",
                "in_production"null,
                "in_production_user"null,
                "produced"null,
                "in_stock"null,
                "in_stock_user"null,
                "to_client"null,
                "to_client_user"null,
                "canceled"null,
                "canceled_user"null,
                "reg_code""3_39290",
                "firm""3",
                "user""185",
                "currency""2",
                "firm_client"null,
                "client_name""",
                "client_surname""Елена",
                "client_middlename""Мацегора",
                "comment""готовность на 22,09СТОЛЕШНИЦА ВЛАГОСТОЙКАЯкромка родная к столешнице 3м ",
                "client_email""",
                "client_phone_main""",
                "client_phone_questions""",
                "client_phone_sms""",
                "client_phone_code""+38",
                "country""",
                "delivery_method""Самовывоз",
                "adress_delivery""",
                "adress_store""3",
                "adress_production""3",
                "adress_sale""7",
                "confirmed_cost""3372.88",
                "archive"null,
                "count_detail""2",
                "place_in_order_to_pack"null,
                "goods_for_sale_in_order"null,
                "d_update""2021-09-06 10:12:17",
                "goods_serv": [
                    {Запись товара
                        "id""10801",
                        "goods""39244",
                        "serv"null,
                        "count""1.83",
                        "price""1619.8",
                        "drop""7",
                        "extra"null
                    },
                    {
                        "id""10801",
                        "goods"null,
                        "serv""9",
                        "count""3.202",
                        "price""18",
                        "drop"null,
                        "extra"null
                    },
                    {
                        "id""10801",
                        "goods"null,
                        "serv""14",
                        "count""0.452",
                        "price""25",
                        "drop"null,
                        "extra"null
                    },
                    {
                        "id""10801",
                        "goods"null,
                        "serv""19",
                        "count""5.053",
                        "price""40",
                        "drop"null,
                        "extra"null
                    },
                    {Запись услуг
                        "id""10801",
                        "goods"null,
                        "serv""46",
                        "count""5.5046207561607",
                        "price""5",
                        "drop"null,
                        "extra"null
                    },
                    {
                        "id""10801",
                        "goods"null,
                        "serv""31",
                        "count""2",
                        "price""45",
                        "drop"null,
                        "extra"null
                    },
                    {
                        "id""10801",
                        "goods"null,
                        "serv"null,
                        "count"null,
                        "price""20",
                        "drop"null,
                        "extra""упаковка"
                    }
                ]
            }
        ]
    }
}
 
If the key d_update = 1, it means that the system will give you orders with any status that has changed over the selected period.