LCID Packages allow a Service to display different LCIDs to a call recipient depending on their location. They are assigned to Outbound Services and Inbound traffic to these numbers are routed to a single Inbound Service. 

Currently, the Configuration API supports Read, List, and Get List Info methods for LCID Packages objects. Create, Update, and Delete are not yet supported.

Get LCID Package List Info

Description: Gets metadata for a list of LCID Packages.

User Roles: Sysadmin, Superuser, or Manager

Method: GET /configuration/lcidPackages/info[?client={client}]

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
clientclientIdInteger (ID)NoRestricts the list to entries that are specifically associated with this particular Client.

Body:

None

Response Code:  200 OK

Body:

Key or AttributeTypeMandatory?Description
sizeIntegerYesTotal number of entries in the list.
lastModifiedDateTimeNoThe last date & time that the list was updated. This information might not be available. This is formatted according to the definition of dateTime in the XML Schema specification. For JSON responses, it is represented as the number of milliseconds since midnight on January 1, 1970 (GMT).

Get the metadata for a list of LCID Packages, filtered by a Client

#Request
GET /configuration/lcidPackages/info?client=19636
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
200 OK
Content-Type: application/json

{
   "size": 1,
   "lastModified": 1337586262000
}
CODE

List LCID Packages

Description: Lists LCID Packages configured for a Client.

User Roles: Sysadmin, Superuser, or Manager

Method: GET /configuration/lcidPackages?[client={client}&]offset={n}&count={n}

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
clientclientIdInteger (ID)NoSpecifies the Client for which you want to retrieve the list of LCID Packages
countnIntegerYesSpecifies the number of items to return in the list. There is a hard cap of 1000 items.
offsetnIntegerYesSpecifies the offset from 0, based on count, to start listing from.

Body:

None

Response Code: 200 OK

Body:

KeyTypeMandatory?Description
nextURINoA URI for the next page of entries. If next is not present, or blank, then there are no pages after this one.
lcidPackageArrayNo

A container for a page of LCID Package entries. The page size is controlled via count and offset in the request.

KeyTypeMandatory?Description
idInteger (ID)YesInternal ID of the LCID Package
nameStringYesName of the LCID Package
descriptionStringYesDescription of the LCID Package

Get a list of LCID Packages for a Client

#Request (JSON)
GET /configuration/lcidPackages?client=19636&offset=0&count=10
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
200 OK
Content-Type: application/json

{
   "lcidPackage": [   {
      "id": 8963,
      "name": "InsideSales_52805",
      "description": "LCID for InsideSales"
   }],
   "next": null
}
CODE

Read LCID Package

Description: Gets information about an LCID Package.

User Roles: Sysadmin, Superuser, or Manager

Method: GET /configuration/lcidPackages/{id} 

Parameters:

Path/Query Parameter NameVariable NameTypeMandatory?Description
idpackageIdInteger (ID)YesThe ID of the LCID Package you want to query

Body:

None

Response Code: 200 OK

Body:

KeyTypeMandatory?Description
serviceArrayNo

An array of one or more Service IDs that are assigned to the LCID Package.

KeyTypeMandatory?Description
idInteger (ID)YesID of a Service to which this LCID Package is assigned.
numberArrayNo

An array of one or more phone numbers that are contained in the LCID Package.

KeyTypeMandatory?Description
phoneIdInteger (ID)YesID of a phone number contained in the LCID Package
numberStringYesPhone number contained in the LCID Package
areaCodeStringYesArea code of the phone number
stateStringYesState associated with the number
countryStringYesCountry associated with the number

Read configuration properties of an LCID Package

#Request (JSON)
GET /configuration/lcidPackages/8963
Host: localhost.com
Content-Type: application/json
Accept: application/json

#Response
200 OK
Content-Type: application/json

{
   "service": [{"id": 38373}],
   "number":    [
            {
         "phoneId": 200290,
         "number": "2137844315",
         "areaCode": "213",
         "state": "CA",
         "country": "UNITED STATES OF AMERICA"
      },
            {
         "phoneId": 200291,
         "number": "2137844316",
         "areaCode": "213",
         "state": "CA",
         "country": "UNITED STATES OF AMERICA"
      },
            {
         "phoneId": 200292,
         "number": "2137844317",
         "areaCode": "213",
         "state": "CA",
         "country": "UNITED STATES OF AMERICA"
      },
            {
         "phoneId": 200293,
         "number": "2137844318",
         "areaCode": "213",
         "state": "CA",
         "country": "UNITED STATES OF AMERICA"
      }
   ]
}
CODE

Top of Page