Get
...
a country
...
subdivision by subdivision code.
Description
Retrieves a list of all country subdivisions. A subdivision is a state or a province for a specific country.
For example, Ontario is a subdivision for the country of Canada.subdivision by its subdivision code
Package Details
Interface
IAddressManager
Syntax
_addressManagerAddressManager.GetCountrySubdivisionByCode(string codesubdivisionCode, string countryIsoCode)
Returns
Task<CountrySubdivision>
API
/api/v1/provincescountrySubdivisions/{idcode}"
Parameters
...
subdivisionCode
[string] : Country Subdivision code
countryIsoCode
[string]: Three letter ISO code of the country you want to retrieve the subdivision for
Returns
200 OK - Country subdivision details.
Example
...
Code Block | ||
---|---|---|
| ||
string subdivisionCode = "ON"; string countryIsoCode = "124"; var countrySubdivision = await _addressManager.GetCountrySubdivisionByCode(string subdivisionCode, string countryIsoCode); |