Skip to main content

CANCEL ORDER

This API enables order cancellation for authorized end users through a middleware-based integration.

Only eligible pending orders can be cancelled.

🔗 Path Parameters

ParameterTypeRequiredDescriptionExample
exchangestringYesExchange segment in which the order is placed"MCX_FO"
order_idstringYesOrder ID of the order to be cancelled"NXVZO00086K1"

🔍 Query Parameters

ParameterTypeRequiredDescriptionExample
userIdstringYesUser ID (UCC)"{{user_id}}"

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringRequest payload formatapplication/json
AuthorizationstringAccess token for authenticated requests{{access_token}}
x-api-keystringAPI key used to authorize request{{x-api-key}}

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code"s-101"
messagestringOrder cancellation success message"Order cancelled successfully"
dataobjectOrder response detailsRefer Data Object Fields

📦 Data Object Fields

FieldTypeDescriptionExample
orderIdstringSystem-generated order identification number"NXVZO00086K1"