Management API · Points and member support
Merge members Coming soon
POST/v1/members/{id}/merge
Combines two members who turn out to be the same guest into the member in the path. source_member_id is the member that is merged in. This shape is planned and can change before release.
Permissions: Secret key with members:write.
Guide
Points and rewardsRequest headers#
Idempotency-KeystringAny string up to 255 characters; use a UUID v4. Kept 24 hours per key (or member) and endpoint. Same key and body replays the first response withIdempotent-Replayed: true.Max Length 255
Path parameters#
idstring (uuid)Required
Request body#
source_member_idstring (uuid)RequiredThe member to merge into this one.
Response fields#
Returns 200 with Member
idstring (uuid)unPLUG's id for the member. Store it next to your user record.external_idstringNullableYour id for the guest, up to 128 characters.nullfor a guest who has only earned at the register and isn't linked to your login yet.Max Length 128statusstringactive. Themember.deletedwebhook carriesdeleted; after that, calls about the member return410 member_deleted.One ofactive,deletedfirst_namestringNullablelast_namestringNullableemailstring (email)NullableSaved in lowercase.phonestringNullableE.164, for example+15125550142.phone_verifiedbooleantruewhen you confirmed the guest owns the number, for example with an SMS code. Only verified phones link to existing members.birthdaystring (date)NullableYYYY-MM-DD.points_balanceintegerPoints the member has now. Never below zero.lifetime_pointsintegerAll points ever earned, used for tiers. Spending doesn't lower it.tierTierRefidandnameof the current tier.Show attributesTierRef
idstring (uuid)namestring
next_tierobjectNullableid,nameandpoints_needed(lifetime points still to earn).nullat the top tier.Show attributesHide attributes
idstring (uuid)namestringpoints_neededinteger
communication_preferencesobjectShow attributesHide attributes
email_marketingbooleansms_marketingbooleanpush_marketingboolean
metadataobjectYour own string values. Up to 20 keys, 500 characters each. Don't put personal data here.linked_existingbooleanOnly on create: true when an existing member was linked by verified phone.enrolled_atstring (date-time)When the guest joined the program.created_atstring (date-time)updated_atstring (date-time)