Get a country subdivision by subdivision code.
Description
Retrieves a country subdivision by its subdivision code
Package Details
Interface
IAddressManager
Syntax
_addressManager.GetCountrySubdivisionByCode(string subdivisionCode, string countryIsoCode)
Returns
Task<CountrySubdivision>
API
/api/v1/countrySubdivisions/{code}"
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
string subdivisionCode = "ON";
string countryIsoCode = "124";
var countrySubdivision = await addressManager.GetCountrySubdivisionByCode(string subdivisionCode, string countryIsoCode);