get_acct_hierarchy_details_m Guide
- Last updated
-
-
Save as PDF
The get_acct_hierarchy_details_m API is used to retrieve the account details, and also the details of its master plan instances, supplemental plan instances, billing groups and payment methods (based on various filter flags in the input). It is also capable of fetching the details of its parent and child account details as well as coupon information for plans and plan instances.
Additional Guidance
Input Fields
| Field Name |
Notes |
| <hierarchy_filter> |
Allowable Values
| Values |
Description |
| 0 |
Returns the entire hierarchy of the account (default) |
| 1 |
Returns child hierarchy details of the account |
| 2 |
Returns parent hierarchy details of the account |
|
| <include_supp_plans> |
Allowable Values
| Values |
Description |
| 1 |
Yes |
| 0 |
No (default) |
|
| <include_billing_groups> |
Allowable Values
| Values |
Description |
| 1 |
Yes |
| 0 (default) |
No |
|
| <include_payment_methods> |
Allowable Values
| Values |
Description |
| 1 |
Yes. Requires include_billing_groups input parameter also be set to 1. |
| 0 |
No (default) |
|
Output Fields
| Field Name |
Notes |
| <status_cd> |
Allowable Values
| Values |
Description |
| 0 |
Deactivated |
| 1 |
Active |
| 32 |
Registered Pending Activation |
| 51 |
Temporary Service Ban |
| 99 |
Permanent |
| -99 |
Archived |
|
| <notify_method> |
Allowable Values
| Values |
Description |
| 0 |
None |
| 1 |
HTML Email |
| 2 |
Text Email |
| 3 |
Text Email w/link to HTML |
| 4 |
Data export |
| 5 |
Printable (no Email) w/Surcharge |
| 6 |
Printable & Text Email |
| 7 |
Printable & HTML Email w/Surcharge |
| 8 |
Printable (no Email) |
| 9 |
PDF (Printing required, no Email) |
| 10 |
PDF (delivered by Email) |
| 11 |
PDF (Printing req & Email)w/surcharge |
| 12 |
PDF (Printing req, no Email)w/surcharge |
| 13 |
XML Master File |
| 14 |
PDF Master File |
| 15 |
XML Master File and HTML Email |
| 16 |
XML Master File and Text Email |
| 17 |
PDF Master File and HTML Email |
|
| <test_acct_ind> |
Allowable Values
| Values |
Description |
| 1 |
test |
| 0 |
live |
|
| <tax_exemption_level> |
Allowable Values
| Values |
Description |
| 0 |
Account is not exempt from taxation (DEFAULT). |
| 1 |
Account is exempt from state/province taxation. |
| 2 |
Account is exempt from federal/national taxation. |
| 3 |
Account is exempt from both federal/national and state/province taxation. |
|
| <list_start_master_file> |
Allowable Values
| Values |
Description |
| 0 |
0 |
| 1 |
When value=1, account is listed at the top of the master file when generated. |
|
| <notify_method> |
Allowable Values
| Values |
Description |
| 0 |
None |
| 1 |
HTML Email |
| 2 |
Text Email |
| 3 |
Text Email w/link to HTML |
| 4 |
Data export |
| 5 |
Printable (no Email) w/Surcharge |
| 6 |
Printable & Text Email |
| 7 |
Printable & HTML Email w/Surcharge |
| 8 |
Printable (no Email) |
| 9 |
PDF (Printing required, no Email) |
| 10 |
PDF (delivered by Email) |
| 11 |
PDF (Printing req & Email)w/surcharge |
| 12 |
PDF (Printing req, no Email)w/surcharge |
| 13 |
XML Master File |
| 14 |
PDF Master File |
| 15 |
XML Master File and HTML Email |
| 16 |
XML Master File and Text Email |
| 17 |
PDF Master File and HTML Email |
|
| <payment_option> |
Allowable Values
| Values |
Description |
| Methods |
Methods |
| Terms |
Terms |
|
| <bg_list_start_master_file> |
Allowable Values
| Values |
Description |
| 0 |
0 |
| 1 |
When value=1, account is listed at the top of the master file when generated. |
|
| <pay_method_type> |
Allowable Values
| Values |
Description |
| -1 |
External Payment |
| 0 |
Other |
| 1 |
Credit card |
| 2 |
Electronic Check (ACH) |
| 3 |
Pre-paid |
| 4 |
Net terms 30 |
| 5 |
Net terms 10 |
| 6 |
Net terms 15 |
| 7 |
Net terms 60 |
| 8 |
Click&Buy |
| 9 |
Net Terms 0 |
| 10 |
PayByCash |
| 11 |
PayPal Express Checkout |
| 12 |
Net Terms 45 |
| 13 |
Tokenized Credit Card |
| 14 |
Purchase Power |
| 15 |
Net Terms 35 |
| 16 |
Net Terms 75 |
| 17 |
Net Terms 90 |
| 18 |
Net Terms 120 |
| 19 |
Net Terms 25 |
| 26 |
Direct Debit |
|
| <initial_plan_status> |
Allowable Values
| Values |
Description |
| 1 |
Active |
| 2 |
Pending Cancellation |
| 3 |
Pending Termination |
| 31 |
Pending Installation |
| 32 |
Pending Activation |
| 41 |
Trial |
| 61 |
Active Non-billable |
| 0 |
Inactive |
| -1 |
Suspended |
| -2 |
Cancelled |
| -3 |
Terminated |
|
| <rollover_plan_status> |
Allowable Values
| Values |
Description |
| 1 |
Active |
| 2 |
Pending Cancellation |
| 3 |
Pending Termination |
| 31 |
Pending Installation |
| 32 |
Pending Activation |
| 41 |
Trial |
| 61 |
Active Non-billable |
| 0 |
Inactive |
| -1 |
Suspended |
| -2 |
Cancelled |
| -3 |
Terminated |
|
| <rollover_plan_status_uom_cd> |
Allowable Values
| Values |
Description |
| 1 |
Day |
| 2 |
Week |
| 3 |
Month |
| 4 |
Quarter |
| 5 |
Year |
|
| <init_free_period_uom_cd> |
Allowable Values
| Values |
Description |
| 1 |
Day |
| 2 |
Week |
| 3 |
Month |
| 4 |
Quarter |
| 5 |
Year |
|
| <dunning_state> |
Allowable Values
| Values |
Description |
| 0 |
None |
| 1 |
In Progress |
|
| <tax_inclusive_ind> |
Allowable Values
| Values |
Description |
| 0 |
The service is tax-exclusive. |
| 1 |
The service is tax-inclusive. |
|
| <rollover_plan_status> |
Allowable Values
| Values |
Description |
| 1 |
Active |
| 2 |
Pending Cancellation |
| 3 |
Pending Termination |
| 31 |
Pending Installation |
| 32 |
Pending Activation |
| 41 |
Trial |
| 61 |
Active Non-billable |
| 0 |
Inactive |
| -1 |
Suspended |
| -2 |
Cancelled |
| -3 |
Terminated |
|
| <rollover_plan_status_uom_cd> |
Allowable Values
| Values |
Description |
| 1 |
Day |
| 2 |
Week |
| 3 |
Month |
| 4 |
Quarter |
| 5 |
Year |
|
| <tax_inclusive_ind> |
Allowable Values
| Values |
Description |
| 0 |
The service is tax-exclusive. |
| 1 |
The service is tax-inclusive. |
|
Error Codes
| Error Code/Description |
Associated Inputs |
|
|
|
1004: authentication error
|
<auth_key>, <client_no> |
1009: account does not exist, Account not found: AriaNo (acct_no), Account not found: Userid (userid), or Account not found: ClientId (client_acct_id)
|
<acct_no>, <client_acct_id>, <userid> |
1016: invalid input
Additional Comments: This error can be caused by the wrong type of input; for example, text in a numbers-only field, or specifying a value other than one of the documented allowable values.
|
<client_billing_group_id>, <plan_instance_no>, <client_plan_instance_id>, <plan_instance_no>, <email>, <include_supp_plans>, <include_billing_groups>, <include_payment_methods>, <phone_ext>, <work_phone_ext>, <plan_units>, <status_cd>, <acct_no>, <assignment_directive>, <billing_group_no>
|
1066: Locale name does not exist in the system.
|
<locale_name> |
1067: Locale no does not exist in the system.
|
<locale_name>, <master_plan_instance_no> |
26004: Include billing groups in order to retrieve payment methods.
|
<include_billing_groups>, <include_payment_methods> |