Region Api

Last modified by Michael on Fri, July 4, 2008 12:22
Source|Old Revisions  

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

  1. $proxy = new SoapClient('http://magentohost/api/soap/?wsdl');
  2. $sessionId = $proxy->login('apiUser', 'apiKey');
  3. $regions = $proxy->call($sessionId, 'region.list', 'US');
  4. // $regions = $proxy->call($sessionId, 'region.list', 'USA');
  5. var_dump($regions); // Region list for USA.



 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs