November 23, 2017
Create a customer.

Important manual pages

Author: SoftLayer Technologies, Inc. <>

import SoftLayer.API
import json

USERNAME = 'set me'
API_KEY = 'set me'

template = {
    'address1': '8200 Warden Ave',
    'city': 'Markham',
    'companyName': 'My company',
    'email': '',
    'firstName': 'FirstName',
    'lastName': 'Surename',
    'officePhone': 'number',
    'postalCode': 'L6G 1C7',
    'state': 'TX',
    'brandId': 4,
    'country': 'CA'

client = SoftLayer.create_client_from_env(username=USERNAME, api_key=API_KEY)
brandService = client['SoftLayer_Brand']

    result = brandService.createCustomerAccount(template)
    print(json.dumps(result, sort_keys=True, indent=2, separators=(',', ': ')))
except SoftLayer.SoftLayerAPIError as e:
    print("Unable to create the customer. "
          % (e.faultCode, e.faultString))


If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue