GET api/State/{id}
Get State by matching the provided id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
StateName | Description | Type | Additional information |
---|---|---|---|
StateId | integer |
None. |
|
StateName | string |
None. |
|
StateCode | string |
None. |
|
CountryCode | string |
None. |
|
Logo | string |
None. |
|
CreatedDateTime | date |
None. |
|
LastUpdatedDateTime | date |
None. |
|
CreatedBy | integer |
None. |
|
LastModifiedBy | integer |
None. |
|
IsDeleted | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "StateId": 1, "StateName": "sample string 2", "StateCode": "sample string 3", "CountryCode": "sample string 4", "Logo": "sample string 5", "CreatedDateTime": "2025-07-18T15:45:58.0585582+00:00", "LastUpdatedDateTime": "2025-07-18T15:45:58.0585582+00:00", "CreatedBy": 1, "LastModifiedBy": 1, "IsDeleted": true }
application/xml, text/xml
Sample:
<State xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClassLibraryITTF1"> <CountryCode>sample string 4</CountryCode> <CreatedBy>1</CreatedBy> <CreatedDateTime>2025-07-18T15:45:58.0585582+00:00</CreatedDateTime> <IsDeleted>true</IsDeleted> <LastModifiedBy>1</LastModifiedBy> <LastUpdatedDateTime>2025-07-18T15:45:58.0585582+00:00</LastUpdatedDateTime> <Logo>sample string 5</Logo> <StateCode>sample string 3</StateCode> <StateId>1</StateId> <StateName>sample string 2</StateName> </State>