GET api/Consumers/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Consumer| Name | Description | Type | Additional information |
|---|---|---|---|
| ConsumerId | integer |
None. |
|
| Name | string |
None. |
|
| Sex | integer |
None. |
|
| Age | integer |
None. |
|
| MobileNumber | string |
None. |
|
| Pin | string |
None. |
|
| Address | string |
None. |
|
| ProfileImage | string |
None. |
|
| StatusTypeId | integer |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedBy | integer |
None. |
|
| UpdatedDate | date |
None. |
|
| PinCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ConsumerId": 1,
"Name": "sample string 2",
"Sex": 1,
"Age": 1,
"MobileNumber": "sample string 3",
"Pin": "sample string 4",
"Address": "sample string 5",
"ProfileImage": "sample string 6",
"StatusTypeId": 1,
"CreatedBy": 1,
"CreatedDate": "2025-12-06T10:00:40.3719054+05:30",
"UpdatedBy": 1,
"UpdatedDate": "2025-12-06T10:00:40.3719054+05:30",
"PinCode": "sample string 7"
}
application/xml, text/xml
Sample:
<Consumer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNGroup.Models"> <Address>sample string 5</Address> <Age>1</Age> <ConsumerId>1</ConsumerId> <CreatedBy>1</CreatedBy> <CreatedDate>2025-12-06T10:00:40.3719054+05:30</CreatedDate> <MobileNumber>sample string 3</MobileNumber> <Name>sample string 2</Name> <Pin>sample string 4</Pin> <PinCode>sample string 7</PinCode> <ProfileImage>sample string 6</ProfileImage> <Sex>1</Sex> <StatusTypeId>1</StatusTypeId> <UpdatedBy>1</UpdatedBy> <UpdatedDate>2025-12-06T10:00:40.3719054+05:30</UpdatedDate> </Consumer>