Skip to main content
Documentation for version v74

Get points account balance

Description

Returns the current points account balance of a loyalty program member: the total number of points and the number of active points for the selected points currency.

Request URL

Method: POST

https://example.com/api/v1.1/loyalty/account/balance

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abc123def456"YesAPI token
loyalty_program_idint123YesLoyalty program ID
points_currency_iidint1NoInternal points currency ID
points_currency_eidstring"starts"NoExternal points currency ID (for example, "starts")
matchingstring"email"YesProfile lookup method: email, phone, profile_id, custom
field_namestring"user_id"Yes, if matching = customCustom field name for lookup
field_valuestring / int123456Yes, if matching = customCustom field value
emailstring"user@example.com"Yes, if matching = emailMember email
phonestring"+1234567890"Yes, if matching = phoneMember phone number in international format
profile_idstring"profile123"Yes, if matching = profile_idProfile ID

Request example

{
"token": "abc123def456",
"loyalty_program_id": 123,
"points_currency_eid": "starts",
"matching": "email",
"email": "user@example.com"
}

Response example

{
"error": 0,
"error_text": "Successful operation",
"data": {
"total_balance": "1000.00",
"active_balance": "800.50"
}
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
total_balancestringTotal number of points in the points account (string format)
active_balancestringNumber of active points in the points account (string format)