AccountWithIDAdd_API
|
|
|
|
Parameters
|
Description
|
Passed
|
Returned
|
Starting PBA 4.4.2 the method is obsolete and left for backward compatibility, use AccountAdd_API method instead.
Method creates new account in PBA with specified ID.
There are two types of account in PBA: person and company.
Company account needs company name, address and three types of contacts (administrative, billing and technical) to be passed.
Personal account needs address and personal details only.
Example below is given for person account type.
|
62
|
1
|
Syntax
ErrorMessage BM::AccountWithIDAdd_API(
Int VendorAccountID;
Int VType;
Str(80) CompanyName;
Str(80) Address1;
Str(80) Address2;
Str(40) City;
Str(80) State;
Str(10) Zip;
Str(2) CountryID;
Str(1024) PostalAddress;
Str(30) AdminFName;
Str(30) AdminMName;
Str(30) AdminLName;
Str(100) AdminEmail;
Str(4) AdminPhCountryCode;
Str(10) AdminPhAreaCode;
Str(20) AdminPhNumber;
Str(10) AdminPhExtention;
Str(4) AdminFaxCountryCode;
Str(10) AdminFaxAreaCode;
Str(20) AdminFaxNumber;
Str(10) AdminFaxExtention;
Str(30) BillFName;
Str(30) BillMName;
Str(30) BillLName;
Str(100) BillEmail;
Str(4) BillPhCountryCode;
Str(10) BillPhAreaCode;
Str(20) BillPhNumber;
Str(10) BillPhExtention;
Str(4) BillFaxCountryCode;
Str(10) BillFaxAreaCode;
Str(20) BillFaxNumber;
Str(10) BillFaxExtention;
Str(30) TechFName;
Str(30) TechMName;
Str(30) TechLName;
Str(100) TechEmail;
Str(4) TechPhCountryCode;
Str(10) TechPhAreaCode;
Str(20) TechPhNumber;
Str(10) TechPhExtention;
Str(4) TechFaxCountryCode;
Str(10) TechFaxAreaCode;
Str(20) TechFaxNumber;
Str(10) TechFaxExtention;
Str(30) PersFName;
Str(30) PersMName;
Str(30) PersLName;
Int Birthday;
Str(1024) Passport;
Str(100) PersEmail;
Str(4) PersPhCountryCode;
Str(10) PersPhAreaCode;
Str(20) PersPhNumber;
Str(10) PersPhExtention;
Str(4) PersFaxCountryCode;
Str(10) PersFaxAreaCode;
Str(20) PersFaxNumber;
Str(10) PersFaxExtention;
Int TaxStatus;
Int AccountID.
)
returns
Str ErrorMessage - message after account has been added: " Account # is successfully added."
Special Notes
Note: Company specific parameters should be passed as empty/zero, if personal account is added and vice versa.
The following parameters are relevant for both types of account (company and person).
- Int VendorAccountID - vendor account ID (provider or reseller);
- Int VType - account role: 2 - Reseller, 3 - Customer;
- Str(80) CompanyName - account name. It can be company name or person first and last names.
- Str(80) Address1 - account address (line 1/2);
- Str(80) Address2 - account address (line 2/2);
- Str(40) City - account address: city;
- Str(80) State - account address: state;
- Str(10) Zip - account address: zip or postal code. It will be verified through country specific regular expression. You could modify regular expression under countries list in Configuration Director > Miscellaneous Settings > Countries submenu of the Navigation tree;
- Str(2) CountryID - two-letter country code, verified against countries list in Configuration Director > Miscellaneous Settings > Countries submenu of the Navigation tree;
- Str(1024) PostalAddress - account address in free form;
The following parameters are relevant for company account type. For person account type should be passed empty.
- Str(30) AdminFName - account administrative contact information: first name;
- Str(30) AdminMName - account administrative contact information: middle name;
- Str(30) AdminLName - account administrative contact information: last name;
- Str(100) AdminEmail - account administrative contact information: e-mail address;
- Str(4) AdminPhCountryCode - account administrative contact information: phone country code;
- Str(10) AdminPhAreaCode - account administrative contact information: phone area code;
- Str(20) AdminPhNumber - account administrative contact information: phone number;
- Str(10) AdminPhExtention - account administrative contact information: phone extension;
- Str(4) AdminFaxCountryCode - account administrative contact information: fax country code;
- Str(10) AdminFaxAreaCode - account administrative contact information: fax area code;
- Str(20) AdminFaxNumber - account administrative contact information: fax number;
- Str(10) AdminFaxExtention - account administrative contact information: fax extension;
- Str(30) BillFName - account billing contact information: first name;
- Str(30) BillMName - account billing contact information: middle name;
- Str(30) BillLName - account billing contact information: last name;
- Str(100) BillEmail - account billing contact information: e-mail address;
- Str(4) BillPhCountryCode - account billing contact information: phone country code;
- Str(10) BillPhAreaCode - account billing contact information: phone area code;
- Str(20) BillPhNumber - account billing contact information: phone number;
- Str(10) BillPhExtention - account billing contact information: phone extension;
- Str(4) BillFaxCountryCode - account billing contact information: fax country code;
- Str(10) BillFaxAreaCode - account billing contact information: fax area code;
- Str(20) BillFaxNumber - account billing contact information: fax number;
- Str(10) BillFaxExtention - account billing contact information: fax extension;
- Str(30) TechFName - account technical contact information: first name;
- Str(30) TechMName - account technical contact information: middle name;
- Str(30) TechLName - account technical contact information: last name;
- Str(100) TechEmail - account technical contact information: e-mail address;
- Str(4) TechPhCountryCode - account technical contact information: phone country code;
- Str(10) TechPhAreaCode - account technical contact information: phone area Code;
- Str(20) TechPhNumber - account technical contact information: phone number;
- Str(10) TechPhExtention - account technical contact information: phone extension;
- Str(4) TechFaxCountryCode - account technical contact information: fax country code;
- Str(10) TechFaxAreaCode - Account Tech contact information: Fax Area Code;
- Str(20) TechFaxNumber - account technical contact information: fax number;
- Str(10) TechFaxExtention - account technical contact information: fax extension;
The following parameters are relevant for person account type. For company account type should be passed empty.
- Str(30) PersFName - account personal contact information: first name;
- Str(30) PersMName - account personal contact information: middle name;
- Str(30) PersLName - account personal contact information: last name;
- Int Birthday - account personal contact information: birthday in Unix date format;
- Str(1024) Passport - account personal contact information: passport details;
- Str(100) PersEmail - account personal contact information: e-mail address;
- Str(4) PersPhCountryCode - account personal contact information: phone country code;
- Str(10) PersPhAreaCode - account personal contact information: phone area code;
- Str(20) PersPhNumber - account personal contact information: phone number;
- Str(10) PersPhExtention - account personal contact information: phone extension;
- Str(4) PersFaxCountryCode - account personal contact information: fax country code;
- Str(10) PersFaxAreaCode - account personal contact information: fax area code;
- Str(20) PersFaxNumber - account personal contact information: fax number;
- Str(10) PersFaxExtention - account personal contact information: fax extension;
The following parameters are relevant for both types of account (company and person).
- Int TaxStatus - account type: 1 - Person, 2 - Company;
- Int AccountID - account ID.
Please send us your feedback on this help page