Programs
Create program member
Enrolls a customer as a member of the loyalty program. The program must be in ACTIVE status (returns a 423 error otherwise) and the customer must exist in Voucherify. A customer can be a member of a given program only once - creating a second member for the same customer ID returns 409 error (member_already_exists).
Loyalty cards are created automatically for all card definitions assigned to the program and returned in the cards array. Card code generation is asynchronous: code may be null immediately after creation.
post/v2/loyalties/programs/{programId}/members
Path parameters
programIdstring required
Unique loyalty program ID (format lprg_[a-f0-9]+).
Request body
Response
The created member with its automatically created cards.