GET api/State/GetStateByPostCode?postCode={postCode}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
postCode | string |
Required |
Body Parameters
None.
Response Information
Resource Description
StateByPostCodesModelName | Description | Type | Additional information |
---|---|---|---|
StateID | integer |
None. |
|
State | string |
None. |
|
StateShort | string |
None. |
|
CountryID | integer |
None. |
|
StatusID | integer |
None. |
|
PostCode | string |
None. |
|
Country | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "StateID": 1, "State": "sample string 2", "StateShort": "sample string 3", "CountryID": 1, "StatusID": 1, "PostCode": "sample string 4", "Country": "sample string 5" }
application/xml, text/xml
Sample:
<StateByPostCodesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Debtrak.BusinessObjects.Models.PostCode"> <Country>sample string 5</Country> <CountryID>1</CountryID> <PostCode>sample string 4</PostCode> <State>sample string 2</State> <StateID>1</StateID> <StateShort>sample string 3</StateShort> <StatusID>1</StatusID> </StateByPostCodesModel>