The Stop subscription method is used to initiate the process of stopping a subscription for the current reseller or any of its downstream resellers according to the standard logic of the platform (see ).
POST {base_url}/api/v3/resellers/{reseller_id}/subscriptions/{subscription_id}/stop_operation
Arguments
Response model
If no errors are encountered, the method returns the empty response with the 200 OK status.
Errors
|
Status |
Error text |
Comment |
|---|---|---|
|
403 |
This action is forbidden |
Check the list of available operations for the subscription (see Get subscription) |
Request example
XML
POST /api/v3/resellers/1/subscriptions/3007255/stop_operation
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json
JSON
{
"data":
{
"attributes":
{
"reason" : "reason",
"comment" : "comment"
}
}
}