The Cancel Delivery endpoint is crucial for the integration between the order platform and gOnline, facilitating the process of handling order cancellations. This endpoint allows gOnline to notify the order platform when an order needs to be canceled. Upon receiving a cancellation request, the Cancel Delivery endpoint communicates this intent to the logistic platform, which is responsible for managing the delivery.
However, the logistic platform has the authority to either honor or deny the cancellation request based on the current state of the order. For instance, if the order is already in transit or near completion, the logistic platform may deny the cancellation, whereas if the order has not yet been dispatched or prepared, the cancellation may be accepted.