Apply booster to a plan
This POST
operation applies a booster to an existing subscriber plan which can increase volume or validity for the specified plan. If successful, you receive an HTTP response code of 201
.
See HTTP response codes for other response codes. |
POST /pcc/spcm/subscribers/<msisdn>/plans/<planId>boost
+ JSON request payload
HEADER INFO
authorisation: HTTP Basic Auth
tenant: <tenantName>
content-type: application/JSON
accept: application/JSON
By default, accept is XML . You must explicitly set accept in your header to application/JSON to receive a JSON response.
|
permissions: SPCM_PLAN_BOOSTER_CREATE_PERMISSION
URL parameters
There are two mandatory parameters.
Parameter | Type | Description |
---|---|---|
|
integer |
The subscriber’s MSISDN in international format. |
|
integer |
The unique identifier for the subscriber plan. |
JSON request payload
The following sample applies the booster with the id
of 42
to the plan. See Plan definition descriptions for all possible data types.
{
"id": "42",
"type": "VOLUME",
"amount": "5000",
"cost": 475
}
Booster type descriptions
Field | Type | Description | ||
---|---|---|---|---|
|
integer |
The unique identifier for the booster. This is assigned by the server upon creating a booster. |
||
|
string |
The type of booster desired by the user. options
|
||
|
string |
The amount of data (or extension of plan).
|
||
|
integer |
Specifies the cost of the booster. |
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success!
|
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
booster not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. example
|
||||
|
failed processing (after passing validation). example
|
||||
|
internal error example
|
||||
|
request rejected due to overload |