GET api/Consumers/ById/{id}

Get Consumer by Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Id for Consumer

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Returns a Consumer

Consumer
NameDescriptionTypeAdditional information
Id

GUID Id for Consumer. Assigned by system on Create. [REQUIRED]

globally unique identifier

None.

Gender

Gender of Consumer [NULL]

string

None.

Address1

Address 1 for Consumer [NULL]

string

None.

Address2

Address 2 for Consumer [NULL]

string

None.

City

City of Consumer [NULL]

string

None.

State

State of Consumer [NULL]

string

None.

ZipCode

ZipCode of Consumer [NULL]

string

None.

Image

Image of Consumer [NULL]

string

None.

Deleted

Indicates whether the Consumer has been deleted or not. Set to false on Create by system. Set to true on delete by system. [REQUIRED]

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "d1c5b31e-4c2f-4bb9-a2a3-7872684b7830",
  "Gender": "sample string 2",
  "Address1": "sample string 3",
  "Address2": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "ZipCode": "sample string 7",
  "Image": "sample string 8",
  "Deleted": true
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'FaceOffers.Entities.MerchantConsumer' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'FaceOffers.Entities.MerchantConsumer' contains cycles and cannot be serialized if reference tracking is disabled.