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 2 Current »

Get country by ISO letter code

Description

Retrieves a country by it's alphabetical 2 or 3 digit ISO code.
[https://www.iban.com/country-codes]

Package Details

Interface

IAddressManager

Syntax

await AddressManager.GetCountryByIsoLetterCode(string countryCode)

Returns

Task<Country>

API

/api/v1/countries/{code}

Parameters

Querystring
code - alpha 2 or 3 letter ISO letter code

Returns

200 OK - Country

Example

const string threeLetterCode = "CAN;
const string twoLetterCode = "CA";

var country = await _addressManager.GetCountryByIsoLetterCode(threeLetterCode);

var country = await _addressManager.GetCountryByIsoLetterCode(twoLetterCode);

  • No labels