TAG LINE
TAG LINE
SMALL TITLE

Data Import / Usage

(API Version v7)


Import raw usage data for the specified usage feed to get meditated and rated. The API sends the data asynchronously to the file importer for processing and responds with a tracking identifier for traceability.


What can you do with DataImportUsage?



End Points

POSTDataImport/Usage/Json/Multi/{id}
Insert multiple raw data usage records in a JSON format for a Usage Feed specified by {id}.
{id}Unique identifier for the Usage Feed to which this payload should be applied.
Insert multiple raw data usage records in a JSON format for a Usage Feed specified by {id}.
POST DataImport/Usage/Json/Multi/{id}

{
    "data": [
        {
            "DateTime": "2023-04-25T01:01:00.06",
            "UdrIdentifierTypeName": "Unknown",
            "OriginatingIdentifier": "4038675310",
            "TerminatingIdentifier": "4038675346",
            "UdrUsageIdentifier": "814-241-4332",
            "Value": 134,
            "Inbound": false,
            "ReverseRating": false,
            "UsageClassName": "data_class",
            "UsageClassTypeName": "data_classType"
        },
        {
            "DateTime": "2023-04-26T01:01:00.07",
            "UdrIdentifierTypeName": "Unknown",
            "OriginatingIdentifier": "4038675311",
            "TerminatingIdentifier": "4038675347",
            "UdrUsageIdentifier": "814-241-4332",
            "Value": 135,
            "Inbound": false,
            "ReverseRating": false,
            "UsageClassName": "data_class",
            "UsageClassTypeName": "data_classType"
        }
    ]
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "78578940-e75f-4984-9db3-75fdf552913d",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "action": "created",
                "dtoTypeKey": "dataImportRequestTracking",
                "instance": {
                    "trackingId": "a654294f-9fd6-4576-aeec-b4531b742dd1",
                    "udrFeedId": 3
                }
            }
        ]
    }
}
POSTDataImport/Usage/Json/{id}
Insert single raw data usage record in a JSON format for a Usage Feed specified by {id}
{id}Unique identifier for the Usage Feed to which this payload should be applied.
Insert single raw data usage record in a JSON format for a Usage Feed specified by {id}
POST DataImport/Usage/Json/{id}

{
        "DateTime": "2023-04-25T01:01:00.06",
        "UdrIdentifierTypeName": "Unknown",
        "OriginatingIdentifier": "555xtgr8675310",
        "TerminatingIdentifier": "403dsf867sfsd5346",
        "UdrUsageIdentifier": "ssty814-24ss1-433d2",
        "Value": 134,
        "Inbound": false,
        "ReverseRating": false,
        "UsageClassName": "data_class",
        "UsageClassTypeName": "data_classType"
    }
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "b4701009-121f-4903-a33d-c0039b33a512",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "action": "created",
                "dtoTypeKey": "dataImportRequestTracking",
                "instance": {
                    "trackingId": "0e6042bb-ccbe-41d9-b471-69c988c990ab",
                    "udrFeedId": 3
                }
            }
        ]
    }
}
POSTDataImport/Usage/{id}
Insert raw data usage record with payload that matches the requirements of Usage Feed specified by {id}
{id}Unique identifier for the Usage Feed to which this payload should be applied.
Insert raw data usage record with payload that matches the requirements of Usage Feed specified by {id}
POST DataImport/Usage/{id}

{
    "data": [
        "106ab566-c0fd-46ed-8932-4365208cd0e3",
        "106ab566-c0fd-46ed-8932-4365208cd0e3",
        "106ab566-c0fd-46ed-8932-4365208cd0e3"
    ]
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "43fa3978-c1cc-4a48-afaa-5e1f9955d5ab",
    "type": "sendMessage",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "action": "messageSent",
                "dtoTypeKey": "dataImportUsageResults",
                "instance": {
                    "identity": 100,
                    "successful": true
                }
            }
        ]
    }
}