Accounts
1. CREATE ACCOUNT
Through our REST API, you can create accounts under your whitelabel admin by sending an HTTP POST request with the correct parameters.
POST: https://app.wishloop.com/api/1.0/agency/customer/create
Parameters :
Parameter | Description |
api_key* | The whitelabel API KEY (get it from your whitelabel settings page) |
plan_id* | You can get this from your Whitelabel dashboard > "Plans" > ID column |
email* | customer's email address |
first_name | customer's first name |
last_name | customer's last name |
*required
The HTTP code of the response is 200 in case of success, and 400 in case of failure, the body is a JSON object that contains the following keys:
- status : error | success
- message : description of the response
- id : a unique identifier used by our system to identify accounts, the "id" of the newly created user (in case of success)
2. LOOKUP ACCOUNT
Returns information about a single account
GET: https://app.wishloop.com/api/1.0/agency/customer/show
Parameters :
Parameter | Description |
api_key* | The whitelabel API KEY (get it from your whitelabel settings page) |
id* | The "id" of the user to look for |
*required
The HTTP code of the response is 200 in case of success, and 400 in case of failure, the body is a JSON object that contains the following keys:
- status : error | success
- user : an array that contains the following fields: id, email, apikey, first_name, last_name
3. LOCK / UNLOCK ACCOUNT
Locks or unlocks an account.
When an account is locked, the user will not be able to manage campaigns and impressions / page views delivery is stopped.
POST: https://app.wishloop.com/api/1.0/agency/customer/updateStatus
Parameters :
Parameter | Description |
api_key* | The whitelabel API KEY (get it from your whitelabel settings page) |
id* | The "id" of the user to delete |
status* |
0 or 1 0: to Lock an account 1: to Unlock an account |
*required
The HTTP code of the response is 200 in case of success, and 400 in case of failure, the body is a JSON object that contains the following keys:
- status : error | success
- message : description of the response
4. DELETE ACCOUNT
Deletes (permanently) customer account from your admin account
POST: https://app.wishloop.com/api/1.0/agency/customer/delete
Parameters :
Parameter | Description |
api_key* | The whitelabel API KEY (get it from your whitelabel settings page) |
id* | The "id" of the user to delete |
*required
The HTTP code of the response is 200 in case of success, and 400 in case of failure, the body is a JSON object that contains the following keys:
- status : error | success
- message : description of the response
5. CHANGE ACCOUNT PLAN
Upgrade / downgrade user account, this function allows you to update the plan of the account.
POST: https://app.wishloop.com/api/1.0/agency/customer/changePlan
Parameters :
Parameter | Description |
api_key* | The whitelabel API KEY (get it from your whitelabel settings page) |
id* | The "id" of the user to update |
plan_id* |
The ID of the new plan to activate. You can get this from your |
*required
The HTTP code of the response is 200 in case of success, and 400 in case of failure, the body is a JSON object that contains the following keys:
- status : error | success
- message : description of the response
Comments
0 comments
Article is closed for comments.