Loading...

Knowledge Base

How to Create a Customer Account Using the API

When your system or integration needs to create a customer account programmatically. This article explains how to create a customer account using the API.

Description

Creates a Customer Account using the details provided.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredYour Live Account Reseller Id
api-keyStringRequiredAn alphanumeric code that can be used to authenticate your API calls
usernameStringRequiredUsername for the Customer Account. The username should be an email address.
passwdStringRequired

Password for the Customer Account.

 

nameStringRequiredName of the Customer
companyStringRequiredName of the Customer's company
address-line-1StringRequiredAddress line 1 of the Customer's address
cityStringRequiredCity
stateStringRequiredState. In case the State information is not available, you need to pass the value for this parameter as Not Applicable.
other-stateStringOptional

This parameter needs to be included if the State information is not available.

Mention an appropriate value for this parameter.

countryStringRequiredCountry Code as per ISO 3166-1 alpha-2
zipcodeStringRequiredZIP code
phone-ccStringRequiredTelephone number Country Code
phoneStringRequiredPhone number
lang-prefStringRequiredLanguage Code as per ISO
address-line-2StringOptionalAddress line 2 of the Customer's address
address-line-3StringOptionalAddress line 3 of the Customer's address
alt-phone-ccStringOptionalAlternate phone country code
alt-phoneStringOptionalAlternate phone number
fax-ccStringOptionalFax number country code
faxStringOptionalFax number
mobile-ccStringOptionalMobile country code
mobileStringOptionalMobile number
sms-consentBooleanOptionalIn case of a US based customer, consent is required to receive renewal reminder SMSes
vat-idStringOptionalVAT ID for EU VAT
accept-policyBooleanOptionalAccept Terms and Conditions and Privacy Policy to create an account
marketing-email-consentBooleanOptionalIn case of EEA (European Economic Area) countries capture consent to receive marketing emails

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/customers/v2/signup.xml?auth-userid=0&api-key=key&username=email@email.com&passwd=password9&name=name &company=company&address-line-1=address-line-1&city=city&state=state&country=US&zipcode=0000&phone-cc=0&phone=000000&lang-pref=en

Response

Creates a Customer Account and returns the Customer ID (Integer) of the newly added Customer.

In case of any errors, a status key with value as ERROR along with an error message will be returned.