Add balance
customers.writeAdds balance to a customer.
A "unique identifier" needs to be sent with it, it can be any string internal to you that we can use to guarantee that the balance is only added once. If the same unique identifier is sent twice, for the same customer, the second request will fail.
api.superfiliate.com/api/v1/customers/{id}/add_balancePath parameters1
idrequiredBody parametersapplication/json
valuestringrequiredBetween
0.01and99.99unique_identifierstringrequiredTo avoid duplicate rewards.
Responses
Balance added
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