Loading...

Knowledge Base

Create a Customer Account Using the API

When you want to create a customer account using the API. This article explains required account details, supported parameters, consent requirements, and response details for customer account creation.

Signing Up

Description

Creates a Customer Account using the details provided.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
usernameStringRequiredUsername for the Customer Account. Username should be an email address.
passwdStringRequired

Password for the Customer Account.

Note

Password related information

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 alongwith an error message will be returned.