Developers / API / Create Account
Here you can create an account

Create Account

Here you can create an account

Field Name Len Type Req Ver Comments
method N/A Alp Yes 1.2 createAccount
fromEmail N/A Alp-Num Yes 1.2 The email associated with the account from which the authorize is made
operatorId N/A Alp-Num -- 1.2 Your operator's Id
username N/A Alp-Num Yes 1.2 Customer's Username
firstName N/A Alp-Num Yes 1.2 Customer's First Name
lastName N/A Alp-Num Yes 1.2 Customer's Last Name
language 2 Alp -- 1.2 Language
ro = Romanian
idn N/A Alp-Num Yes 1.2 Customer's Identity Verification Number
citizenship 2 Alp Yes 1.2 Customer's Birth Country - two letters country code (ISO Char 2 Code)
residenceCountry 2 Alp Yes 1.2 Customer's Residence Country - two letters country code (ISO Char 2 Code)
birthday 10 Date Yes 1.2 Customer's Birthday (YYYY-MM-DD)
ocupation N/A Num Yes 1.2 Customer's Ocupation ID(See samples)
employer N/A Alp-Num -- 1.2 Customer's Employer
politicalyView 1 Num -- 1.2 Customer's Politicaly View
1 = Don't hold a public position
2 = Holds a public position
3 = Relative holds a public position
4 = He is closed associated
currency 3 Alp Yes 1.2 The amount currency(e.g. USD)
phoneCountryCode N/A Alp-Num Yes 1.2 Customer's Phone Country Code
phone N/A Num Yes 1.2 Customer's Phone
phoneExtension N/A Num -- 1.2 Phone Extension
phoneType 1 Num Yes 1.2 Phone type
1 = Work
2 = Mobile
3 = Customer Service
4 = Home
streetName N/A Alp-Num Yes 1.2 Customer's Street Name
streetNumber N/A Alp-Num Yes 1.2 Customer's Street Number
building N/A Alp-Num -- 1.2 Customer’s Building
floor N/A Alp-Num -- 1.2 Customer’s Floor
apartment N/A Alp-Num -- 1.2 Customer’s Apartment
country 2 Alp Yes 1.2 two letters country code (ISO Char 2 Code)
state 1/3 Alp-Num Yes 1.2 two - three letters state / province / county code (ISO 3166-2)
city N/A Alp-Num Yes 1.2 Customer’s City
postalCode N/A Alp-Num Yes 1.2 Customer’s Postal Code(ZIP)
addressStatus 1 Num Yes 1.2 Customer’s Address Status
1 = Home
2 = Business
3 = Home and Business
apiStatus 1 Num -- 1.2 Customer’s Api Status
2 = Enabled
4/None = Disabled
apiSecret 32 Alp-Num -- 1.2 32 chars Customer’s Api Shared Secret
apiIPs N/A Alp-Num -- 1.2 Customer’s Api IPs
key N/A Alp-Num Yes 1.2 MD5(sharedSecret + operatorCode + username + firstName + lastName + language + idn + citizenship + residenceCountry + birthday + ocupation + employer + currency + phoneCountryCode + phone + phoneExtension + phoneType + streetName + streetNumber + building + floor + apartment + country + state + city + postalCode + addressStatus + apiStatus + apiSecret + apiIPs)

This request is responded by a message with the following content:

Field Name Len Type Mdt Ver Comments
ResponseCode N/A Alp-Num Yes 1.2 The response code; 00 = Success;
ResponseDescription N/A Alp-Num Yes 1.2 Human readable response
Fee N/A Real Yes 1.2 Fee for the current transaction
AddressId N/A Num Yes 1.2 Customer's Address ID needed for his Address Confirmation
AccountId N/A Num Yes 1.2 Customer's CHQ Account ID needed for his Card Request

Request Sample:

https://www.paxum.com/payment/api/paymentAPI.php

POST

method=createAccount&fromEmail=payee%40domain.com&operatorCode=1&username=new%40domain.com&firstName=john&lastName=doe&language=ro&idn=1111111111111&citizenship=RO&residenceCountry=RO&birthday=1980-01-01&ocupation=12&employer=1&politicalyView=1&currency=RON&phoneCountryCode=40&phone=722222222&phoneExtension=1&phoneType=2&streetName=unirii&streetNumber=12&building=&floor=&apartment=&country=RO&state=BC&city=bacau&postalCode=120000&addressStatus=1&apiStatus=2&apiSecret=11111111111111111111111111111111&apiIPs=127.0.0.1&key=36af72fd5c6deb18185c7e9438971dca

Response Sample

<?xml version="1.0"?>
<Response>
    <Environment>PRODUCTION</Environment>
	<Method>createAccount</Method>
	<ResponseCode>00</ResponseCode>
	<ResponseDescription>Approved or Completed Successfully</ResponseDescription >
	<Fee>0.00</Fee>
	<AddressId>123456</AddressId>
	<AccountId>123456</AccountId>
</Response>

Working Sample(s):

createAccount.php