GET api/TownShip/GetAll/{postalCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| postalCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
ResponseGetAllTownShipModel| Name | Description | Type | Additional information |
|---|---|---|---|
| data | Collection of TownShipModel |
None. |
|
| message | string |
None. |
|
| success | boolean |
None. |
|
| total | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": [
{
"Id": "8465995f-af03-41f2-ba70-1017aa754e80",
"TownShipCode": "sample string 2",
"Zone": "sample string 3",
"PostalCode": "sample string 4",
"OfficeCode": "sample string 5",
"CreatedOn": "2026-08-26T19:11:53.0387105-04:00",
"IdAsentaCPcons": "sample string 7",
"Name": "sample string 8",
"TownId": "8da12db5-51a5-42c7-a125-c9012c6325c7",
"Town": {
"Id": "5b825603-df14-484d-84a0-fa6b7d54e23e",
"Name": "sample string 2",
"Code": "sample string 3",
"CityName": "sample string 4",
"CityCode": "sample string 5",
"CreatedOn": "2026-08-26T19:11:53.0397084-04:00",
"StateId": "6947a48a-e583-4e5b-b8cc-660573de44f3",
"State": {
"Id": "9d4dc0c5-7b03-44a2-a779-e7c1f1cb77fd",
"Name": "sample string 2",
"Code": "sample string 3",
"CreatedOn": "2026-08-26T19:11:53.040708-04:00"
}
},
"TownShipTypeId": "a3c9a315-6de0-4740-96ea-b72df2af6f16",
"TownShipType": {
"Id": "57114b97-767c-4ff5-af2c-cfde82e0884d",
"Name": "sample string 2",
"Code": "sample string 3",
"CreatedOn": "2026-08-26T19:11:53.040708-04:00"
}
},
{
"Id": "8465995f-af03-41f2-ba70-1017aa754e80",
"TownShipCode": "sample string 2",
"Zone": "sample string 3",
"PostalCode": "sample string 4",
"OfficeCode": "sample string 5",
"CreatedOn": "2026-08-26T19:11:53.0387105-04:00",
"IdAsentaCPcons": "sample string 7",
"Name": "sample string 8",
"TownId": "8da12db5-51a5-42c7-a125-c9012c6325c7",
"Town": {
"Id": "5b825603-df14-484d-84a0-fa6b7d54e23e",
"Name": "sample string 2",
"Code": "sample string 3",
"CityName": "sample string 4",
"CityCode": "sample string 5",
"CreatedOn": "2026-08-26T19:11:53.0397084-04:00",
"StateId": "6947a48a-e583-4e5b-b8cc-660573de44f3",
"State": {
"Id": "9d4dc0c5-7b03-44a2-a779-e7c1f1cb77fd",
"Name": "sample string 2",
"Code": "sample string 3",
"CreatedOn": "2026-08-26T19:11:53.040708-04:00"
}
},
"TownShipTypeId": "a3c9a315-6de0-4740-96ea-b72df2af6f16",
"TownShipType": {
"Id": "57114b97-767c-4ff5-af2c-cfde82e0884d",
"Name": "sample string 2",
"Code": "sample string 3",
"CreatedOn": "2026-08-26T19:11:53.040708-04:00"
}
}
],
"message": "sample string 1",
"success": true,
"total": 3
}
application/xml, text/xml
Sample:
<ResponseGetAllTownShipModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UnderArmorAPI.Models">
<message>sample string 1</message>
<success>true</success>
<total>3</total>
<data>
<TownShipModel>
<CreatedOn>2026-08-26T19:11:53.0387105-04:00</CreatedOn>
<Id>8465995f-af03-41f2-ba70-1017aa754e80</Id>
<IdAsentaCPcons>sample string 7</IdAsentaCPcons>
<Name>sample string 8</Name>
<OfficeCode>sample string 5</OfficeCode>
<PostalCode>sample string 4</PostalCode>
<Town>
<CityCode>sample string 5</CityCode>
<CityName>sample string 4</CityName>
<Code>sample string 3</Code>
<CreatedOn>2026-08-26T19:11:53.0397084-04:00</CreatedOn>
<Id>5b825603-df14-484d-84a0-fa6b7d54e23e</Id>
<Name>sample string 2</Name>
<State>
<Code>sample string 3</Code>
<CreatedOn>2026-08-26T19:11:53.040708-04:00</CreatedOn>
<Id>9d4dc0c5-7b03-44a2-a779-e7c1f1cb77fd</Id>
<Name>sample string 2</Name>
</State>
<StateId>6947a48a-e583-4e5b-b8cc-660573de44f3</StateId>
</Town>
<TownId>8da12db5-51a5-42c7-a125-c9012c6325c7</TownId>
<TownShipCode>sample string 2</TownShipCode>
<TownShipType>
<Code>sample string 3</Code>
<CreatedOn>2026-08-26T19:11:53.040708-04:00</CreatedOn>
<Id>57114b97-767c-4ff5-af2c-cfde82e0884d</Id>
<Name>sample string 2</Name>
</TownShipType>
<TownShipTypeId>a3c9a315-6de0-4740-96ea-b72df2af6f16</TownShipTypeId>
<Zone>sample string 3</Zone>
</TownShipModel>
<TownShipModel>
<CreatedOn>2026-08-26T19:11:53.0387105-04:00</CreatedOn>
<Id>8465995f-af03-41f2-ba70-1017aa754e80</Id>
<IdAsentaCPcons>sample string 7</IdAsentaCPcons>
<Name>sample string 8</Name>
<OfficeCode>sample string 5</OfficeCode>
<PostalCode>sample string 4</PostalCode>
<Town>
<CityCode>sample string 5</CityCode>
<CityName>sample string 4</CityName>
<Code>sample string 3</Code>
<CreatedOn>2026-08-26T19:11:53.0397084-04:00</CreatedOn>
<Id>5b825603-df14-484d-84a0-fa6b7d54e23e</Id>
<Name>sample string 2</Name>
<State>
<Code>sample string 3</Code>
<CreatedOn>2026-08-26T19:11:53.040708-04:00</CreatedOn>
<Id>9d4dc0c5-7b03-44a2-a779-e7c1f1cb77fd</Id>
<Name>sample string 2</Name>
</State>
<StateId>6947a48a-e583-4e5b-b8cc-660573de44f3</StateId>
</Town>
<TownId>8da12db5-51a5-42c7-a125-c9012c6325c7</TownId>
<TownShipCode>sample string 2</TownShipCode>
<TownShipType>
<Code>sample string 3</Code>
<CreatedOn>2026-08-26T19:11:53.040708-04:00</CreatedOn>
<Id>57114b97-767c-4ff5-af2c-cfde82e0884d</Id>
<Name>sample string 2</Name>
</TownShipType>
<TownShipTypeId>a3c9a315-6de0-4740-96ea-b72df2af6f16</TownShipTypeId>
<Zone>sample string 3</Zone>
</TownShipModel>
</data>
</ResponseGetAllTownShipModel>