List Campaign Pending Points
Lists all pending points that are currently assigned to all loyalty cards in a campaign. 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.
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v1/loyalties/{campaignId}/pending-points
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or OAuth 2Implicit: https://api.voucherify.io/v1/oauth/tokenScopes: api, loyalties
Query parameters
Limit the number of the pending point entries that the API returns in the response.
Orders the pending point entries according the pending point entry ID. The dash - preceding a sorting option means sorting in a descending order.
A cursor for pagination. It retrieves the results starting after a result with the given ID.
Response
Returns all pending point entries for all loyalty cards in the campaign.
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"
}
}
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.