Reversal Points
curl --request POST \
--url https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"RelationReference": "jane.doe@example.com",
"MerchantName": "Amazon",
"ExternalReference": "3FA85F64-5717-4562-B3FC-2C963F66AFA6",
"ProgramId": 19
}
'import requests
url = "https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints"
payload = {
"RelationReference": "jane.doe@example.com",
"MerchantName": "Amazon",
"ExternalReference": "3FA85F64-5717-4562-B3FC-2C963F66AFA6",
"ProgramId": 19
}
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({
RelationReference: 'jane.doe@example.com',
MerchantName: 'Amazon',
ExternalReference: '3FA85F64-5717-4562-B3FC-2C963F66AFA6',
ProgramId: 19
})
};
fetch('https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints', 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/pg-lm/API/PG/ReversalPoints",
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([
'RelationReference' => 'jane.doe@example.com',
'MerchantName' => 'Amazon',
'ExternalReference' => '3FA85F64-5717-4562-B3FC-2C963F66AFA6',
'ProgramId' => 19
]),
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/pg-lm/API/PG/ReversalPoints"
payload := strings.NewReader("{\n \"RelationReference\": \"jane.doe@example.com\",\n \"MerchantName\": \"Amazon\",\n \"ExternalReference\": \"3FA85F64-5717-4562-B3FC-2C963F66AFA6\",\n \"ProgramId\": 19\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/pg-lm/API/PG/ReversalPoints")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"RelationReference\": \"jane.doe@example.com\",\n \"MerchantName\": \"Amazon\",\n \"ExternalReference\": \"3FA85F64-5717-4562-B3FC-2C963F66AFA6\",\n \"ProgramId\": 19\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints")
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 \"RelationReference\": \"jane.doe@example.com\",\n \"MerchantName\": \"Amazon\",\n \"ExternalReference\": \"3FA85F64-5717-4562-B3FC-2C963F66AFA6\",\n \"ProgramId\": 19\n}"
response = http.request(request)
puts response.read_body{
"results": {
"IsSucessful": true,
"ErrorCode": "000",
"ExceptionMessage": "Success",
"ReturnObject": true
}
}Points Redemption
Reversal Points
Reverse a redemption transaction and restore the member’s points balance via the Loyalife API.
POST
/
lbms-ingress
/
pg-lm
/
API
/
PG
/
ReversalPoints
Reversal Points
curl --request POST \
--url https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"RelationReference": "jane.doe@example.com",
"MerchantName": "Amazon",
"ExternalReference": "3FA85F64-5717-4562-B3FC-2C963F66AFA6",
"ProgramId": 19
}
'import requests
url = "https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints"
payload = {
"RelationReference": "jane.doe@example.com",
"MerchantName": "Amazon",
"ExternalReference": "3FA85F64-5717-4562-B3FC-2C963F66AFA6",
"ProgramId": 19
}
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({
RelationReference: 'jane.doe@example.com',
MerchantName: 'Amazon',
ExternalReference: '3FA85F64-5717-4562-B3FC-2C963F66AFA6',
ProgramId: 19
})
};
fetch('https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints', 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/pg-lm/API/PG/ReversalPoints",
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([
'RelationReference' => 'jane.doe@example.com',
'MerchantName' => 'Amazon',
'ExternalReference' => '3FA85F64-5717-4562-B3FC-2C963F66AFA6',
'ProgramId' => 19
]),
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/pg-lm/API/PG/ReversalPoints"
payload := strings.NewReader("{\n \"RelationReference\": \"jane.doe@example.com\",\n \"MerchantName\": \"Amazon\",\n \"ExternalReference\": \"3FA85F64-5717-4562-B3FC-2C963F66AFA6\",\n \"ProgramId\": 19\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/pg-lm/API/PG/ReversalPoints")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"RelationReference\": \"jane.doe@example.com\",\n \"MerchantName\": \"Amazon\",\n \"ExternalReference\": \"3FA85F64-5717-4562-B3FC-2C963F66AFA6\",\n \"ProgramId\": 19\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/ReversalPoints")
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 \"RelationReference\": \"jane.doe@example.com\",\n \"MerchantName\": \"Amazon\",\n \"ExternalReference\": \"3FA85F64-5717-4562-B3FC-2C963F66AFA6\",\n \"ProgramId\": 19\n}"
response = http.request(request)
puts response.read_body{
"results": {
"IsSucessful": true,
"ErrorCode": "000",
"ExceptionMessage": "Success",
"ReturnObject": true
}
}Cancels a previously completed redemption and restores the member’s points balance. Use this when fulfilment fails after points have already been deducted — for example, a hotel booking that couldn’t be confirmed, or a gift card that was not issued.
Key behaviours to know:
- No time limit — reversals can be called at any time after the original redemption, there is no expiry window.
- One reversal per transaction — calling
ReversalPointsa second time with the sameExternalReferencewill fail. Store the outcome of the first call. ExternalReferenceis required — this UUID is the only link back to the originalRedeemPointstransaction. If you didn’t save it, the reversal cannot be processed.
Responses
200 — Success
200 — Success
| Path | Type | Description |
|---|---|---|
results.IsSucessful | boolean | true |
results.ErrorCode | string | 000 |
results.ExceptionMessage | string | Success |
results.ReturnObject | boolean | true when reversal is complete and points are restored |
Authorizations
JWT obtained from Generate Auth Token. Pass as Authorization: bearer {token}.
Body
application/json
Must match the RelationReference from the original RedeemPoints call.
Example:
"jane.doe@example.com"
Must match the MerchantName from the original RedeemPoints call.
Example:
"Amazon"
UUID returned by RedeemPoints. Identifies the redemption being reversed.
Example:
"3FA85F64-5717-4562-B3FC-2C963F66AFA6"
Example:
19
Response
200 - application/json
Reversal successful — points restored