POST Location/Provinces

Get Provinces

Request Information

URI Parameters

None.

Body Parameters

GetProvinces
NameDescriptionTypeAdditional information
RegionID

integer

None.

CountryID

integer

None.

Lang

string

None.

StoreID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RegionID": 1,
  "CountryID": 1,
  "Lang": "sample string 2",
  "StoreID": 3
}

application/xml, text/xml

Sample:
<GetProvinces xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.View.Location">
  <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">sample string 2</Lang>
  <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">3</StoreID>
  <CountryID>1</CountryID>
  <RegionID>1</RegionID>
</GetProvinces>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of Province
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Name": "sample string 2"
  },
  {
    "ID": 1,
    "Name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfProvince xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.View.Location">
  <Province>
    <ID>1</ID>
    <Name>sample string 2</Name>
  </Province>
  <Province>
    <ID>1</ID>
    <Name>sample string 2</Name>
  </Province>
</ArrayOfProvince>