/restaurant/cancel_order

This action allows cancelling an order that can’t be completed.

Normally, when creating an order with /restaurant/make_order, the system will halt the order creation if there is any errors. In such case, client can just instruct customer to correct the mistaken information or otherwise act according to the errors, and then just try to create new order.

When order creation succeeds, depending on the payment method, the order may require payment in advance before the order in reality has been finalized. In such case, if customer is not able to pay the order, customer may wish to try creating a new order with for example with another payment method. In such case, a lingering order will remain, in which case this action should be called to cancel the lingering order.

Request

POST nameValueRequired?
order_id774Yes
session_idsecret_valueYes¹
api_keykeyYes¹
secretsecretYes¹
languagefinnishNo

¹) Either session_id or api_key and secret are needed.

For language, see account page’s language section.

Response

ResponseJSON
Success:"success"
Failure:error array

Expectable errors

Label Additional data Description
INVALID_ORDER_IDNoneThe order id you gave is not valid.