shop.settings.getRegions

Returns array of country regions set up in store backend.

Parameters

  • country GET Optional

    If an ISO3 country code is specified, only that country's regions will be returned.

  • access_token GET

    API auth token obtained during the API authorization.

  • format GET Optional

    Sets response format. Available options: json (default), xml.

Sample call

https://demo1.webasyst.com/api.php/shop.settings.getRegions?

Error codes

  • invalid_request

    Invalid formed request. Additional information about the error is available in error_description parameter.

  • access_denied

    Access to the specified API method for the current token is denied.

  • invalid_method

    Unknown API method.