In this article
Learn how call detail records (CDRs) for your UK MVNO eSIMs are delivered by SFTP and how to set up access in the UK MVNO Portal, so you can track the voice, SMS and data each eSIM has used. You'll also learn what each CDR contains and why CDRs can sometimes arrive late.
How CDRs are delivered
- CDRs are delivered as JSON files to an SFTP folder.
- CDRs can be delayed by the upstream provider for multiple reasons and, in rare cases, can arrive days late.
- eSIM Go always processes CDRs as soon as they are received.
Set up SFTP access
Upload your public key in the UK MVNO Portal (https://domestic-uk.portal.esim-go.com/) to access the SFTP folder.
- In the left menu, click Settings.
- Go to Developer > SFTP.
- Add your public key under Public Keys.
- Copy the Quick connect command from SFTP Details and paste it into your terminal to set up the SFTP connection.
CDR format
CDRs are delivered in JSON using this schema.
Field | Type | Description |
apn | string | APN used by eSIM |
bundleId | integer | Bundle ID |
callCategory | string | Type of call (voice, SMS, data, etc.) |
callDirection | string | MO (Mobile Originated) or MT (Mobile Terminated) |
calledPartyId | string | Number or ID of the party being called |
calledPartyLocation | string | Location of the called party during the call |
callingPartyId | string | Number or ID of the calling party |
callingPartyLocale | string | Country location of party generating CDR, derived from mccMnc |
callingPartyLocation | string | TADIG unique operator code |
callTypeCode | string | Type of consumption: voice, SMS, MMS, data |
cdrId | string | The UUID of the CDR |
cdrBillingDate | string | Date of CDR for billing purposes |
endTime | string | Time period of CDR, UTC |
entitlementEndDate | string | Bundle end date |
entitlementName | string | Bundle moniker |
entitlementStartDate | string | Bundle start date |
iccid | string | eSIM ICCID reference |
mccMnc | string | Network used to generate CDR |
operatorName | string | Mobile operator profile |
partialCdr | boolean | Whether this is a partial CDR (part of a sequence) |
ratType | integer | Indicates the Radio Access Type |
recordSequenceNumber | integer | Sequence number for partial CDRs |
startTime | string | Time period of CDR, UTC |
unitOfMeasure | string | Units of measure for consumption: seconds, SMS, MMS, bytes |
units | integer | Number of units consumed |
ratType values are defined in 3GPP TS 29.274 (RAT Type).
Example CDR
The records are returned in a records array. The example below is a data CDR. Values follow the schema types above: callingPartyId, iccid and mccMnc are strings, and callTypeCode and unitOfMeasure use the lower-case values from the schema. Data CDRs show N/A for callDirection and calledPartyLocation. The APN is uk.data.esim.
{
"records": [
{
"apn": "uk.data.esim",
"callCategory": "Data National",
"callDirection": "N/A",
"calledPartyLocation": "N/A",
"callingPartyId": "447123456789",
"callTypeCode": "data",
"iccid": "89441000400500012345",
"mccMnc": "23415",
"unitOfMeasure": "bytes"
}
]
}
Other example callCategory values are "SMS National MO" and "Voice National MO".
Tip: Use callTypeCode, units and unitOfMeasure to see how each customer splits their usage across voice, SMS and data. Because CDRs can arrive late, use them to check usage after the event, not for real-time alerts to your customers.