POST api/Parameter/GetTownCodeList

Request Information

URI Parameters

None.

Body Parameters

GetTownCodeMobileRequest
NameDescriptionTypeAdditional information
CityCode

string

None.

TownName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CityCode": "sample string 1",
  "TownName": "sample string 2"
}

application/xml, text/xml

Sample:
<GetTownCodeMobileRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">
  <CityCode>sample string 1</CityCode>
  <TownName>sample string 2</TownName>
</GetTownCodeMobileRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'GetTownCodeMobileRequest'.

Response Information

Resource Description

GetTownCodeMobileResponse
NameDescriptionTypeAdditional information
TownCodeList

Collection of TownCodeMobileModel

None.

Result

ResultType

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TownCodeList": [
    {
      "CİtyCode": "sample string 1",
      "TownCode": "sample string 2",
      "TownName": "sample string 3"
    },
    {
      "CİtyCode": "sample string 1",
      "TownCode": "sample string 2",
      "TownName": "sample string 3"
    }
  ],
  "Result": 0,
  "ErrorMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<GetTownCodeMobileResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">
  <_x003C_ErrorMessage_x003E_k__BackingField>sample string 1</_x003C_ErrorMessage_x003E_k__BackingField>
  <_x003C_Result_x003E_k__BackingField>Success</_x003C_Result_x003E_k__BackingField>
  <TownCodeList>
    <TownCodeMobileModel>
      <CİtyCode>sample string 1</CİtyCode>
      <TownCode>sample string 2</TownCode>
      <TownName>sample string 3</TownName>
    </TownCodeMobileModel>
    <TownCodeMobileModel>
      <CİtyCode>sample string 1</CİtyCode>
      <TownCode>sample string 2</TownCode>
      <TownName>sample string 3</TownName>
    </TownCodeMobileModel>
  </TownCodeList>
</GetTownCodeMobileResponse>