Use Case
If you are an Affiliate and are using our Affiliate API to create Fotomoto accounts, you may want to know if any of your users delete their Fotomoto account so you can take action on your end. This article explains how to set up notifications of removed accounts.
Add a Web Hook URL to your Affiliate Account
- Log in to your Affiliate Account and select "Affiliate Information" from the "Welcome [yourname]" drop-down menu.
- Add your web hook URL to the "Web Hook URL" field, making sure to include https (or http).
We will call the URL whenever one of your users deletes their account, and you will receive one of the JSON responses below.
When a user's store is deleted but they still have other active stores you will receive:
"data": {
"key": "Deleted_User_Store_Key",
"message_id": "182f9b1361164419",
"affiliate_id": "Your_Affiliate_ID",
"type": "store.deleted"
}When a user's last store is deleted and thus the user's account is deleted, you will receive:
"data": {
"email": "User_Email",
"message_id": "470a011361164420",
"affiliate_id": "Your_Affiliate_ID",
"type": "user.deleted"
}Keep in mind that "key" is unique for each store, and "email" is unique for each account.
Accounts can have multiple stores.