Stop the Reseller's Subscription
The Stop the Reseller's Subscription method is used to start the process of stopping a Subscription by its ID for the current Reseller or any of its downstream Resellers. The standard logic of the platform is used (see Stopping a subscription).
Access to the current Reseller and downstream Resellers is determined by the Manager's token in the API request.
POST {base_url}/api/v3/resellers/{reseller_id}/subscriptions/{subscription_id}/stop_operation
Arguments
Name | Parameter Type | Data type | Required/Optional | Description | ||
---|---|---|---|---|---|---|
X-Api-Token | header | string | Required | API token of the Manager that performs the operation (see Viewing and updating manager's information) | ||
Content-Type | header | string | Required | Indicates the media type (text/html or text/JSON) of the request that is sent to the server by the client (browser) | ||
Accept | header | string | Required | Information about data types that the client (browser) supports | ||
reseller_id | path | integer | Required | ID of the current Reseller or any of its downstream Resellers (see Viewing and updating reseller general information) | ||
subscription_id | path | integer | Required | ID of the Subscription | ||
data | form | object | Required | Information about the attributes of the operation | ||
attributes | form | object | Required | Attributes of the operation | ||
reason | form | string | Required | Reason for stopping the Subscription | ||
comment | form | string | Required | Comment |
Response model
If no errors are encountered, the method returns the empty response with the 200 OK status.
Request example
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
{
"data":
{
"attributes":
{
"reason" : "reason",
"comment" : "comment"
}
}
}
Response example