Get Member Email
1 min
GET
https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/emails/{memberEmailId}
Path Parameters
- memberIdentifierstringrequiredDescriptionMin Length1Max Length200
- memberEmailIdinteger<int64>requiredDescriptionFormatint64
Responses
200
- MemberEmail
- memberEmailIdinteger<int64>DescriptionFormatint64
- emailstringrequiredExampleDescriptionMin Length0Max Length150
- typeCodestringDescription
- orderinteger<int32>ExampleDescriptionFormatint32
- validatedbooleanDescription
- statusCodestringDescription
- updateDateTimestring<date-time>DescriptionFormatdate-time
400
- ErrorResponse
- errorsValidationError[]Description
- codestringDescription
- fieldNamestringDescription
- messagestringDescription
- messageParametersobject[]Description
401
403
500
curl
curl --request GET \
--url https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/emails/{memberEmailId} \
--header 'accept: application/json'ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/emails/{memberEmailId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/emails/{memberEmailId}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
java
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/emails/{memberEmailId}")
.method("GET", body)
.addHeader("accept", "application/json")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();200
// Success
{
"memberEmailId": "",
"email": "[email protected]",
"typeCode": "",
"order": 1,
"validated": false,
"statusCode": "",
"updateDateTime": ""
}400
// Bad request
{
"errors": [
{
"code": "",
"fieldName": "",
"message": "",
"messageParameters": [
{}
]
}
]
}401
// Unauthorized
403
// Forbidden
500
// Internal error