GET api/v3/Locations/countries/{countryId}/states

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of State
NameDescriptionTypeAdditional information
Id

integer

None.

StateName

string

None.

CountryId

integer

None.

CountryName

string

None.

CountryCode

string

None.

TenantId

integer

None.

IsActive

boolean

None.

StateCode

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "StateName": "sample string 2",
    "CountryId": 3,
    "CountryName": "sample string 4",
    "CountryCode": "sample string 5",
    "TenantId": 6,
    "IsActive": true,
    "StateCode": "sample string 8"
  },
  {
    "Id": 1,
    "StateName": "sample string 2",
    "CountryId": 3,
    "CountryName": "sample string 4",
    "CountryCode": "sample string 5",
    "TenantId": 6,
    "IsActive": true,
    "StateCode": "sample string 8"
  }
]

text/html

Sample:
[{"Id":1,"StateName":"sample string 2","CountryId":3,"CountryName":"sample string 4","CountryCode":"sample string 5","TenantId":6,"IsActive":true,"StateCode":"sample string 8"},{"Id":1,"StateName":"sample string 2","CountryId":3,"CountryName":"sample string 4","CountryCode":"sample string 5","TenantId":6,"IsActive":true,"StateCode":"sample string 8"}]

text/xml

Sample:
<ArrayOfState xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models">
  <State>
    <CountryCode>sample string 5</CountryCode>
    <CountryId>3</CountryId>
    <CountryName>sample string 4</CountryName>
    <Id>1</Id>
    <IsActive>true</IsActive>
    <StateCode>sample string 8</StateCode>
    <StateName>sample string 2</StateName>
    <TenantId>6</TenantId>
  </State>
  <State>
    <CountryCode>sample string 5</CountryCode>
    <CountryId>3</CountryId>
    <CountryName>sample string 4</CountryName>
    <Id>1</Id>
    <IsActive>true</IsActive>
    <StateCode>sample string 8</StateCode>
    <StateName>sample string 2</StateName>
    <TenantId>6</TenantId>
  </State>
</ArrayOfState>