GET api/territories?countryId={countryId}

Get States by Country

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of StateProvince
NameDescriptionTypeAdditional information
Code

string

None.

Country

Country

None.

Id

string

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Code": "sample string 1",
    "Country": {
      "Code": "sample string 1",
      "Id": "sample string 2",
      "Name": "sample string 3",
      "EmbargoCountry": true,
      "APPresScreen": true,
      "hasStates": true
    },
    "Id": "sample string 2",
    "Name": "sample string 3"
  },
  {
    "Code": "sample string 1",
    "Country": {
      "Code": "sample string 1",
      "Id": "sample string 2",
      "Name": "sample string 3",
      "EmbargoCountry": true,
      "APPresScreen": true,
      "hasStates": true
    },
    "Id": "sample string 2",
    "Name": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStateProvince xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models">
  <StateProvince>
    <Code>sample string 1</Code>
    <Country>
      <APPresScreen>true</APPresScreen>
      <Code>sample string 1</Code>
      <EmbargoCountry>true</EmbargoCountry>
      <Id>sample string 2</Id>
      <Name>sample string 3</Name>
      <hasStates>true</hasStates>
    </Country>
    <Id>sample string 2</Id>
    <Name>sample string 3</Name>
  </StateProvince>
  <StateProvince>
    <Code>sample string 1</Code>
    <Country>
      <APPresScreen>true</APPresScreen>
      <Code>sample string 1</Code>
      <EmbargoCountry>true</EmbargoCountry>
      <Id>sample string 2</Id>
      <Name>sample string 3</Name>
      <hasStates>true</hasStates>
    </Country>
    <Id>sample string 2</Id>
    <Name>sample string 3</Name>
  </StateProvince>
</ArrayOfStateProvince>