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-TokenheaderstringRequiredAPI token of the Manager that performs the operation (see Viewing and updating manager's information)
Content-TypeheaderstringRequiredIndicates the media type (text/html or text/JSON) of the request that is sent to the server by the client (browser)
AcceptheaderstringRequired

Information about data types that the client (browser) supports

reseller_idpathintegerRequiredID of the current Reseller or any of its downstream Resellers (see Viewing and updating reseller general information)
subscription_idpathintegerRequiredID of the Subscription 
dataformobjectRequiredInformation about the attributes of the operation

attributesformobjectRequiredAttributes of the operation


reasonformstringRequiredReason for stopping the Subscription 


commentformstringRequiredComment

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