Skip to main content
Documentation for version v74

Get profile account transactions

Description

Returns the transaction history for a loyalty program member’s points account. Supports pagination and filtering by points currency.

Request URL

Method: POST

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

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abc123def456"YesAPI token
loyalty_program_idint123YesLoyalty program ID
points_currency_eidstring"bonus_points"Yes, if points_currency_iid is not providedExternal points currency ID
points_currency_iidint1Yes, if points_currency_eid is not providedInternal points currency ID
from_idstring"a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8"NoUUID of the last transaction for pagination (records with ID > from_id)
limitint20NoNumber of records per page (1–100, default 20)
matchingstring"email"YesProfile lookup method. Possible values: "email", "phone", "profile_id", "custom"
field_namestring"user_id"Yes, if matching = customCustom field name
field_valuestring / int"12345"Yes, 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"profile_123"Yes, if matching = profile_idProfile ID

Request example

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

Response example

{
"data": [
{
"transaction_id": "a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8",
"transaction_eid": "trans_12345",
"created_at": "2023-09-01T12:34:56Z",
"transaction_type": "accrual",
"amount": "100.1",
"balance_before": "500.5",
"balance_after": "600.6",
"promo_iid": 42,
"promo_eid": "promo_2023",
"description": "Points accrual for a purchase",
"activation_date": "2023-09-01T12:34:56Z",
"expiration_date": "2023-12-31T23:59:59Z",
"source_type": "order",
"source_iid": 789,
"source_sid": "order_123",
"source_subiid": 1,
"is_temp": false,
"custom_json": {"key": "value"},
"product_eid": "prod_123",
"sku_eid": "sku_456",
"canceled": false
}
],
"next_from_id": "b2c3d4e5-f6g7-8901-h2i3-j4k5l6m7n8o9",
"total_count": 150,
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
transaction_idstring (UUID)Unique transaction ID
transaction_eidstringExternal transaction ID
created_atstring (RFC3339)Transaction creation date and time
transaction_typestringTransaction type (accrual, redeem, expire, etc.)
amountstringNumber of accrued or redeemed points
balance_beforestringBalance before the operation
balance_afterstringBalance after the operation
promo_iidintInternal promotion ID
promo_eidstringExternal promotion ID
descriptionstringTransaction description
activation_datestring (RFC3339)Points activation date
expiration_datestring (RFC3339)Points expiration date
source_typestringTransaction source (api, manual, system, order, workflow, tier_group)
product_eidstringExternal product ID
sku_eidstringExternal SKU ID
canceledbooleanTransaction canceled flag
next_from_idstring (UUID)UUID for the next page
total_countintTotal number of transactions