validate


SoftLayer_Account::validate

Validate a SoftLayer customer account.

Overview

This method will validate the following account fields. Included are the allowed characters for each field.
Email Address: letters, numbers, space, period, dash, parenthesis, exclamation point, at sign, ampersand, colon, comma, underscore, apostrophe, octothorpe.

Company Name
: alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe, parenthesis, exclamation point. (Note: may not contain an email address)
First Name: alphabet, space, period, dash, comma, apostrophe.
Last Name
: alphabet, space, period, dash, comma, apostrophe.
Address 1: alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe.
Address 2: alphabet, numbers, space, period, dash, octothorpe, forward slash, backward slash, comma, colon, at sign, ampersand, underscore, apostrophe.
City
: alphabet, space, period, dash, apostrophe.
State: Required if country is US or Canada. Must be valid Alpha-2 ISO 3166-1 state code for that country.
Postal Code
: alphabet, numbers, dash, space.
Country: alphabet, numbers. Must be valid Alpha-2 ISO 3166-1 country code.
Office Phone
: alphabet, numbers, space, period, dash, parenthesis, plus sign.
Alternate Phone: alphabet, numbers, space, period, dash, parenthesis, plus sign.
Fax Phone: alphabet, numbers, space, period, dash, parenthesis, plus sign.
* denotes a required field.

Parameters

Name Type Description
account SoftLayer_Account

Required Headers

  • authenticate

Optional Headers

Return Values

array of strings