- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
- User Guide
retrieveCountry - Region Module Reference
This documentation provides a reference to the retrieveCountry
method. This belongs to the Region Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method retrieves a country by its 2 character ISO code.
Example#
A simple example that retrieves a country by its 2 character ISO code:
To specify relations that should be retrieved:
Parameters#
countryId
stringThe country's ID, which is the 2 character ISO code.
The configurations determining how the country is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a country.
select
or relations
, accept the
attributes or relations associated with a country.Returns#
Promise
Promise<RegionCountryDTO>The retrieved country.
Promise
Promise<RegionCountryDTO>Was this page helpful?