Decrease quota for subscriber
This POST
operation decreases the size of the donor plan for a specified subscriber by passing the donor msisdn
in the URL and the plan ID and share of the quota in the JSON
payload. If successful, you receive an HTTP response code of 201
and a JSON
response containing the amount (in bytes) the plan was reduced.
See HTTP response codes for other response codes. |
POST /pcc/spcm/subscribers/<msisdn>/shared-quota/deduct-quota
+ JSON request payload
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
content-type: application/JSON
accept: application/JSON
permissions: SPCM_SHARED_QUOTA_PERMISSION
URL parameters
There is one mandatory parameter.
Parameter | Type | Description |
---|---|---|
|
string (max 255) |
The subscriber’s MSISDN in international format. |
JSON request payload
This example shares decreases the unitAmountShare
of the the plan 135062
by 34343
.
The percentage of quota shared is expressed as an integer between 0 and 10000000 . So for example, 5% is 5/100 * 10000000 which equals 500000 which would be what you specify in the payload.
|
{
"planId": 135062,
"unitAmountShare": 34343
}
JSON response
The unitAmount
denotes how much the plan was reduced in bytes.
{
"unitAmount": 56566
}
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success!
|
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
subscriber 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 |
||||
|
request rejected due to overload |