cancel_order | R Documentation |
Function to cancel an exiting order with specified ID.
cancel_order(object, orderid, variety)
object |
An object of type Smart connect. |
orderid |
Order ID for the order to modify. |
variety |
Order variety, e.g. regular, bo, co or amo. |
This places a request to cancel an existing order, if it is not already executed. Please note: no error checks are done for the input parameters. Sanity check is left to the user of this function. If successful, this will return the order ID (should be same as the one passed). A successfully placed request does not mean it is a valid order, and orders with erroneous user input can be immediately canceled. Therefore it is good practice to check the order details once an order ID is received from this call.
Returns an order ID (string), if successful.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.