Order Feedback

 
With the help of the db_put_labels point, you can update order status and service performance information. When entering execution information, you can specify a user or a worker. In this case, the phone number or e-mail must correspond to the one entered in the database. The phone number must be written in the correct format +38 (999) 999-99-99.
 
{ - there can be several orders in one request
  "0": {
    "ifp_id"26645,
    "code1c""ДН-000004",
    "data": {
      "sale_doc": {
        "date""2022-05-21 12:12:34",
        "user": {
          "code1c"23232,
          "name""Иванов Иван",
          "phone""+38 (999) 999-99-99",
          "email""user@k.com"
        }
      },
      "start_production": {
        "date""2022-05-21 12:12:34",
        "user": {
          "code1c"23232,
          "name""Иванов Иван",
          "phone""+38 (999) 999-99-99",
          "email""user@k.com"
        }
      },
      "stock_ready": {
        "date""2022-05-21 12:12:34",
        "user": {
          "code1c"23232,
          "name""Иванов Иван",
          "phone""+38 (999) 999-99-99",
          "email""user@k.com"
        }
      },
      "service_ready": [ - there can be several services in one request
        
          {"0": {
            "date""2022-05-21 12:12:34",
            "user": {
              "code1c"23232,
              "name""Иванов Иван",
              "phone""+38 (999) 999-99-99",
              "email""user@k.com"
            },
            "count"23,
            "ifp_id"49,
            "code1c"34522
          }
          },
          {"1": {
            "date""2022-05-21 12:12:34",
            "user": {
              "code1c"23232,
              "name""Иванов Иван",
              "phone""+38 (999) 999-99-99",
              "email""user@k.com"
            },
            "count"23,
            "ifp_id"7,
            "code1c"34522
          }
          }
      ]
    }
  }
}
 
Ответ
{
    "status""ok",
    "error""",
    "data": [
        {
            "ifp_id""26645",
            "code_order_1c"null,
            "sale_doc""130316", - if it's a number, then it's done
            "start_production""130317",- if it's a number, then it's done
            "stock_ready""130318",- if it's a number, then it's done
            "service_ready": {
                "49": {
                    "ifp_id_result""2"- if it's a number, then it's done
                },
                "7": {
                    "ifp_id_result""1"- if it's a number, then it's done
                }
            },
            "service_ready_all": {
                "49""130319",
                "7""130319"
            }
        }
    ]
}