Endpoint 01
provision-charging-service
TMF640 v4 createService. Activates the charging service or profile and returns it in state active.
- Status
- 201
- Priority
- 0
- Paths
- 3
Bound paths
-
POST
charging.tmfmock.com/service -
POST
charging.tmfmock.com/tmf640/createService -
POST
charging.tmfmock.com/tmf-api/serviceActivationAndConfiguration/v4/service
Request conditions
DefaultEvery request matching a bound method and path uses this rule.
Bound response rule
JSON formula{
"body": {
"id": {
"$var": "serviceId"
},
"href": {
"$concat": [
{
"$request": "origin"
},
"/service/",
{
"$var": "serviceId"
}
]
},
"name": {
"$request": {
"path": "body.name",
"default": "Mock charging service"
}
},
"@type": "Service",
"state": "active",
"category": "charging",
"serviceType": {
"$request": {
"path": "body.serviceType",
"default": "charging"
}
},
"isServiceEnabled": true,
"serviceCharacteristic": [
{
"name": "chargingProfile",
"@type": "StringCharacteristic",
"value": {
"$request": {
"path": "body.serviceCharacteristic.0.value",
"default": "MOCK-CHARGING-PROFILE"
}
},
"valueType": "string"
}
]
},
"status": 201,
"headers": {
"Location": {
"$concat": [
{
"$request": "origin"
},
"/service/",
{
"$var": "serviceId"
}
]
},
"Content-Type": "application/json; charset=utf-8"
},
"variables": {
"serviceId": {
"$request": {
"path": "headers.idempotency-key",
"default": {
"$random": "uuid"
}
}
}
}
}