POST v1/Licensee/CountryList

Get Countries List

This is secure method and requires below attributes in header

Authorization: Midnight Authorize Token

Request Information

URI Parameters

None.

Body Parameters

Country Filter Parameters

CountryRequest
NameDescriptionTypeAdditional information
Code

Provide the Country Code

string

None.

Name

Provide the Country Name

string

None.

Active

Provide the Status

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Name": "sample string 2",
  "Active": true
}

application/xml, text/xml

Sample:
<CountryRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Code>sample string 1</Code>
  <Name>sample string 2</Name>
  <Active>true</Active>
</CountryRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CountryRequest'.

Response Information

Response Formats

application/json, text/json

Sample:
[
  {
    "Code": "sample string 1",
    "Name": "sample string 2",
    "Active": true
  },
  {
    "Code": "sample string 1",
    "Name": "sample string 2",
    "Active": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCountryResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CountryResponse>
    <Code>sample string 1</Code>
    <Name>sample string 2</Name>
    <Active>true</Active>
  </CountryResponse>
  <CountryResponse>
    <Code>sample string 1</Code>
    <Name>sample string 2</Name>
    <Active>true</Active>
  </CountryResponse>
</ArrayOfCountryResponse>