Client - Account Info
Show a client's (store's) account 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 |
|
account_info |
|
Required |
|
|
|
account_id |
|
greatwidgets |
|
Required |
|
|
|
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 |
|
|
|
|
|
|
|
|
|
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_info';
- $data['account_id'] = 'greatwidgets';
Success XML Response (New or Updated Account):
- <response status="success">
- <account>
- <account_id>test2009050502</account_id>
- <biz_name>Great Widgets Company</biz_name>
- <biz_address1>123 Main St.</biz_address1>
- <biz_address2></biz_address2>
- <biz_city>Anytown</biz_city>
- <biz_state>CA</biz_state>
- <biz_zip>55555</biz_zip>
- <biz_country>NZ</biz_country>
- <biz_locations>50</biz_locations>
- <biz_online>N</biz_online>
- <biz_employees>5000</biz_employees>
- <industry>Sciene & Technology</industry>
- <contact_first_name>John</contact_first_name>
- <contact_last_name>Smith</contact_last_name>
- <contact_email>John@email.com</contact_email>
- <contact_phone>555-555-5555</contact_phone>
- <language>EN</language>
- <symbol>USD</symbol>
- <glyph>$</glyph>
- <timezone>14</timezone>
- <created>2010-09-05</created>
- </account>
- </response>
NOTES:
- If the account is a coalition account, a <coalition>Yes</coalition> node will be added.
- If the account is a two-tier account, a <two_tier>Yes</two_tier> node will be added.
Error XML Response:
- <response status="error">
- <error>Error message</error>
- </response>
|