Region Api
Table of Contents
Allows to export regions from Magento
Module: Mage_Directory
Resource: directory_region
Aliases:
- region
Methods |
directory_region.list |
List of regions in specified country
Return: array
Arguments:
- string $country - Country code in ISO2 or ISO3
Aliases:
- region.list
Faults |
| Fault Code | Fault Message |
|---|---|
| 101 | Country not exists. |
Examples |
Retrieve regions list |
- $proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
- $sessionId = $proxy->login('apiUser', 'apiKey');
- $regions = $proxy->call($sessionId, 'region.list', 'US');
- // $regions = $proxy->call($sessionId, 'region.list', 'USA');
- var_dump($regions); // Region list for USA.




