| API / Command Line | |
Used to create or modify an Account record. If creating an Account, a User record is also created.
/usr/local/billmax/cgi-bin/enter_account.cgi
| Name | Type | Description | Required |
|---|---|---|---|
| srchnumber | Integer | If non zero, the number of an existing Account. | Yes |
| number | Integer | The number to use for the Account. Recommended to use 0 for a new Account. | Yes |
| state | Integer | Status of the Account.
|
Yes if a new Account. |
| startdate | Date | Yes if a new Account | |
| enddate | Date | ||
| adcode | Integer | Advertising Code 0 or a value from the adcodes List. |
|
| cancelreason | Integer | Cancel Reason 0 or a value from the cancelreasons List. |
|
| referredby | String | ||
| cfname | String | First Name | |
| cmname | String | Middle Name | |
| clname | String | Last Name | |
| company | String | ||
| cphone | String | Phone Number | |
| fphone | String | Fax Number | |
| String | |||
| textmessage | String | Email address equivalent for a cell phone. | |
| taxable | Integer |
|
Yes if a new Account. |
| taxregion | Integer |
|
Yes if a new Account. |
| reseller | String | ||
| paytype | Integer |
Default Payment Method
|
Yes if a new Account. |
| invmethod | String | Automated Billing Methods. This is contextual depending on the Account Profile. A "0" indicates no automated method is selected. Otherwise, a comma separated list such as "1,2,4,16..." indicates which Document Delivery Methods from the Account Profile should be used. Note each entry in the comma separated list is a power of 2. |
Yes if a new Account. |
| addr1 | String | ||
| addr2 | String | ||
| addr3 | String | ||
| addr4 | String | ||
| city | String | ||
| statename | String | ||
| zip | String | ||
| country | String | ||
| county | String | ||
| invday | Integer | Billing/Prorate Day of Month. If 0, then the setting from the Virtual Company will be used. | |
| gracedate | Date | Date an overdue Account has until Overdue processing is started. | |
| misc01 | Integer | ||
| misc02 | Integer | ||
| misc03 | Integer | ||
| misc04 | Integer | ||
| misc05 | Integer | ||
| misc06 | String | ||
| misc07 | String | ||
| misc08 | String | ||
| misc09 | String | ||
| misc10 | String | ||
| misc11 | Date | ||
| misc12 | Date | ||
| misc13 | Date | ||
| misc14 | Date | ||
| misc15 | Date | ||
| misc16 | Time | ||
| misc17 | Time | ||
| misc18 | Time | ||
| misc19 | Time | ||
| misc20 | Time | ||
| customerof | Integer | Virtual Company. A reference to the number field in the config table. |
Yes if a new Account. |
| generation | Time stamp |
|
Yes |
| reason | Integer | The reason an Account is not open. 0 or a value from the reasons List. | |
| title | Integer | 0 or a value from the titles List. | |
| bmui | Integer | Portal Access.
|
|
| useradmin | Integer |
Account Administrative Portal User
|
|
| immune | String | Comma separate list of values, each value a power of 2.
|
|
| profile | Integer | Account Profile. A reference to the number field in the profile table. |
|
| vataxid | String | Value Added Tax ID | |
| datetoreopen | Date | If an account is not Open, the date in the future to reopen the account automatically. | |
| flags | String | Comma separate list of values, each value a power of 2.
|
|
| enddatereason | Integer | Reason that the End Date has been set.
|
|
| autoeft | Integer | Automated Payment Processing modifiers. Comma separate list of values, each value a power of 2.
|
|
| importid | String | If imported from another billing system, the key in the old system for the account | |
| pctdiscount | Decimal | Percent discount that all non-Usage Sales to the Account will get. Implemented as a Store Credit for each Sale. Supply "2.5" for a 2.5 percent discount. | |
| pctdiscountexpdate | Date | Date that the discount expires. | |
| usagepctdiscount | Decimal | Percent discount that all Usage Sales to the Account will get. Implemented as a Store Credit for each Sale. | |
| usagepctdiscountexpdate | Date | Date that the Usage discount expires. | |
| loginid | String | Portal Login Name for the Administrative User. | |
| password | String | Portal Password for the Administrative User. | |
| guarantor | Integer | Another Account that will pay the bills for this Account. If non-zero, a reference to the number field in the account table. | |
| timezone | Integer | Value from the timezones List. |