List Referral Code Holders
Retrieves the holders of the referral code from a referral campaign.
To use this endpoint, you must have the following permissions:
- Read Customers (customers.details.read)
📘 Alternative endpoint
This endpoint is an alternative to the List Member Holders endpoint. The URL was re-designed to retrieve the referral member holders without providing the campaignId as a path paremeter.
Query parameters
Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
A cursor for pagination. It retrieves the events starting after an event with the given ID.
Filters for listing customer redeemables.
{
"created_at": {
"conditions": {
"$after": "2024-01-01T00:00:00.000Z",
"$before": "2024-01-01T00:00:00.000Z"
}
}
}Response
Returns the holders of the redeemable that is assigned to the referral campaign.
Example response
{
"data": [
{
"id": "rh_0e7b8db4700106a852",
"created_at": "2024-03-22T17:48:25.910Z",
"redeemable_id": "v_GXVguPhq2khgFxH7GrRXWA91gDr1LiA1",
"redeemable_object": "voucher",
"customer_id": "cust_p1ufreYbVbwZ1x70nFkH9rF9",
"holder_role": "OWNER",
"campaign_id": "camp_weer1c3p5ZgktqfW56RfoNaG",
"campaign_type": "REFERRAL_PROGRAM",
"voucher_type": "DISCOUNT_VOUCHER"
}
]
}