Skip to main content

Cancel Order

Client application

Client application cancel order

The client has to provide the access token and order ID to UpLink Business.

Sample request

<form method="post" id="uplink-cancel" action="https://api.upstox.com/v2/uplink/order/cancel">
<input type="hidden" name="access_token" value="{upstox developer API access token}" />
<input type="hidden" name="redirect_url" value="https://{redirectUrl}/" />
<input type="hidden" name="order_id" value="1644490272000" />
</form>

<script>
document.getElementById("uplink-cancel").submit();
</script>

UpLink business application cancel order

Once the request is sent to UpLink business, it validates the status of the order. If the order can be cancelled, the user is provided with above pop-up message. After confirming by tapping or clicking on 'Yes, cancel', the order gets cancelled.

UpLink business application cancel order success

If the user clicks or taps on 'Done', they will be redirected to the the client application using the redirect_url provided in the request.

NOTE

Unlike place order, cancellation of only one order is allowed per transaction.