Program memberships

Creates a new membership with a given wallet_address, external_user_id, or both.

post

Invoke this endpoint to add a new membership to your loyalty program.

Authorizations
X-API-KeystringRequired
Body
family_member_birthdays[status]stringRequired

family member's membership status

family_member_birthdays[first_name]stringRequired

the first name of the family member

family_member_birthdays[birthday]stringRequired

the birthday of the family member

external_user_idstringOptional

the user's external_user_id (must be provided if wallet_address is blank)

wallet_addressstringOptional

the user's wallet_address (must be provided if external_user_id is blank)

emailstringOptional

the user's email address

phonestringOptional

the user's phone

birthdaystringOptional

The user's birthday

first_namestringOptional

The user's first name

last_namestringOptional

The user's last name

include_magic_linkbooleanOptional

Whether to return a magic link URL. Defaults to false.

family_member_birthdays[last_name]stringOptional

the last name of the family member

Responses
200

Membership was created successfully, or an existing membership was found

application/json
post
/v2/program-memberships

Endpoint to update a program membership with a wallet_address, on_chain_token_id, and/or external_user_id

patch

Sets a wallet_address, on_chain_token_id, and/or external_user_id on the specified program_membership.

Authorizations
X-API-KeystringRequired
Path parameters
program_membership_idnumberRequired
Body
family_member_birthdays[status]stringRequired

family member's membership status

family_member_birthdays[first_name]stringRequired

the first name of the family member

family_member_birthdays[birthday]stringRequired

the birthday of the family member

wallet_addressstringOptional

the wallet address to update the program membership with

on_chain_token_idstringOptional

the on chain token id to update the program membership with

external_user_idstringOptional

the external user id to update the program membership with

birthdaystringOptional

The user's birthday

first_namestringOptional

The user's first name

last_namestringOptional

The user's last name

emailstringOptional

the user's email address

phonestringOptional

the user's phone number

family_member_birthdays[last_name]stringOptional

the last name of the family member

Responses
200

Membership was updated with provided wallet_address, on_chain_token_id, and/or external_user_id

application/json
patch
/v2/program-memberships/{program_membership_id}
200

Membership was updated with provided wallet_address, on_chain_token_id, and/or external_user_id