Изменения

Перейти к: навигация, поиск

API Documentation

1621 байт добавлено, 12:02, 30 июня 2021
Нет описания правки
The function searches for the last order among the orders of all customers by its number (AWB or orderno). It provides anonymized information on a current state of the order. <br />
The description of response containers is similar to the description of [[API#.D0.97.D0.B0.D0.BF.D1.80.D0.BE.D1.81_.D1.81.D1.82.D0.B0.D1.82.D1.83.D1.81.D0.B0_.D0.B7.D0.B0.D0.BA.D0.B0.D0.B7.D0.BE.D0.B2|Order status query]].
 
== Order update ==
The request is intended to change orders for which there have been no changes in the status of correspondence, delivery time - that is, orders that are not yet in operation.
 
You can only update orders if the courier company uses tariffs «Premium» or «Maximum». In order to allow this option they must turn it on at '''Settings''' > '''Parameters''' > '''Advansed''' and set the '''Allow cancelling order''' flag.
 
<div style="color: #a94442; background-color: #f2dede; border: 1px solid #ebccd1; padding: 3px 10px 10px;">
'''Note!'''
#Data of the change request is indicated in full, as if the order was created for the first time.
#If there is no attachment in the change request, this attachment is not removed from the order, but its quantity becomes 0.
#When changing the order in the API and the courier service system, priority is given to the data of the courier service system. That is, changes to the API will not be accepted!
</div>
<br>
 
=== Order update request fields description ===
Description of change request fields
All request fields correspond to the order structure when creating an order, except for:
* editorder is specified instead of the neworder root tag
* barcode tag barcode is not specified as it is assigned when creating an order.
* for item attachments, the internal code of the attachment is indicated in the code attribute, which can be obtained when receiving the order status.
 
=== Order update answer fields description ===
All the fields are the same as for "Neworder" request but the root tag: the '''editorder''' tag is returned instead of '''neworder'''.
== Status change by agent ==

Навигация