CreateAccount

Create a new sub-account.

Usage

Use this command to create a new retail sub-account.
"CreateAccount" differs from "CreateSubAccount" in that "CreateAccount" offers credit card processing.
When you pass credit card information with this command, you must use the secure HTTPS protocol.

Availability

All resellers have access to this command.

Constraints

The query must meet the following requirements:

  • Parameter values submitted in the query must pass validation tests.

Input Parameters

Build the query string using this syntax:

https://resellertest.enom.com/interface.asp?command=CreateAccount&uid=Your Account ID&pw=Your API Token&NewUID={Required}&NewPW={Required}&ConfirmPW={Required}&RegistrantOrganizationName={Required}&RegistrantJobTitle={Optional}&RegistrantFirstName={Required}&RegistrantLastName={Required}&RegistrantAddress1={Required}&RegistrantAddress2={Optional}&RegistrantCity={Required}&RegistrantPostalCode={Required}&RegistrantStateProvince={Optional}&RegistrantStateProvinceChoice={Optional}&RegistrantCountry={Optional}&RegistrantPhone={Required}&RegistrantFax={Optional}&RegistrantEmailAddress={Required}&RegistrantEmailAddress_Contact={Optional}&CardType={Required}&CCName={Required}&CreditCardNumber={Required}&CreditCardExpMonth={Required}&CreditCardExpYear={Required}&CVV2={Required}&CCAddress={Required}&CCZip={Required}&CCCountry={Required}&AuthQuestionType={Required}&AuthQuestionAnswer={Required}&EmailInfo={Optional}&ResponseType={Optional}
Input ParameterTypeStatusDescription
commandstringRequiredCreateAccount
uidstringRequiredYour Account ID
pwstringRequiredYour API Token
NewUIDstringRequiredSub-account login ID. Permitted values are 6 to 20 characters in length; permitted characters include letters, numbers, hyphen, and underscore.
NewPWstringRequiredSub-account password. Passwords must be from 10 to 20 characters in length with the following parameters:
Alpha-Numeric characters
* @ - _ . /
ConfirmPWstringRequiredSub-account password. Passwords must be from 10 to 20 characters in length with the following parameters:
Alpha-Numeric characters
* @ - _ . /
RegistrantOrganizationNamestringRequiredRegistrant organization
RegistrantJobTitlestringOptionalRegistrant job title
RegistrantFirstNamestringRequiredRegistrant first name
RegistrantLastNamestringRequiredRegistrant last name
RegistrantAddress1stringRequiredRegistrant address
RegistrantAddress2stringOptionalRegistrant additional address info
RegistrantCitystringRequiredRegistrant city
RegistrantPostalCodestringRequiredRegistrant postal code
RegistrantStateProvincestringOptionalRegistrant state or province
RegistrantStateProvinceChoicestringOptionalRegistrant state or province choice. Permitted values are:
S - state
P - province
RegistrantCountrystringOptionalRegistrant country
RegistrantPhonestringRequiredRegistrant phone number. Required format is +CountryCode.PhoneNumber, where CountryCode and PhoneNumber use only numeric characters and the + is URL-encoded as a plus sign (%2B).
RegistrantFaxstringOptionalRegistrant fax number. Required format is +CountryCode.PhoneNumber, where CountryCode and PhoneNumber use only numeric characters and the + is URL-encoded as a plus sign (%2B).
RegistrantEmailAddressstringRequiredEmail address for Whois
RegistrantEmailAddress_ContactstringOptionalEmail address for us to contact you about your domain name account
CardTypestringRequiredType of credit card. Permitted values are
Visa
Mastercard
AmEx
Discover

