Get a
...
country subdivision by
...
subdivision code.
Description
Retrieves a specific province country subdivision by its subdivision code
Package Details
Interface
...
_addressManager.GetCountrySubdivisionByCode(string subdivisionCode, string codecountryIsoCode)
Returns
Task<CountrySubdivision>
API
/api/v1/provincescountrySubdivisions/{idcode}"
Parameters
id - the country subdivision code. For example "ON" would return details on the province of Ontario.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
const string subdivisionCode = "ON";
string countryIsoCode = "124";
var countrySubdivision = await addressManager.GetCountrySubdivisionByCode(string subdivisionCode, string countryIsoCode);