Lookup SubAccount

Lookup SubAccount

Postby ServerMojo » Mon Jun 15, 2009 11:00 am

The Lookup SubAccount function returns AccountID for the sub-account based on ForeignKey.

Function URL: https://www.servermojo.com/cgi-bin/api/lookup_subaccount.pl

XML required to submit:

Code: Select all
<API_CALL>
   <AUTHENTICATE>
      <USER_ID>YOURID</USER_ID>
      <API_KEY>YOURKEY</API_KEY>
   </AUTHENTICATE>
   <CALL_ID>lookup_subaccount</CALL_ID>
   <CALL_PARAMS>
      <ForeignKey><![CDATA[]]></ForeignKey>
   </CALL_PARAMS>
</API_CALL>


Replace YOURID and YOURKEY with yours which you can find in your account on the API tab.

ForeignKey - if you defined a ForeignKey when creating the sub-account you can use that here to lookup.


Example response:

Code: Select all
<RESPONSE>
   <STATUS>1</STATUS>
   <DETAILS>
      <AccountID>123</AccountID>
   </DETAILS>
</RESPONSE>
ServerMojo
Site Admin
 
Posts: 19
Joined: Sun Jun 14, 2009 11:07 am

Return to API Documentation

Who is online

Users browsing this forum: No registered users and 2 guests

cron