Create a program member
<Warning><Badge color="yellow">BETA endpoint</Badge>
This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.
</Warning>Enrolls a customer as a member of the loyalty program. The program must be in ACTIVE status (423 otherwise) and the customer must exist. A customer can be a member of a given program only once - creating a second member for the same customer returns 409 (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.
Path parameters
Loyalty program ID (format lprg_[a-f0-9]+).
Request body
Response
The created member with its automatically created cards.