curl --request POST \
--url 'https://api.sandbox.services.payward.com/v1/accounts/WVSD33HRMGSZUBM7/orders/FOPCDC6-PQIPJ-JLEIRY/cancel' \
--header "API-Key: $PWS_API_KEY" \
--header "API-Timestamp: $PWS_API_TIMESTAMP" \
--header "API-Sign: $PWS_API_SIGN"{
"data": {
"id": "FOPCDC6-PQIPJ-JLEIRY"
}
}Derivatives orders
Cancel order
Requests cancellation of an order in the selected account.
A successful response does not confirm that the order has been canceled. Use Get order to check its current status. The order may still fill, partially or fully, before cancellation takes effect.
POST
/
v1
/
accounts
/
{account_id}
/
orders
/
{order_id}
/
cancel
curl --request POST \
--url 'https://api.sandbox.services.payward.com/v1/accounts/WVSD33HRMGSZUBM7/orders/FOPCDC6-PQIPJ-JLEIRY/cancel' \
--header "API-Key: $PWS_API_KEY" \
--header "API-Timestamp: $PWS_API_TIMESTAMP" \
--header "API-Sign: $PWS_API_SIGN"{
"data": {
"id": "FOPCDC6-PQIPJ-JLEIRY"
}
}