Email Validity Lookup API
Summary
This API provides the ability look up the validity of an email address using Email Address. The response will include the information regarding the email validity provided by the email validity vendor for a given email address.
General Technical Requirements
The following technical requirements apply to all requests for this API.
Base Resource URI
Production: https://ows.omeda.com/webservices/rest/brand/{brandAbbreviation}/email/{emailAddress}/validity/*
Testing: https://ows.omedastaging.com/webservices/rest/brand/{brandAbbreviation}/email/{emailAddress}/validity/*
brandAbbreviation is the abbreviation for the brand. emailAddress is the email address for which we are requesting customer information.
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 json.org for details.
Supported HTTP Methods
There is one HTTP method supported:
GET : See W3C’s GET specs for details.
Lookup All Email Validity Codes for Email Address
Retrieves all Email Validity Codes for the email address.
Field Definition
The following table describes the data elements present on the response from the API.
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.
Element Name | Always Returned… | Data Type | Description |
EmailValidities | Yes | Array | each EmailValidities element contains the detail for the specific customer. |
SubmissionId | Yes | String | a unique identifier for the web services response. It can be used to cross-reference the response in Omeda’s database. |
Customers Elements
Element Name | Always Returned… | Data Type | Description |
---|---|---|---|
ValidationDate | Yes | String | Date of when the Email Address was validated by Vendor. |
VendorCode | Yes | String | Code that signifies the validity of the Email Address provided by Vendor. |
VendorCodeDescription | Yes | String | Validity Code description. |
VendorName | Yes | String | Name of Email Validity Vendor. |
Response
HTTP Response Codes
It is possible that multiple customers are returned for the same email address. If only one is found, a 200 OK status is returned. If more than one is found, a 300 Multiple Choices status is returned.
Status | Description |
---|---|
200 OK | The request has succeeded. See Example Response below. |
300 Multiple Choices | This response will be returned when more than one customer was found for that email address. Response body will contain a list of all customers that have that email address. |
403 Forbidden | Typically, this error occurs when the credentials are erroneous. Potentially, an incorrect x-omeda-appid. |
404 Not Found | This response occurs when the email address submitted was not found. |
500 Internal Server Error | In 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. |
Success
{
"EmailValidities":[
{
"ValidationDate":"2020-04-10 08:49:19"
"VendorCode": "V"
"VendorCodeDescription": "valid"
"VendorName": "FreshAddress"
},
{
"ValidationDate":"2019-02-15 10:43:59"
"VendorCode": "SUCCESS"
"VendorCodeDescription": "success"
"VendorName": "Synthio"
},
{
"ValidationDate":"2019-01-02 00:00:00"
"VendorCode": "ACCEPTALL"
"VendorCodeDescription": "acceptall"
"VendorName": "Synthio"
}
]
"SubmissionId":"ec0c2ba6-13f4-4934-8efa-74c2ccb33f1d"
}
Failure
{
"SubmissionId":"ec0c2ba6-13f4-4934-8efa-74c2ccb33f1d",
"Errors":[
{
"Error":"Email address 12345@mail.com not found."
}
]
}
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.
Table of Contents
- 1 Summary
- 2 General Technical Requirements
- 2.1 Base Resource URI
- 2.2 HTTP Headers
- 2.3 Content Type
- 2.4 Supported HTTP Methods
- 3 Lookup All Email Validity Codes for Email Address
- 3.1 Field Definition
- 3.1.1 Customers Elements
- 3.2 Response
- 3.2.1 HTTP Response Codes
- 3.2.2 Success
- 3.2.3 Failure
- 3.2.3.1 Possible Error Messages
- 3.1 Field Definition