2. Security
2.1. oauth2_password
Type : oauth2
Flow : password
Token URL : https://{oauth2_url}/authorizationserver/oauth/token
| Name |
|---|
basic |
2.2. oauth2_client_credentials
Type : oauth2
Flow : application
Token URL : https://{oauth2_url}/authorizationserver/oauth/token
| Name |
|---|
extended |
3. Resources
3.1. Usage Consumption Report
Uc Usage Consumption Report Controller
3.1.1. List or find UsageConsumptionReport objects
GET /usageConsumptionReport
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
fields |
Comma-separated properties to be provided in response |
string |
Query |
limit |
Requested number of resources to be provided in response |
integer(int32) |
Query |
offset |
Requested index for start of resources to be provided in response |
integer(int32) |
Query |
product.id |
Network product id value |
string |
Query |
publicIdentifier |
Public identifier value |
string |
Query |
relatedParty.id |
Related party id value |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Success |
< UsageConsumptionReport > array |
206 |
Partial Content |
< UsageConsumptionReport > array |
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
405 |
Method Not allowed |
|
409 |
Conflict |
|
500 |
Internal Server Error |
4. Definitions
4.1. ConsumptionSummary
The consumption counters (called ConsumptionSummary in the SID model) detail for example the different kind of consumption done on the bucket.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
consumptionPeriod |
Consumption counter period between a start date time and an end date time. For prepaid bucket, the period of counters is between the start date of the bucket and the effective date of the usage consumption report generation. For postpaid bucket, the period of counters is between the last bill date and the effective date of the usage consumption report generation. |
|
counterType |
Type of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example) or the value of the consumption done out of the bucket(s) (counterType=outOfBucket for example) |
string |
level |
Counter level. The counter can be given globally for the bucket or detailed by user or by network product for example in case of shared bucket |
string |
product |
Public identifier associated to the product for which the consumption counter is detailed. If the level of the counter is global (i.e. concerning all the network products), the list of them is not specified. It can be found through the network products listed in the bucket sub-resource |
|
user |
Reference of the user for which the consumption counter is detailed. If the level of the counter is global (i.e. concerning all the users), the list of them is not specified. It can be found through the users listed in the network products of the bucket sub-resource |
|
value |
Numeric value of the bucket counter in a given unit |
|
valueName |
Value of the counter in a formatted string used for display needs for example |
string |
4.2. Error
Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx)
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name. |
string |
code |
Application relevant detail, defined in the API or a common list. |
integer(int32) |
message |
More details and corrective actions related to the error which can be shown to a client user. |
string |
reason |
Explanation of the reason for the error which can be shown to a client user. |
string |
referenceError |
URI of documentation describing the error. |
string |
status |
HTTP Error code extension |
integer(int32) |
4.3. NetworkProduct
An instantiated network product (specialization of a product) subscribed by a customer.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference to the network product |
string |
id |
Unique identifier of the network product |
string |
name |
Network product name |
string |
outOfBucketCounter |
Counters detailing usage consumption out of the buckets |
< ConsumptionSummary > array |
publicIdentifier |
Public number associated to the network product (msisdn number for mobile line for example) |
string |
user |
References of the users of the network product |
< RelatedParty > array |
4.4. NetworkProductRef
Reference of a product
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
Generic attribute indicating the name of the class type of the referred resource entity |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference to the network product |
string |
id |
Unique identifier of the network product |
string |
name |
Network product name |
string |
publicIdentifier |
Public number associated to the product (msisdn number for mobile line for example) |
string |
4.5. Quantity
An amount in a given unit
| Name | Description | Schema |
|---|---|---|
amount |
Numeric value in a given unit |
number(float) |
units |
Unit |
string |
4.6. RelatedParty
RelatedParty reference. A related party defines party or party role linked to a specific entity.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference of the related party, could be a party reference or a party role reference |
string |
id |
Unique identifier of a related party |
string |
name |
Name of the related party |
string |
role |
Role of the related party. |
string |
4.7. TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
| Name | Description | Schema |
|---|---|---|
endDateTime |
End of the time period, using IETC-RFC-3339 format |
string(date-time) |
startDateTime |
Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end |
string(date-time) |
4.8. UsageConsumptionReport
An usage consumption report enables to know at a given point the balances and the consumption counters related to various buckets (SMS, Voice, Data for example). It could be calculated for a device identified by a public key (msisdn number for a mobile device for example or PSTN or VOIP number for a fix device), for a subscribed offer or option or for an user.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
bucket |
Bucket(s) included in the offer or option subscribed. |
< UsageVolumeProduct > array |
description |
Free short text describing the usage consumption report content |
string |
effectiveDate |
Date and time when the usage consumption report was calculated and generated |
string(date-time) |
href |
Hyperlink to access the usage consumption report. The report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the server |
string |
id |
The report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the server |
string |
name |
Usage consumption report name |
string |
relatedParty |
4.9. UsageVolumeBalance
The balance (called UsageVolumeBalance in the SID model) defines the remaining allowed product usage quantity in terms of volume, time, currency or events. It corresponds to the initial allowed usage quantity minus the usage consumed on the bucket.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
remainingValue |
Numeric remaining value for the bucket given in the unit (for example 1.9). This numeric value could be used for calculation for example |
|
remainingValueName |
Remaining value in a formatted string for the bucket given in the balance unit (for example 1.9 Gb). This formatted string could be used for display needs for example |
string |
validFor |
Balance period between a start date time and an end date time. For prepaid bucket, the period of the balance is between the effective date of the usage consumption report generation and the end date of the bucket. For postpaid bucket, the period of the balance is between the effective date of the usage consumption report generation and the next bill date. |
4.10. UsageVolumeProduct
A bucket (called UsageVolumeProduct in the SID model) represents a quantity of usage, as 2 hours national calls or 50 sms for example. It could be either a quantity or an amount in a currency (i.e. It could represent a fixed number of SMS, MMS, minutes of calls, quantity of data, number of events as well as a specific amount in a given currency). It requires one or more network products from which usages will debit the bucket.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
bucketBalance |
< UsageVolumeBalance > array |
|
bucketCounter |
< ConsumptionSummary > array |
|
id |
Unique identifier of the bucket |
string |
isShared |
True if the bucket is shared between several devices or users |
boolean |
name |
Bucket name |
string |
product |
< NetworkProduct > array |
|
usageType |
Type of usage concerned by the bucket, such as voice, sms, data |
string |