provisionAccount — Adding a site to an existing account
To add a new site to an existing account (if a user has more than one site, and would like to have distinct shields for each site), pass through an account ID, as returned by the response from the initial account creation.
SiteLock ignores the partner
element when account_id
is also specified; the partner
element is optional in this case.
The API endpoint is:
https://api.sitelock.com/v1/partner
Example request
In the following example, a new account for domain.com
was successfully provisioned and received a response of 12345
as our account id.
If the owner of domain.com
purchased a new domain called superdomain.com
and wanted to also have a shield for that site, provision the new site as follows.
<SiteLockOnlineRequest>
<authentication>
<user>Username</user>
<password>Password</password>
</authentication>
<provisionAccount>
<accountInformation>
<account_id>12345</account_id>
</accountInformation>
<siteInformation>
<subscription>8</subscription>
<domain>superdomain.com</domain>
<domainEmail>[email protected]</domainEmail>
<trustedDomain>yes</trustedDomain>
<amount>5.00</amount>
</siteInformation>
</provisionAccount>
</SiteLockOnlineRequest>