Check Membership Credentials
curl --request POST \
--url https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"UniquerefID": "jane.doe@example.com",
"ProgramId": 19,
"RelationType": 4,
"Password": "{hashed_password}"
}
'import requests
url = "https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference"
payload = {
"UniquerefID": "jane.doe@example.com",
"ProgramId": 19,
"RelationType": 4,
"Password": "{hashed_password}"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
UniquerefID: 'jane.doe@example.com',
ProgramId: 19,
RelationType: 4,
Password: '{hashed_password}'
})
};
fetch('https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'UniquerefID' => 'jane.doe@example.com',
'ProgramId' => 19,
'RelationType' => 4,
'Password' => '{hashed_password}'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference"
payload := strings.NewReader("{\n \"UniquerefID\": \"jane.doe@example.com\",\n \"ProgramId\": 19,\n \"RelationType\": 4,\n \"Password\": \"{hashed_password}\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"UniquerefID\": \"jane.doe@example.com\",\n \"ProgramId\": 19,\n \"RelationType\": 4,\n \"Password\": \"{hashed_password}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"UniquerefID\": \"jane.doe@example.com\",\n \"ProgramId\": 19,\n \"RelationType\": 4,\n \"Password\": \"{hashed_password}\"\n}"
response = http.request(request)
puts response.read_body{
"results": {
"IsSucessful": true,
"ErrorCode": "000",
"ExceptionMessage": "Success",
"ReturnObject": {
"Id": 12345,
"FullName": "Jane Doe",
"Email": "jane.doe@example.com"
}
}
}{
"results": {
"IsSucessful": false,
"ErrorCode": "E401",
"ExceptionMessage": "Invalid credentials"
}
}Member Management
Check Membership Credentials
Enroll a new member in your loyalty program using the Loyalife Create Profile API.
POST
/
lbms-ingress
/
member
/
api
/
Member
/
CheckMembershipCredentialsByRelationReference
Check Membership Credentials
curl --request POST \
--url https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"UniquerefID": "jane.doe@example.com",
"ProgramId": 19,
"RelationType": 4,
"Password": "{hashed_password}"
}
'import requests
url = "https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference"
payload = {
"UniquerefID": "jane.doe@example.com",
"ProgramId": 19,
"RelationType": 4,
"Password": "{hashed_password}"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
UniquerefID: 'jane.doe@example.com',
ProgramId: 19,
RelationType: 4,
Password: '{hashed_password}'
})
};
fetch('https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'UniquerefID' => 'jane.doe@example.com',
'ProgramId' => 19,
'RelationType' => 4,
'Password' => '{hashed_password}'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference"
payload := strings.NewReader("{\n \"UniquerefID\": \"jane.doe@example.com\",\n \"ProgramId\": 19,\n \"RelationType\": 4,\n \"Password\": \"{hashed_password}\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"UniquerefID\": \"jane.doe@example.com\",\n \"ProgramId\": 19,\n \"RelationType\": 4,\n \"Password\": \"{hashed_password}\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://loyalife-api.xoxoday.in/lbms-ingress/member/api/Member/CheckMembershipCredentialsByRelationReference")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"UniquerefID\": \"jane.doe@example.com\",\n \"ProgramId\": 19,\n \"RelationType\": 4,\n \"Password\": \"{hashed_password}\"\n}"
response = http.request(request)
puts response.read_body{
"results": {
"IsSucessful": true,
"ErrorCode": "000",
"ExceptionMessage": "Success",
"ReturnObject": {
"Id": 12345,
"FullName": "Jane Doe",
"Email": "jane.doe@example.com"
}
}
}{
"results": {
"IsSucessful": false,
"ErrorCode": "E401",
"ExceptionMessage": "Invalid credentials"
}
}Validates a member’s password against their stored credentials, enabling password-based login within your loyalty portal. The password must be hashed (bcrypt or MD5 depending on your program configuration) before sending — never transmit plaintext passwords. On success, the response includes the member’s internal
Id and basic profile details. For OTP-based login, use Generate OTP by Relation Reference → Verify OTP by Relation Reference instead.
Responses
200 — Success
200 — Success
| Path | Type | Description |
|---|---|---|
results.IsSucessful | boolean | true |
results.ErrorCode | string | 000 |
results.ReturnObject.Id | integer | Internal member ID |
results.ReturnObject.FullName | string | Member’s full name |
results.ReturnObject.Email | string | Member’s email address |
results.ReturnObject.Status | integer | Account status — 1=Active |
results.ReturnObject.IsAccountActivated | boolean | Whether the account has been activated |
results.ReturnObject.LastLoggedIn | string (date-time) | Previous login timestamp |
results.ReturnObject.LoginAttempt | integer | Number of failed login attempts since last success |
results.ReturnObject.ForceChangePassword | boolean | true if the member must reset their password on next login |
401 — Invalid Credentials
401 — Invalid Credentials
| Path | Type | Description |
|---|---|---|
results.IsSucessful | boolean | false |
results.ErrorCode | string | Error code from the platform |
results.ExceptionMessage | string | Human-readable reason — check this field for details |
Authorizations
JWT obtained from Generate Auth Token. Pass as Authorization: bearer {token}.
Body
application/json
The member's RelationReference
Example:
"jane.doe@example.com"
Your loyalty program ID
Example:
19
Use 4 for customers
Example:
4
Member's password hashed using bcrypt or MD5 as configured for your program.
Example:
"$2b$10$hashed_password_here"
Response
Credentials valid — returns member profile
Show child attributes
Show child attributes
⌘I