Search the Omeda Knowledge Base

< All Topics

Demographic Lookup By Customer Id


This service returns all available customer demographics stored for a given customer by using the Customer ID.

General Technical Requirements

The following technical requirements apply to all requests for this API.

Base Resource URI



brandAbbreviation is the abbreviation for the brand customerId is the internal customer id (encrypted customer id may also be used)

HTTP Headers

The HTTP header must contain the following element: x-omeda-appid a unique id provided to you by Omeda to access your data. The request will fail without a valid id.

Content Type

The content type is application/json. JSON application/json

JSON is the preferred data exchange format, because it is lightweight and, in most cases, faster to process and utilizes less bandwidth. There are many available open-source JSON libraries available. See for details.

Supported HTTP Methods

There is one HTTP method supported:

  1. GET : See W3C’s GET specs for details.

Lookup Demograhics By Customer Id

Retrieves a record containing all demographic information about the customer.

Field Definition

The following tables describe the hierarchical data elements.

In addition to the below elements, a SubmissionId element will also be returned with all responses. This is a unique identifier for the web services response. It can be used to cross-reference the response in Omeda’s database.

CustomerDemographics Elements

Element NameDescription
CustomerElement containing an http reference to the owning customer resource.
CustomerDemographiceach CustomerDemographic element contains all demographic information.

CustomerDemographic Elements

Element NameAlways Returned…Data typeDescription
IdNo unique customer demographic identifier
DemographicIdNo integer that defines the demographic the responses are gathered for
DemographicTypeNo integer – see Additional Information for the list of values and their descriptions
DemographicAgeNo integer – The number of years since the demographic was collected for this customer. The “year” is calculated based on the product’s audit cycle.
ValueIdYes the individual response value, if the response/data was for a single-response or a multiple-response demographic.
ValueTextYes the individual response value, if the response/data was for a text-response demographic.
ValueDateYes the individual response value, if the response/data was for a date-response demographic.
WriteInDescYesStringIf the Demographics Value “Type” is an “Other” response, and a text answer is being stored for this “Other” value, then the text answer will be returned.
AlternateIdNoStringAn id that can be used to uniquely identify this demographic(perhaps in your content management system).
ChangedDateno Date & time record last changed. yyyy-MM-dd HH:mm:ss format. Example: 2010-03-08 21:23:34.


HTTP Response Codes

200 OKThe request has succeeded. See Example Response below.
403 ForbiddenTypically, this error occurs when the credentials are erroneous. Potentially, an incorrect x-omeda-appid.
404 Not FoundTypically, this error occurs with a malformed URL or the resource that is searched for is not found.
500 Internal Server ErrorIn the rare case that there is a server-side problem, this response will be returned. This generally indicates a problem of a more serious nature, and submitting additional requests may not be advisable. Please contact your Omeda Account Representative if the issue continues.


         "ChangedDate": "2015-03-08 21:23:34"
         "ChangedDate": "2015-03-08 21:23:34"
         "ChangedDate": "2015-03-08 21:23:34"
         "ChangedDate": "2015-03-08 21:23:34"
         "WriteInDesc":"write in text",
         "ChangedDate": "2015-03-08 21:23:34"
         "ValueDate":"2015-04-19 11:33:17",
         "ChangedDate": "2015-03-08 21:23:34"
   "SubmissionId" : "24B9BF6F-0677-462B-942A-D87EEBD10F77"


         "Error":"No demographics found for customer 12345."
Possible Error Messages

In the event of an error, an error response will be returned. Here are some of the possible responses you might receive.

No demographics found for customer {customerId}.

Additional Information

Demographics – DemographicType

1a single-choice-allowed type of question. (Two or more choices – one answers)
2a multiple-choice-allowed type of question. (Two or more choices – many answers)
3an open-form short answer question. (No choices – text input)
5a yes/no answer
6a date answer
7a whole number answer
8a decimal answer
Table of Contents
Scroll to Top