GET api/Phone/GetCallCodes?smCountryRef={smCountryRef}&searchTerm={searchTerm}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
smCountryRef

string

Required

searchTerm

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CallCode
NameDescriptionTypeAdditional information
Id

string

None.

Value

string

None.

Type

string

None.

MaxLength

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "Value": "sample string 2",
    "Type": "sample string 3",
    "MaxLength": 4
  },
  {
    "Id": "sample string 1",
    "Value": "sample string 2",
    "Type": "sample string 3",
    "MaxLength": 4
  }
]

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ([{"Id":"sample string 1","Value":"sample string 2","Type":"sample string 3","MaxLength":4},{"Id":"sample string 1","Value":"sample string 2","Type":"sample string 3","MaxLength":4}]);

application/xml, text/xml

Sample:
<ArrayOfCallCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models.Phones">
  <CallCode>
    <Id>sample string 1</Id>
    <MaxLength>4</MaxLength>
    <Type>sample string 3</Type>
    <Value>sample string 2</Value>
  </CallCode>
  <CallCode>
    <Id>sample string 1</Id>
    <MaxLength>4</MaxLength>
    <Type>sample string 3</Type>
    <Value>sample string 2</Value>
  </CallCode>
</ArrayOfCallCode>