Having covering all important fields in the response, the next step necessary is to understand how to update orders within BEES.
To modify and update orders in BEES, it is necessary to utilize the PATCH endpoint.
The PATCH endpoint is very straightforward and has only one single properties that must be sent, which is the Order Number identifier.
In addition to the order number, which is strictly necessary, within the PATCH is possible to update the status, by specifying the status of the current situation of the order.
Also, it can be used to make modifications to items within the
orders, such as modifying the quantity of the product. This
scenario may occur when the amount of products purchase was not
available and the order will be partially delivered. For this
case, it is important to emphasize the the
key
identification
described above must be used.
All date-related fields should be converted to the ISO 8601 format, regardless of their format in the GET response;
No calculation process is involved in the order's ingestion (PATCH). Therefore, all values, including quantities, prices, summaries, and any other data that may be affected by these changes, must be received from the partner;
In order to calculate OTIF, it is necessary to send during the
update of order the field
delivery.deliveredDate
.