Create child SoftLayer Account
Create SoftLayer End-Customer Account on Brand Account
require 'softlayer_api'
require 'pp'
client = SoftLayer::Client.new
account_service = client['Account']
brand_service = client['Brand']
brand = account_service.getBrand
cust_account = {
brandId: brand['id'].to_i,
allowedPptpVpnQuantity: 1,
claimedTaxExemptTxFlag: false,
companyName: '',
isReseller: 0,
lateFeeProtectionFlag: true,
firstName: '',
lastName: '',
email: '',
officePhone: '',
address1: '',
city: '',
state: '',
postalCode: '',
country: ''
}
puts ''
pp cust_account
puts ''
begin
result = brand_service.createCustomerAccount(cust_account)
puts 'Result: '
pp result
rescue Exception => e
puts "Error: #{e}"
end