Subscription Change EDRs
Purpose
Subscription change EDRs are generated for each transition between states in a lifecycle.
Example
{
"type": "subscription-change",
"node-name": "marc",
"event-timestamp": "2023-03-26T18:41:26.878974700Z",
"correlation-info": {
"slee-session-id": "7b66bce0-50fd-4f6f-8387-1146db14817a",
"slee-event-id": "1",
"ocs-inner-intent": {
"intention": "SERVICE_VALUE_PACK",
"subscription-id": "SFlCKw",
"value-pack-id": "642091d5c6a7a37cc400cefe"
}
},
"source-info": {
"source-service": "localhost:55143",
"source-system": "n2ocs",
"source-endpoint": "localhost:10800",
"source-subsystem": "http-api"
},
"status-message": "",
"account-info": {
"account-id": "ACTestAccount"
},
"service-name": "TestService #1",
"subscription-id": "SFlCKw",
"subscription-info-current": {
"subscription-state": "Random Stage #2"
},
"subscription-info-initial": {
"subscription-state": "Random Stage #1"
}
}
Fields
Field | Type | Presence | Description |
---|---|---|---|
account-info |
Object | Always | Information on the wallet the subscription is attached to. |
account-info.account-id |
String | Always | The unique ID of the wallet that the wallet. |
service-name |
String | Always | The name of the OCS service the subscription is for. |
subscription-id |
String | Always | The ID of the subscription on the subscriber wallet. |
subscription-info-current |
Object | Conditional | The subscription information after the subscription change. If this is missing, the subscrption has been removed. |
subscription-info-initial |
Object | Conditional | The subscription information before the subscription change. If this is missing, the subscrption is new. |
Subscription information includes the following fields:
Field | Type | Presence | Description |
---|---|---|---|
.subscription-state |
String | Always | The name of the lifecycle state. |