Quick Start
Set up your environment and then use the ECE REST API to make your first API call by performing these tasks:
Prerequisites
Prerequisite | More Information |
---|---|
Install ECE | "Installing Elastic Charging Engine" in ECE Installation Guide |
Integrate your 5G Network with ECE through the HTTP Gateway | "Connecting ECE to a 5G Client" in ECE Implementing Charging |
Install cURL | Use cURL |
Set up authentication | Authenticate |
Task 1: Obtain Account Information
From your account administrator, obtain the appropriate account credentials to enable calls to the ECE REST API. Specifically, you will need an OAuth 2.0 access token.
Task 2: Send a Request
After you set up your REST client, you can send a request to ensure that your connection works. For example, to retrieve all usage consumption objects, you can use the following request:
curl -i -H 'Authorization: Bearer accessToken' -X GET
apiRoot/queryUsageConsumption
Note:
You can send this request if you want your application to have OAuth support.If you do not want your application to have OAuth support, use the following request without the token:
curl -i -X GET apiRoot/queryUsageConsumption
where apiRoot is for accessing the HTTP Gateway server at either http://hostname:httpPort or https://hostname:httpsPort
If the request is successful, you should receive response code 200 along with a response body similar to the following:
[
{
"id": "7ce174e0-b00e-41ff-a593-df4cf00af999",
"href": "apiroot/queryUsageConsumption/7ce174e0-b00e-41ff-a593-df4cf00af999",
"queryUsageConsumptionDate": "2025-07-12T10:06:55.776+05:30",
"partyAccount": [
{
"id": "6500000427",
"name": "string",
"status": "string"
}
],
"usageConsumption": [
{
"creationDate": "2025-07-12T10:06:55.78+05:30",
"bucketRefOrValue": [
{
"id": "840",
"remainingValueName": "-10000.0 USD",
"logicalResource": [
{
"id": "6500000427"
}
],
"partyAccount": {
"id": "6500000427"
},
"remainingValue": {
"amount": -10000,
"units": "840"
}
}
],
"state": "done"
}
]
},
{
"id": "afe2066d-e09a-4a02-9eb8-e3511e3ada0f",
"href": "apiroot/queryUsageConsumption/afe2066d-e09a-4a02-9eb8-e3511e3ada0f",
"queryUsageConsumptionDate": "2025-07-12T10:06:44.847+05:30",
"partyAccount": [
{
"id": "6500000427",
"name": "string",
"status": "string"
}
],
"usageConsumption": [
{
"creationDate": "2025-07-12T10:06:44.869+05:30",
"bucketRefOrValue": [
{
"id": "840",
"remainingValueName": "-10000.0 USD",
"logicalResource": [
{
"id": "6500000427"
}
],
"partyAccount": {
"id": "6500000427"
},
"remainingValue": {
"amount": -10000,
"units": "840"
}
}
],
"state": "done"
}
]
}
]