Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Get a specific province by its code

Description

Retrieves a specific province by its code

Package Details

Interface

IAddressManager

Syntax

_addressManager.GetCountrySubdivisionByCode(string code)

Returns

Task<CountrySubdivision>

API

/api/v1/provinces/{id}

Parameters

id - the country subdivision code. For example "ON" would return details on the province of Ontario.

Returns

200 OK - Country subdivision details.

Example

const string subdivisionCode = "ON";
var countrySubdivision = await addressManager.GetCountrySubdivisionByCode(subdivisionCode);

  • No labels