Create a new user for an account.
See moreUpdate an account user 's information.
See moreReturns a list of the users for an account.
See moreReturns information about a user of the account.
When no other user is specified, it returns information about the user_id used to make the API calls. Mostly used for continuous validation of a user past the login screen on front-end store applications, since incorrect credentials will return an error message, and correct ones will return information about the user including their permissions level which could be tainted if stored in a cookie or as hidden form data.
See moreDeletes or marks as deleted a particular account user.
See moreAllows a batch (list) of users to be given permission to access a particular campaign all at once.
See moreAllows a batch (list) of users to be removed from having permission to access a particular campaign.
See moreCreate New User
The data to be submitted to the API is composed of the following fields:
field | Example | Note | ||||
---|---|---|---|---|---|---|
user_id | john1970 | Required | ||||
user_password | 1959caadac9b13dcb3 | Required | ||||
type | user_new | Required | ||||
account_id | greatwidgets | Required | ||||
user_name | janeclerk | Required | ||||
user_new_password | pa$$wo0rd | Required | ||||
user_first_name | Jane | Optional | ||||
user_last_name | Doe | Optional | ||||
user_custom1 | Melbourne Office | Optional | ||||
user_PIN | 1234 | Optional | ||||
language_selector | EN | Optional | ||||
timezone_selector | 68 | Optional | ||||
user_role | K | Required | ||||
allowed_campaigns | all or campaign id(s) or none | Required | ||||
Output Format: | ||||||
output | JSON or XML | Optional. If not provided, defaults to XML | ||||
callback | someFunctionName | Optional: JSONP format | ||||
condensed | yes | Optional (No white space) Applies only to JSON(P) output |
Notes:
Example PHP Request:
If you are using PHP, the $data array would look like this:
$data['user_id'] = 'john1970';
$data['user_password'] = '1959caadac9b13dcb3';
$data['type'] = 'user_new';
$data['account_id'] = 'greatwidgets';
$data['user_name'] = 'janeclerk';
$data['user_new_password'] = 'pa$$w0rd';
$data['user_first_name'] = 'Jane';
$data['user_last_name'] = 'Doe';
$data['user_custom1'] = 'Melbourne Office';
$data['language_selector'] = 'EN';
$data['timezone_selector'] = '68';
$data['user_role'] = 'K';
$data['allowed_campaigns'] = '12971184024723,0239471023412';
or
$data['allowed_campaigns'] = 'all';
or
$data['allowed_campaigns'] = 'none';
Success XML Response (New / Updated User):
<response status="success">
</response>
Error XML Response:
<response status="error">
<error>Error message</error>
</response>
Update User Information
The data to be submitted to the API is composed of the following fields:
field | Example | Note | ||||
---|---|---|---|---|---|---|
user_id | john1970 | Required | ||||
user_password | 1959caadac9b13dcb3 | Required | ||||
type | user_update | Required | ||||
account_id | greatwidgets | Required | ||||
user_name | janeclerk | Required | ||||
user_new_password | pa$$wo0rd | Optional | ||||
user_first_name | Jane | Optional | ||||
user_last_name | Doe | Optional | ||||
user_custom1 | Melbourne Office | Optional | ||||
user_PIN | 1234 | Optional | ||||
language_selector | EN | Optional | ||||
language_custom | Yes or No | Optional | ||||
timezone_selector | 68 | Optional | ||||
user_role | K | Optional | ||||
allowed_campaigns | all or campaign id(s) or none | Optional | ||||
Output Format: | ||||||
output | JSON or XML | Optional. If not provided, defaults to XML | ||||
callback | someFunctionName | Optional: JSONP format | ||||
condensed | yes | Optional (No white space) Applies only to JSON(P) output |
Notes:
Example PHP Request:
If you are using PHP, the $data array would look like this:
$data['user_id'] = 'john1970';
$data['user_password'] = '1959caadac9b13dcb3';
$data['type'] = 'process_user';
$data['account_id'] = 'greatwidgets';
$data['user_action'] = 'new';
$data['user_name'] = 'janeclerk';
$data['user_password1'] = 'pa$$w0rd';
$data['user_password2'] = 'pa$$w0rd';
$data['user_first_name'] = 'Jane';
$data['user_last_name'] = 'Doe';
$data['user_custom1'] = 'Melbourne Office';
$data['language_selector'] = 'EN';
$data['timezone_selector'] = '68';
$data['user_role'] = 'K';
$data['allowed_campaigns'] = '12971184024723,0239471023412';
or
$data['allowed_campaigns'] = 'all';
or
$data['allowed_campaigns'] = 'none';
Success XML Response (New / Updated User):
<response status="success">
</response>
Error XML Response:
<response status="error">
<error>Error message</error>
</response>
Users List
The data to be submitted to the API is composed of the following fields:
field | Example | Note | ||||
---|---|---|---|---|---|---|
API | 1.6 | Required | ||||
user_id | john1970 | Required | ||||
user_api_key | 1959caadac9b13dcb3 | Required | ||||
account_id | greatwidgets | Required | ||||
type | users_list | Required | ||||
searchField |
user_first_name or user_last_name user_full_name user_role user_name language timezone user_custom1 |
Optional | ||||
searchOper |
eq (equal) ne (not equal) bw (begins with) bn (does not begin with) ew (ends with) en (does not end with) cn (contains) nc (does not contain) nu (is null/empty) nn (is not null/empty) in (is in - comma-separated list) ni (is not in - comma-separated list) |
Optional | ||||
searchValue | Toronto or
LAX_ |
Optional | ||||
sortField |
user_first_name or user_last_name user_role user_name language timezone user_custom1 |
Optional | ||||
sortOrder | DESC or
ASC |
Optional | ||||
offset | 0 | Optional | ||||
length | 10 | Optional | ||||
show_permissions | Yes | Optional or don't include |
||||
Output Format: | ||||||
output | JSON or XML | Optional. If not provided, defaults to XML | ||||
callback | someFunctionName | Optional: JSONP format | ||||
condensed | yes | Optional (No white space) Applies only to JSON(P) output |
Notes:
Example PHP Request for a full, unordered list of all users without permissions details:
If you are using PHP, the $data array would look like this:
$data['API'] = '1.5';
$data['user_id'] = 'john1970';
$data['user_api_key'] = '1959caadac9b13dcb3';
$data['account_id'] = 'greatwidgets';
$data['type'] = 'users_list';
Success XML Response:
<response status="success">
<pagination>
<total>12</total>
</pagination>
<users>
<user>
<user_id>janecashier</user_id>
<user_first_name>Jane</user_first_name>
<user_last_name>Cashier</user_last_name>
<user_api_key>p2345khkl235hkufbfdivsdf</user_api_key>
<user_PIN>1234</user_PIN>
<user_addtl_info>London</user_addtl_info>
<user_language>EN<user_language>
<user_timezone>15</user_timezone>
<user_role>K</user_role>
<user_allowed_campaigns status="some">
<campaign_id>1234567890123456</campaign_id>
<campaign_id>2345678901234567</campaign_id>
...
</user_allowed_campaigns>
</user>
<user>
<user_id>joeclerky</user_id>
<user_first_name>Joe</user_first_name>
<user_last_name>Clerky</user_last_name>
<user_password>p4sf8nvrdr8vhsd98erkerte</user_password>
<user_PIN>9876</user_PIN>
<user_addtl_info>New York</user_addtl_info>
<user_language>EN<user_language>
<user_timezone>15</user_timezone>
<user_role>K</user_role>
<user_allowed_campaigns status="all">
</user_allowed_campaigns>
</user>
...
</users>
</response>
Notes:
Example PHP Request for a partial, ordered list matching users with permissions details:
If you are using PHP, the $data array would look like this:
$data['API'] = '1.5';
$data['user_id'] = 'john1970';
$data['user_api_key'] = '1959caadac9b13dcb3';
$data['account_id'] = 'greatwidgets';
$data['type'] = 'users_list';
$data['searchField'] = 'user_custom1';
$data['searchOper'] = 'cn';
$data['searchOper'] = 'London';
$data['sortField'] = 'user_first_name';
$data['sortOrder'] = 'ASC';
$data['offset'] = '0';
$data['length'] = '10';
$data['show_permissions'] = 'Yes';
Success XML Response:
<response status="success">
<pagination>
<total>5</total>
<offset>0</offset>
<length>10</length>
</pagination>
<users>
<user>
<user_id>janecashier</user_id>
<user_first_name>Jane</user_first_name>
<user_last_name>Cashier</user_last_name>
<user_api_key>p2345khkl235hkufbfdivsdf</user_api_key>
<user_PIN>1234</user_PIN>
<user_addtl_info>London</user_addtl_info>
<user_language>EN<user_language>
<user_timezone>15</user_timezone>
<user_role>K</user_role>
<user_permissions>
<view_account_info>Yes</view_account_info>
<view_promotions>Yes</view_promotions>
...
</user_permissions>
<user_allowed_campaigns status="some">
<campaign_id>1234567890123456</campaign_id>
<campaign_id>2345678901234567</campaign_id>
...
</user_allowed_campaigns>
</user>
...
</users>
</response>
Error XML Response:
<response status="error">
<error>Error message</error>
</response>
User Information
The data to be submitted to the API is composed of the following fields:
field | Example | Note | ||||
---|---|---|---|---|---|---|
API | 1.1 | Required | ||||
user_id | john1970 | Required | ||||
user_password | 1959ca5645adac9b13dcb3 | Required | ||||
type | user_info | Required | ||||
account_id | greatwidgets | Required | ||||
user_name | clerk33 | Optional | ||||
suppress_permissions | Yes | Optional | ||||
terminal | Yes | Optional | ||||
Output Format: | ||||||
output | JSON or XML | Optional. If not provided, defaults to XML | ||||
callback | someFunctionName | Optional: JSONP format | ||||
condensed | yes | Optional (No white space) Applies only to JSON(P) output |
Notes:
Example PHP Request:
If you are using PHP, the $data array would look like this:
$data['user_id'] = 'john1970';
$data['user_password'] = '1959caadac9b13dcb3';
$data['type'] = 'user_info';
$data['account_id'] = 'greatwidgets';
Success XML Response -- Account Owner credentials only:
<response status="success">
<user>
<user_id>johnnyclerk</user_id>
<user_is_owner>true</user_is_owner>
<user_biz_name>Demo Co.</user_biz_name>
<user_language>EN</user_language>
<user_timzone>14</user_timezone>
<user_level>A</user_level>
</user>
</response>
NOTES:
Success XML Response -- Account Users credentials:
<response status="success">
<user>
<user_id>johnnyclerk</user_id>
<user_is_owner>false</user_is_owner>
<user_first_name>John</user_first_name>
<user_last_name>Smith</user_last_name>
<user_addtl_info>store 35</user_addtl_info>
<user_language>EN</user_language>
<user_timzone>14</user_timezone>
<user_level>K</user_level>
</user>
</response>
NOTES:
Error XML Response:
<response status="error">
<error>Error message</error>
</response>
Delete User
The data to be submitted to the API is composed of the following fields:
field | Example | Note | ||||
---|---|---|---|---|---|---|
user_id | john1970 | Required | ||||
user_password | 1959ca5645adac9b13dcb3 | Required | ||||
type | user_delete | Required | ||||
action | permanent | Optional | ||||
account_id | greatwidgets | Required | ||||
user_name | fired_clerk | Required | ||||
Output Format: | ||||||
output | JSON or XML | Optional. If not provided, defaults to XML | ||||
callback | someFunctionName | Optional: JSONP format | ||||
condensed | yes | Optional (No white space) Applies only to JSON(P) output |
Notes:
Example PHP Request:
If you are using PHP, the $data array would look like this:
$data['user_id'] = 'john1970';
$data['user_password'] = '1959caadac9b13dcb3';
$data['type'] = 'user_delete';
$data['account_id'] = 'greatwidgets';
$data['user_name'] = 'fired_clerk';
Success XML Response:
<response status="success">
</response>
Error XML Response:
<response status="error">
<error>Error message</error>
</response>
Add Users to Campaign
The data to be submitted to the API is composed of the following fields:
field | Example | Note | ||||
---|---|---|---|---|---|---|
API | 1.6 | |||||
user_id | john1970 | Required | ||||
user_api_key | 1959ca5645adac9b13dcb3 | Required | ||||
account_id | greatwidgets | Required | ||||
type | campaign_users | Required | ||||
action | add | Required | ||||
campaign_id | 01234567890123456 | Required | ||||
users_list | user1, user2, user3, etc | Required | ||||
Output Format: | ||||||
output | JSON or XML | Optional. If not provided, defaults to XML | ||||
callback | someFunctionName | Optional: JSONP format | ||||
condensed | yes | Optional (No white space) Applies only to JSON(P) output |
Notes:
Example PHP Request:
If you are using PHP, the $data array would look like this:
$data['API'] = '1.5';
$data['user_id'] = 'john1970';
$data['user_password'] = '1959caadac9b13dcb3';
$data['account_id'] = 'greatwidgets';
$data['type'] = 'campaign_users';
$data['action'] = 'add';
$data['campaign_id'] = '1234567890123456';
$data['users_list'] = 'user1,user2,user3,user4,user5';
Success XML Response:
<response status="success">
<users_added>
<user>user1</user>
<user>user2</user>
<user>user3</user>
<user>user5</user>
</users_added>
</response>
NOTES:
Error XML Response:
<response status="error">
<error>Error message</error>
</response>
Remove Users from Campaign
The data to be submitted to the API is composed of the following fields:
field | Example | Note | ||||
---|---|---|---|---|---|---|
API | 1.6 | |||||
user_id | john1970 | Required | ||||
user_api_key | 1959ca5645adac9b13dcb3 | Required | ||||
account_id | greatwidgets | Required | ||||
type | campaign_users | Required | ||||
action | remove | Required | ||||
campaign_id | 01234567890123456 | Required | ||||
users_list | user1, user2, user3, etc | Required | ||||
Output Format: | ||||||
output | JSON or XML | Optional. If not provided, defaults to XML | ||||
callback | someFunctionName | Optional: JSONP format | ||||
condensed | yes | Optional (No white space) Applies only to JSON(P) output |
Notes:
Example PHP Request:
If you are using PHP, the $data array would look like this:
$data['API'] = '1.5';
$data['user_id'] = 'john1970';
$data['user_password'] = '1959caadac9b13dcb3';
$data['account_id'] = 'greatwidgets';
$data['type'] = 'campaign_users';
$data['action'] = 'remove';
$data['campaign_id'] = '1234567890123456';
$data['users_list'] = 'user1,user2,user3,user4,user5';
Success XML Response:
<response status="success">
<users_removed>
<user>user1</user>
<user>user2</user>
<user>user3</user>
<user>user5</user>
</users_removed>
</response>
NOTES:
Error XML Response:
<response status="error">
<error>Error message</error>
</response>