Loyalties
List Member Pending Points with campaign ID
Lists all pending points that are currently assigned to the loyalty card. Once the points are added to the card, the entry is no longer returned.
👍 Configuring pending points
Pending points are configured as part of an earning rule with POST Create earning rule or PUT Update earning rule.
get/v1/loyalties/{campaignId}/members/{memberId}/pending-points
Query parameters
limitinteger
Limit the number of the pending point entries that the API returns in the response.
order'id' | '-id'
Orders the pending point entries according the pending point entry ID. The dash - preceding a sorting option means sorting in a descending order.
starting_after_idstring
A cursor for pagination. It retrieves the results starting after a result with the given ID.
Response
Returns all pending point entries.
Example response
{
"data": [
{
"id": "lopp_0ffd593d5ad207ba6b",
"voucher_id": "v_abCdEfghI1JKLMNPqRS2Tu3vWXyza4bc",
"campaign_id": "camp_weer1c3p5ZgktqfW56RfoNaG",
"customer_id": "cust_IdgAFZxYwwHctOk9ppZMu319",
"order_id": "ord_0ffc0fa65f15d2df17",
"details": {
"event": {
"event_source": {
"channel": "API",
"user": {
"id": "user_xyzfghSTprSTUVWXYlk6tuvXYst7FGH7"
},
"api_key": {
"app_id": "1XXXX5XX-0XXX-XXXb-X7XX-XX2XXaXXX6XX"
}
}
}
}
}
]
}