Subscription Cancellation

For cancellation on the subscription service, Service Providers need to invoke the subscription cancellation API.

Request

HTTP Method

POST

POST <AOC_SERVER>/api/cancelSubscription
HTTP/1.1
Content type: application/x-www-form-urlencoded


{
  "apiKey":"Ofa3M7zS2c3",
  "username":"test",
  "spTransID":"201903192030-test1",
  "msisdn":"60191234567",
  "operator":"operator1",
  "subscriptionID":"WeeklyGame1"
}

Request Parameter

Parameter Name

Description

Usage

username

This will be the username provided to the Service Provider by BOOSTCONNECT.

(STRING) Mandatory

apiKey

This will be API Key to access AOC. Will be provided by BOOSTCONNECT.

(STRING) Mandatory

spTransID

This is a unique transaction id per API call event generated by Service Provider. It is your reference for troubleshooting purposes.

(STRING) Mandatory

operator

The operator code provided by BOOSTCONNECT.

(STRING) Mandatory

msisdn

The MSISDN of the subscriber. The user’s MSISDN includes the country code, e.g. 60191234567.

(STRING) Mandatory

subscriptionID

This is a unique subscription id for each different subscription package/services.

(STRING) Mandatory

Response

HTTP/1.1 200 OK 
Content-Type: application/json 
Date: Tue, 01 Nov 2016 12:00:00 GMT


{ "data": 
{ 
    "errorCode":"00", 
    "errorMessage":"" 
} 
}

Response Parameter

Parameter Name

Description

Usage

errorCode

Please check on the error code list. If success, the error code will be “00”.

(STRING)

errorMessage

Explanation of the error.

(STRING)