provisionAccount — Adding a site to an existing account

To add a new site to an existing account (when a user manages multiple sites and wants distinct shields for each site), provide the account_id returned from the initial account creation response. When account_id is specified, the partner element is optional and ignored.

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>

Error codes

  • account_id not found

  • Account already exists

  • Site already exists

  • Subscription doesn’t exist