Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Get a specific Canadian Province by code

Description

Retrieves a specific Canadian Province by code.

Package Details

Interface

IAddressManager

Syntax

IAddressManager.GetProvinceByCode(string provinceCode)

Returns

CountrySubdivision

API

[GET] /api/v1/provinces/{code}

Parameter

code - alphabetical code

Returns

200 OK - Canadian Province

Example

Code Block
languagec#
var code = "QC";

var subdivisionList = await addressesManager.GetProvinceByCode(code);