# API: List cancellation reasons
# getCancellationReasons
Get list of cancellation reasons
# Optional parameters
Parameter | Description |
---|---|
target | One of: domain or service |
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getCancellationReasons
# PHP Samples
# Response
{
"success": true,
"reasons": [
{
"id": 2,
"reason": "test",
"target": "all",
"counter": "0",
"sort_order": "0"
},
{
"id": 3,
"reason": "test",
"target": "service",
"counter": "0",
"sort_order": "1"
}
],
"call": "getCancellationReasons",
"server_time": 1702904115
}