Enroll a customer
customers.writeEnrolls a customer to a campaign, if not already enrolled to a campaign.
Pass campaign_id to enroll the customer in any campaign that belongs to the shop. If omitted, the shop's default campaign is used.
If the customer is already enrolled to a campaign, it just returns the customer data.
api.superfiliate.com/api/v1/customers/{id}/enrollPath parameters1
idrequiredBody parametersapplication/json
codestringCode associated with this resource.
campaign_idintegerID of any campaign that belongs to the shop. If omitted, the shop's default campaign is used.
code_activationenum<string>The code strategy to use. "create" will try to create a new code for the customer, using the specified code. If not available, it will append random characters until the code is available. "link" will ignore code's creation and just assume the code already exists in Shopify. "override" will try to create the specified code. If the specified code is not available, it will delete that existing code and create under the campaign settings.If this option is not specified, it will default to "create".
"create""link""override"
Responses
The enrolled customer
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