Status: Cancel Order

Status: Cancel Order

POST /Cancel

Used to cancel an order.

If the order's current status is closed, you will get the error Order status is not suitable for performing the operation.

Example Request

Cancel order operation
curl -X POST 'https://ext.adisyo.com/api/External/v2/Cancel' \
  --header "x-api-key: ..." \
  --header "x-api-secret: ..." \
  --header "x-api-consumer: ..." \
  --header 'Content-Type: application/json' \
  --data '{
      "orderId": 4815162342,
      "cancelReason": "Customer cancelled the order"
  }'

Request Parameters

ParameterData TypeDescription
orderIdNumberAdisyo ID of the order to be cancelled
cancelReasonString?Cancellation reason description

Example Response

Order cancelled response
{
  "status": 100,
  "message": "İşlem Başarılı"
}