When you pass credit card information with this command, you must use the secure HTTPS protocol.
CCNamestringRequiredCardholder's name
CreditCardNumberintRequiredCustomer's credit card number
CreditCardExpMonthintRequiredCredit card expiration month in MM format
CreditCardExpYearintRequiredCredit card expiration year in YYYY format
CVV2intRequiredCredit card verification code
CCAddressstringRequiredCredit card billing address
CCZipstringRequiredCredit card billing postal code
CCCountrystringRequiredCredit card billing country. The two-letter country code is a permitted format.
AuthQuestionTypestringRequiredNature of the question used for identity verification. Permitted values are:
smaiden - mother’s maiden name
sbirth - city of birth
ssocial - last 4 digits of SSN
shigh - high school
fteach - favorite teacher
fvspot - favorite vacation spot
fpet - favorite pet
fmovie - favorite movie
* fbook - favorite book
AuthQuestionAnswerstringRequiredThe answer to the question type (mother's maiden name, city of birth, last 4 digits of social security, or high school)
EmailInfostringOptionalThe value of a send e-mail notification checkbox. If "EmailInfo=checked" is set, an email will be sent to the registrant email parameter posted with this request, containing this account information
ResponseTypestringOptionalFormat of response. Permitted values are:
Text (default)
HTML
* XML.
VatEntityTypeStringOptionalVat Entity Type.
Examples:
business
charity
VatIdstringOptionalEnter a Valid VAT number

Returned Parameters and Values

  • The default response format is plain text. To receive the response in HTML or XML format, send "ResponseType=HTML" or "ResponseType=XML", in your request.
  • Check the return parameter "ErrCount". If greater than 0 the transaction failed. The parameter "Err(ErrCount)" can be presented to the client. Otherwise, the process returns parameters as defined below.
  • If there are errors validating the data passed in, the same parameters and values are returned to rebuild the form.
Output ParameterTypeDescription
OrganizationNamestringOrganization name of the Billing contact
FNamestringFirst name (given name) of the Billing contact
LNamestringLast name (family name) of the Billing contact
JobTitlestringJob title for the Billing contact
Address1stringAddress, line 1, for the Billing contact
Address2stringAddress, line 2, for the Billing contact
CitystringCity for the Billing contact
StateProvincestringState or province for the Billing contact
StateProvinceChoicestringTells whether StateProvince value is a state or a province
PostalCodestringPostal code for the Billing contact
CountrystringCounty for the Billing contact
PhonestringPhone number for the Billing contact
PhoneExtstringPhone extension for the Billing contact
FaxstringFax number for the Billing contact
EmailAddressstringEmail address for public WhoIs record
EmailAddress_ContactstringEmail address that we use when contacting account owner about this account
EmailInfostringTells whether confirmation emails should be sent to these email addresses
CCTypestringType of credit card
CCNamestringCardholder’s name
CCNumberstringCredit card number
CCMonthintExpiration month for this credit card
CCYearintExpiration year for this credit card
CCAddressstringBilling address street address for this credit card
CCCitystringBilling address city for this credit card
CCStateProvincestringBilling address state or province for this credit card
CCZipstringBilling address postal code for this credit card
CCCountrystringBilling address country for this credit card
CCPhonestringPhone number on record for this credit card
ResellerintIndicates the sub-account status. Expected values are:
1 - sub-reseller
0 - sub-retail
NewUIDstringLogin ID for this subaccount
NewPWstringPassword for this subaccount
ConfirmPWstringRepeat password, for confirmation purposes
AuthQuestionTypestringType of authorization question for this subaccount
AuthQuestionAnswerstringAnswer to the authorization question
DefPeriodintDefault registration period for domain names, in years
StatusCustomerInfostringReturns "Successful" if the subaccount was created
PartyIDint"PartyID" of this subaccount, for our records
AccountintAccount ID code of this sub-account, for our records. We recommend that you store this value.
sLoginPassstringCode we use to log the user into the new sub-account immediately.
VatEntityTypestringValid VAT entity
VatIdstringValid VAT number
commandstringCreateAccount
errcountintThe number of errors if any occurred. If greater than 0 check the Err(1 to ErrCount) values.
errXstringError messages explaining the failure. These can be presented as is back to the client.
donestringTrue value indicates this entire response has reached you successfully.

Example Output

The following query creates sub-account "ichiro" and requests the response in format of either "text" (default), "xml" or "html"

https://resellertest.enom.com/interface.asp?command=CreateAccount&uid=Your Account ID&pw=Your API Token&NewUID=ichiro&NewPW=ichiropw&ConfirmPW=ichiropw&RegistrantOrganizationName=Reseller20Documents20Inc.&RegistrantFirstName=John&RegistrantLastName=Doe&RegistrantJobTitle=First%20Baseman&RegistrantAddress1=111%20Main%20St.&RegistrantCity=Hometown&RegistrantPostalCode=99999&RegistrantCountry=United+States&RegistrantEmailAddress=john%2Edoe%40resellerdocs%2Ecom&RegistrantPhone=+1.5555555555&RegistrantFax=+1.5555555556&AuthQuestionType=smaiden&AuthQuestionAnswer=jones&CardType=visa&CCName=test1&ResponseType={Optional}
<interface-response>
<NewAccount>
<OrganizationName>Reseller Documents Inc.</OrganizationName>
<Fname>John</Fname>
<Lname>Doe</Lname>
<JobTitle>First Baseman</JobTitle>
<Address1>111 Main St.</Address1>
<Address2/>
<City>Hometown</City>
<StateProvince/>
<StateProvinceChoice/>
<PostalCode>99999</PostalCode>
<Country>US</Country>
<Phone>+1.5555555555</Phone>
<PhoneExt/>
<Fax>+1.5555555556</Fax>
<EmailAddress>[email protected]</EmailAddress>
<EmailAddress_Contact/>
<EmailInfo/>
<GetCustomerPaymentInfo>
<CCType>visa</CCType>
<CCName>test1</CCName>
<CCNumber/>
<CCMonth/>
<CCYear/>
<CCAddress/>
<CCCity/>
<CCStateProvince/>
<CCZip/>
<CCCountry/>
<CCPhone/>
</GetCustomerPaymentInfo>
<GetAccountInfo>
<Reseller>0</Reseller>
<NewUID>ichiro</NewUID>
<NewPW>ichiropw</NewPW>
<ConfirmPW>ichiropw</ConfirmPW>
<AuthQuestionType>smaiden</AuthQuestionType>
<AuthQuestionAnswer>jones</AuthQuestionAnswer>
</GetAccountInfo>
<GetCustomerPreferences>
<DefPeriod/>
</GetCustomerPreferences>
<StatusCustomerInfo>Successful</StatusCustomerInfo>
<PartyID>{779CA342-D320-E111-A3F0-005056BC7747}</PartyID>
<Account>599-nj-0803</Account>
<sLoginPass>7A1218131209144A4948401218131209140B0C404A49544C54494B4A4A5B4F414E42414A4F5B3A36</sLoginPass>
</NewAccount>
<Command>CREATEACCOUNT</Command>
<Language>eng</Language>
<ErrCount>0</ErrCount>
<ResponseCount>0</ResponseCount>
<MinPeriod>1</MinPeriod>
<MaxPeriod>10</MaxPeriod>
<Server>SJL21WRESELLT01</Server>
<Site>eNom</Site>
<IsLockable>True</IsLockable>
<IsRealTimeTLD>True</IsRealTimeTLD>
<TimeDifference>+08.00</TimeDifference>
<ExecTime>1.313</ExecTime>
<Done>true</Done>
<RequestDateTime>12/7/2011 4:59:14 AM</RequestDateTime>
<debug></debug>
</interface-response>
;URL Interface<br>
;Machine is SJL0VWRESELL_T<br>
;Encoding Type is utf-8<br>
<HTML><BODY>
<STRONG>OrganizationName=</STRONG>Reseller Documents Inc.<br />
<STRONG>Fname= </STRONG>John<br />
<STRONG>Lname= </STRONG>Doe<br />
<STRONG>JobTitle=</STRONG>First Baseman<br />
<STRONG>Address1= </STRONG>111 Main St.<br />
<STRONG>Address2= </STRONG><br />
<STRONG>City=</STRONG>Hometown<br />
<STRONG>StateProvince= </STRONG><br />
<STRONG>StateProvinceChoice= </STRONG><br />
<STRONG>PostalCode= </STRONG>99999<br />
<STRONG>Country= </STRONG>US<br />
<STRONG>Phone= </STRONG>+1.5555555555<br />
<STRONG>PhoneExt= </STRONG><br />
<STRONG>Fax= </STRONG>+1.5555555556<br />
<STRONG>EmailAddress= </STRONG>[email protected]<br />
<STRONG>EmailAddress_Contact= </STRONG><br />
<STRONG>EmailInfo= </STRONG><br />
<STRONG>CCType= </STRONG>visa<br />
<STRONG>CCName= </STRONG>test1<br />
<STRONG>CCNumber= </STRONG><br />
<STRONG>CCMonth= </STRONG><br />
<STRONG>CCYear= </STRONG><br />
<STRONG>CCAddress= </STRONG><br />
<STRONG>CCCity= </STRONG><br />
<STRONG>CCStateProvince= </STRONG><br />
<STRONG>CCZip= </STRONG><br />
<STRONG>CCCountry= </STRONG><br />
<STRONG>CCPhone= </STRONG><br />
<STRONG>Reseller= </STRONG>0<br />
<STRONG>NewUID= </STRONG>ichiro<br />
<STRONG>NewPW= </STRONG>ichiropw<br />
<STRONG>ConfirmPW= </STRONG>ichiropw<br />
<STRONG>AuthQuestionType= </STRONG>smaiden<br />
<STRONG>AuthQuestionAnswer= </STRONG>jones<br />
<STRONG>DefPeriod= </STRONG><br />
<STRONG>StatusCustomerInfo= </STRONG>Successful<br />
<STRONG>PartyID= </STRONG>{779CA342-D320-E111-A3F0-005056BC7747}<br />
<STRONG>Account= </STRONG>599-nj-0803<br />
<STRONG>sLoginPass= </STRONG>7A1218131209144A4948401218131209140B0C404A49544C54494B4A4A5B4F414E42414A4F5B3A36<br />
<STRONG>Command= </STRONG>CREATEACCOUNT<br />
<STRONG>APIType= </STRONG>API<br />
<STRONG>Language= </STRONG>eng<br />
<STRONG>ErrCount= </STRONG>0<br />
<STRONG>ResponseCount= </STRONG>0<br />
<STRONG>MinPeriod= </STRONG>1<br />
<STRONG>MaxPeriod= </STRONG>10<br />
<STRONG>Server= </STRONG>SJL0VWRESELL_T<br />
<STRONG>Site= </STRONG>eNom<br />
<STRONG>IsLockable= </STRONG>True<br /><br />
<STRONG>IsRealTimeTLD= </STRONG>True<br />
<STRONG>TimeDifference= </STRONG>+08.00<br />
<STRONG>ExecTime= </STRONG>1.313<br />
<STRONG>Done= </STRONG>true<br />
<STRONG>RequestDateTime= </STRONG>2/3/2015 3:00:18 PM<br />
</BODY></HTML>
;URL Interface
;Machine is SJL0VWRESELL_T
;Encoding Type is utf-8
OrganizationName=Reseller Documents Inc.
Fname=John
Lname=Doe
JobTitle=First Baseman
Address1=111 Main St.
Address2=
City=Hometown
StateProvince=
StateProvinceChoice=
PostalCode=99999
Country=US
Phone=+1.5555555555
PhoneExt=
Fax=+1.5555555556
[email protected]
EmailAddress_Contact=
EmailInfo=
CCType=visa
CCName=test1
CCNumber=
CCMonth=
CCYear=
CCAddress=
CCCity=
CCStateProvince=
CCZip=
CCCountry=
CCPhone=
Reseller=0
NewUID=ichiro
NewPW=ichiropw
ConfirmPW=ichiropw
AuthQuestionType=smaiden
AuthQuestionAnswer=jones
DefPeriod=
StatusCustomerInfo=Successful
PartyID={779CA342-D320-E111-A3F0-005056BC7747}
Account=599-nj-0803
sLoginPass=7A1218131209144A4948401218131209140B0C404A49544C54494B4A4A5B4F414E42414A4F5B3A36
Command=CREATEACCOUNT
APIType=API
Language=eng
ErrCount=0
ResponseCount=0
ResponseNumber1=304157
MinPeriod=1
MaxPeriod=10
Server=SJL0VWRESELL_T
Site=eNom
IsLockable=True
IsRealTimeTLD=True
TimeDifference=+08.00
ExecTime=1.313
Done=true
RequestDateTime=2/3/2015 3:00:18 PM

Related Commands

CheckLogin
CreateSubAccount
DeleteSubaccount
GetAccountInfo
GetAccountPassword
GetAllAccountInfo
GetOrderDetail
GetOrderList
GetReport
GetSubAccountDetails
GetSubAccounts
GetTransHistory
SubAccountDomains
UpdateAccountInfo
UpdateCusPreferences