Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Region Api

Last modified by Michael on Fri, July 4, 2008 13: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.



 

Popular Wiki Tags  |  View all

 routes   module   data accessing   list   action   resource   backend   api   mysql4   controller   php   getModel   attribute   Mage API   reference 

Professional Services from the Magento Team

Professional Installation from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50108 users|485 users currently online|102247 forum posts