Update Account Information
Update a (business / merchant) account's information.
Headers
|
|
Key |
|
Value |
|
Note |
|
|
|
api_access_key |
|
user_api_key |
|
Optional |
|
   
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 if not included in the headers |
|
|
|
type |
|
account_update |
|
Required |
|
|
|
account_id |
|
greatwidgets |
|
Required |
|
|
|
agency |
|
demo_agency |
|
Only if changed |
|
|
|
contact_email |
|
info@agency.com |
|
Only if changed |
|
|
|
contact_first_name |
|
John |
|
Only if changed |
|
|
|
contact_last_name |
|
Doe |
|
Only if changed |
|
|
|
contact_phone |
|
555-555-2455 |
|
Only if changed |
|
|
|
client_email |
|
john@widgets.com |
|
Only if changed |
|
|
|
biz_name |
|
Great Widgets, LLC |
|
Only if changed |
|
|
|
biz_address1 |
|
123 Success St. |
|
Only if changed |
|
|
|
biz_address1 |
|
Suite 103 |
|
Only if changed |
|
|
|
biz_city |
|
Anytown |
|
Only if changed |
|
|
|
biz_state |
|
ZZ |
|
Only if changed |
|
|
|
biz_zip |
|
55555 |
|
Only if changed |
|
|
|
biz_country |
|
NZ |
|
Only if changed |
|
|
|
biz_locations |
|
50 |
|
Only if changed |
|
|
|
biz_online |
|
Y or N |
|
Only if changed |
|
|
|
biz_empoloyees |
|
5000 |
|
Only if changed |
|
|
|
industry |
|
Science & Technology |
|
Only if changed |
|
|
|
new_account_password |
|
pa$$w0rd |
|
Only if changed |
|
|
|
language_selector |
|
EN |
|
Only if changed |
|
|
|
symbol_selector |
|
AUD |
|
Only if changed |
|
|
|
timezone_selector |
|
68 |
|
Only if changed |
|
|
|
referrer_name |
|
John Smith |
|
Only if changed |
|
|
|
activate |
|
Y |
|
Only if changed |
|
|
|
|
|
|
|
|
|
|
|
Additional Integrations: |
|
|
|
mailchimp_username |
|
monkeycall |
|
Optional |
|
|
|
mailchimp_password |
|
m0nk3yc411 |
|
Optional |
|
|
|
sms_username |
|
biztexter |
|
Optional |
|
|
|
sms_password |
|
b1zt3xt3r |
|
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'] = account_update';
- $data['agency'] = 'demo_agency';
- $data['contact_email'] = 'contact@demo_agency.com';
- $data['contact_first_name'] = 'John';
- $data['contact_last_name'] = 'Doe';
- $data['contact_phone'] = '555-555-2455';
- $data['client_email'] = 'john@widgets.com';
- $data['biz_name'] = 'Great Widgets, LLC';
- $data['biz_address1'] = '123 Success St.';
- $data['biz_address2'] = 'Suite 103';
- $data['biz_city'] = 'Anytown';
- $data['biz_state'] = 'ZZ';
- $data['biz_zip'] = '55555';
- $data['biz_country'] = 'NZ';
- $data['account_id'] = 'greatwidgets';
- $data['account_password'] = 'pa$$w0rd';
- $data['language_selector'] = 'EN';
- $data['symbol_selector'] = 'AUD';
- $data['timezone_selector'] = '68';
- $data['referrer_name'] = 'John Smith';
Success XML Response:
- <response status="success">
- </response>
Success XML Response (if user_id = account_id, then the user_password is new):
- <response status="success">
- <new_api_token>2959caadac9b13dcb4</new_api_token>
- </response>
Error XML Response:
- <response status="error">
- <error>Error message</error>
- </response>
|