Retrieve all Service Numbers

This function retrieves all service numbers from the client account.

URL

GET {baseURL}/serviceNumbers

Parameters

None

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Returned Data (200 OK)

A JSON Structure containing the following fields:

FieldTypeData
filterStringThe applied filter. This is reserved for future use.
limitStartIntegerThe first record index. Currently 0, reserved for future use.
limitPageSizeIntegerThe number of records. -1 indicates all records. Reserved for future use.
recordsServiceNumbers []An array of ServiceNumbers.
countIntegerThe number of records returned.
orderByStringThe field used to sort the records. 
ascendingBooleanWhether the array of records is sorted ascending or descending.
statusIntegerThe return code (also provided by the http status code).

Example

Note, the records array has been shortened for readability.

{
    "filter": "",
    "limitStart": 0,
    "limitPageSize": -1,
    "records": [
        {
            "ContractNumber": null,
            "dtTo": null,
            "EndNumber": "",
            "dtReset": "2022-06-17T15:19:12.484+02:00",
            "ResellerTrafficManagementPoliciesID": null,
...
            "ApplySeconds4": null,
            "bCockpitConferenceFlag": false,
            "ClientsID": 1,
            "ApplySeconds3": null,
            "ResellersID": 1
        }
    ],
    "count": 14,
    "orderBy": "Name2",
    "ascending": true,
    "status": 200
}

Retrieve a specific Service Number by ID

This function retrieves a specific service number by ID.

URL

GET {baseURL}/serviceNumbers/serviceNumber/{serviceNumbersID}

Parameters

ParameterWhereTypeData
serviceNumbersIDURLIntegerThe ID of the service number.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Returned Data (200 OK)

A JSON Structure containing the returned data.

FieldTypeData
recordsServiceNumbers []An array of ServiceNumbers, containing ServiceNumber.
countInteger1
statusIntegerThe return code (also provided by the http status code).

Example

Note, the record array has been shortened for readability.

{
    "records": [
        {
            "ContractNumber": null,
            "dtTo": null,
            "EndNumber": "",
            "dtReset": "2021-05-07T13:04:46.839+02:00",
            "ResellerTrafficManagementPoliciesID": null,
            "RootNumber": "49199501",
            "Name": "49199501",
...
            "ClientsID": 1,
            "ApplySeconds3": null,
            "ResellersID": 1
        }
    ],
    "count": 1,
    "status": 200
}

Retrieve ServiceNumber by Name

This function retrieves one or more ServiceNumbers, depending on the passed name. If more than one ServiceNumber is available which matches the name passed (partial match), then all corresponding service numbers will be returned.

URL

GET {baseURL}/serviceNumbers/serviceNumber?name={ServiceNumbersName}

Parameters

ParameterWhereTypeData
ServiceNumbersNameQueryStringThe name of the service number(s) to retrieve.

Responses

If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.

Returned Data (200 OK)

A JSON Structure containing the returned acd groups.

FieldTypeData
recordsServiceNumbers []

An array of ServiceNumbers.

countIntegerThe number of records returned.
statusIntegerThe return code (also provided by the http status code).

Example

Note, the records array has been shortened for readability.

{
    "records": [
        {
            "ContractNumber": null,
            "dtTo": null,
            "EndNumber": "",
            "dtReset": "2022-06-17T15:19:12.484+02:00",
            "ResellerTrafficManagementPoliciesID": null,
            "RootNumber": "49199500",
            "Name": "49199500",
...
            "RoutingPlansID": null,
            "bPeakService": null,
            "bCockpitOriginFlag": false,
            "BillingPK": null,
            "dtFrom": null,
            "TrunkGroupsID": 22,
            "nCallsReset": null,
            "ApplySeconds2": null,
            "ApplySeconds1": null,
            "WhiteListsID": null,
            "ApplySeconds4": null,
            "bCockpitConferenceFlag": false,
            "ClientsID": 1,
            "ApplySeconds3": null,
            "ResellersID": 1
        }
    ],
    "count": 14,
    "status": 200
}
  • No labels