Skip to main content
POST
/
lbms-ingress
/
pg-lm
/
API
/
PG
/
CheckAvailability
Check Availability
curl --request POST \
  --url https://loyalife-api.xoxoday.in/lbms-ingress/pg-lm/API/PG/CheckAvailability \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "RelationReference": "jane.doe@example.com",
  "TransactionCurrency": "DEFAULT",
  "RelationType": 4,
  "ProgramId": 19
}
'
{
  "results": {
    "IsSucessful": true,
    "ErrorCode": "000",
    "ExceptionMessage": "Success",
    "ReturnObject": 910
  }
}

Documentation Index

Fetch the complete documentation index at: https://help-loyalife.xoxoday.com/llms.txt

Use this file to discover all available pages before exploring further.

Queries a member’s current redeemable points balance in real time. Always call this before Redeem Points to confirm the member has sufficient balance. Partial redemption is not supported — members must redeem points covering the full transaction value. The points-to-currency conversion rate is configurable per program; confirm the rate for your program with your Xoxoday implementation contact to correctly calculate how many points equal the cart value.

Responses

PathTypeDescription
results.IsSucessfulbooleantrue
results.ErrorCodestring000
results.ExceptionMessagestringSuccess
results.ReturnObjectintegerThe member’s current redeemable points balance

Authorizations

Authorization
string
header
required

JWT obtained from Generate Auth Token. Pass as Authorization: bearer {token}.

Body

application/json
RelationReference
string
required
Example:

"jane.doe@example.com"

TransactionCurrency
string
required
Example:

"DEFAULT"

RelationType
integer
required

Use 4 for customers

Example:

4

ProgramId
integer
required
Example:

19

Response

200 - application/json

Balance retrieved

results
object