SMM Panel API
Cancel Order
Cancel a cancellable SMM order.
POST
/api/v1/smm/orders/{public_id}/cancel/
Live
Cancel an order when cancellable is true. May refund remaining balance depending on provider/order state.
Notes
- Check order.cancellable on status before calling cancel.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
public_id |
string | Yes | Order public_id. |
Headers
HTTP
Authorization: Bearer YOUR_API_KEY
Accept: application/json
Examples
cURL
curl -X POST "https://YOUR-DOMAIN/api/v1/smm/orders/ord_example/cancel/" -H "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch("https://engagegrove.com/api/v1/smm/orders/{public_id}/cancel/", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_API_KEY",
Accept: "application/json",
"Content-Type": "application/json"
}
});
const data = await response.json();
Python
import requests
url = "https://engagegrove.com/api/v1/smm/orders/{public_id}/cancel/"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.request("POST", url, headers=headers)
print(response.json())
PHP
$ch = curl_init("https://engagegrove.com/api/v1/smm/orders/{public_id}/cancel/");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
"Accept: application/json",
"Content-Type: application/json"
]
]);
$response = curl_exec($ch);
curl_close($ch);
Response example
JSON
{
"success": true,
"request_id": "req_...",
"data": {
"ok": true,
"message": "Order canceled.",
"refunded": true,
"order": { "public_id": "ord_...", "status": "canceled" }
}
}
Status codes
| Status | Meaning |
|---|---|
200 | Cancel accepted |
400 | Order not cancellable |
401 | Invalid API key |
403 | Missing smm permission |
404 | Order not found |
429 | Rate limit exceeded |
Try it
Paste your API key locally. It is sent only to this site’s API and is never saved.
Status: · Time: ms · Request ID:
Response
Errors
INVALID_API_KEY— missing/invalid Bearer tokenSERVICE_ACCESS_DENIED— key lackssmmVALIDATION_ERROR— invalid payload or domain validationRESOURCE_NOT_FOUND— unknown resourceRATE_LIMIT_EXCEEDED— too many requests