POST Types/GetProvinces

Verkrijg provincies

Request Information

URI Parameters

None.

Body Parameters

ProvinceFilter
NameDescriptionTypeAdditional information
CountryId

Landnummer

integer

None.

ISOcode

ISO-code

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CountryId": 1,
  "ISOcode": "sample string 1"
}

application/xml, text/xml

Sample:
<ProvinceFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Filters">
  <CountryId>1</CountryId>
  <ISOcode>sample string 1</ISOcode>
</ProvinceFilter>

Response Information

Resource Description

Logic4ResponseListOfProvince
NameDescriptionTypeAdditional information
Records

Collection of Province

None.

RecordsCounter

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Records": [
    {
      "Id": 1,
      "Name": "sample string 2"
    },
    {
      "Id": 1,
      "Name": "sample string 2"
    }
  ],
  "RecordsCounter": 2,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseListOfProvinceLnN1pw8Y xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Records xmlns:d2p1="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
    <d2p1:Province>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:Province>
    <d2p1:Province>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
    </d2p1:Province>
  </Records>
</Logic4ResponseListOfProvinceLnN1pw8Y>