Skip to main content
GET
Get customer memberships

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required

Path Parameters

customerId
string
required

Identifies the customer or member. identification_type selects the value: a Voucherify customer ID (cust_...), a customer source_id, or a loyalty member ID (lmbr_...).

Query Parameters

identification_type
enum<string>
default:customer_id

Selects how customerId is read. customer_id is the Voucherify customer ID and the default. customer_source_id is the customer's source_id. member_id is the loyalty member ID.

Available options:
customer_id,
customer_source_id,
member_id

Response

Customer memberships across programs.

Response body schema for GET /v2/loyalties/memberships/{customerId}.

customer
object
required

Returns the resolved customer. Present for customer_id, customer_source_id, and member_id.

memberships
object[]
required

List of memberships. For customer_id and customer_source_id, includes every program the customer belongs to. For member_id, includes only that member's program. Empty when the customer has no memberships.

object
string
required

Object type marker. Always memberships_result.

Allowed value: "memberships_result"