Update customer
Updates only the supplied code, first_name, last_name, email, phone, instagram_handle, and tiktok_handle. Omitted fields stay unchanged. Social handles use the same linking behavior as Create customer: Instagram replaces the linked profile, while TikTok adds a profile to the customer's linked profiles. Names use the same first_name and last_name fields as customer creation; empty strings clear them. Email is trimmed and lowercased. Codes are uppercased and must be available, 2–30 characters long, using only A–Z, 0–9, hyphens, and underscores. Protected codes are rejected.
Changing a code requires an enrolled, active customer with an existing code. It replaces the current code using the program's reward settings and removes the old code and redirects. Sending the current code again leaves it unchanged. Profile-only updates do not require enrollment. Requires customers.write.
api.superfiliate.com/api/dry-run/v1/customers/{id}Path parameters1
idrequiredBody parametersapplication/json
codestringCode associated with this resource.
first_namestringPerson's given name.
last_namestringPerson's family name.
emailstringEmail address for this person.
instagram_handlestringThe instagram handle for this resource.
tiktok_handlestringThe tiktok handle for this resource.
phonestringNormalized to E.164. Send an empty string to clear; invalid numbers return 422.
Responses
Customer updated
idintegeremailstringEmail address for this person.
phonestring | nullPhone number for this person.
first_namestring | nullPerson's given name.
last_namestring | nullPerson's family name.
instagram_handlestring | nullThe instagram handle for this resource.
tiktok_handlestring | nullThe tiktok handle for this resource.
balancestringStore credit amount in wallet. Eg.
"12.3", meaning $12.30codestring | nullMay be blank if customer is not enrolled yet. Public, to share with friends/followers
microsite_urlstring | nullMay be blank if customer is not enrolled yet. Public, to share with friends/followers
reward_codestring | nullMay be blank if customer is not enrolled yet. Private, to redeem their wallet balance.
redeem_urlstring | nullMay be blank if customer is not enrolled yet. Private, to redeem their wallet balance.
campaign_idinteger | nullMay be blank if customer is not enrolled yet.
enrolled_atstring | nullISO8601 timestamp when customer was enrolled. May be blank if customer is not enrolled yet.
tagsarray of stringsCustomer tags added via the admin app