Skip to main content
Aria Knowledge Central

get_usage_summary_by_type_m

Summary

API Name get_usage_summary_by_type_m
Class account_services_m
Update Version 40

Description

Returns the usage records associated with a specified account for a particular date range.

Inputs

Name Type Length Required Description
client_no long 22 Yes

Aria-assigned unique identifier indicating the Aria client providing service to this account.

auth_key string 32 No

Aria-assigned unique key for authenticating the validity of the requestor. This key is passed with each method call.

acct_no long 22 Yes

Aria-assigned account identifier. This value is unique across all Aria-managed accounts.

Alternative required field: user_id or client_acct_id

user_id string 32 Yes

Account's user ID. Alternative to using acct_no.

Alternative required field: acct_no or client_acct_id

client_acct_id string 50 Yes

Client-defined account identifier.

Alternative required field: acct_no or user_id

master_plan_instance_no long 22 No

The Master Subscription plan instance number.

Alternative field: client_master_plan_instance_id

client_master_plan_instance_id string 100 No

Client-defined Master plan Subscription plan instance ID.

Alternative field: master_plan_instance_no

usage_type_filter long 8 No

The Aria-assigned usage type number used to search for usage history records.

Alternative field: usage_type_cd_filter

date_filter_start_date string 14 No

Specifies the start-date of the given date range. The date is in the format yyyy-mm-dd.

date_filter_start_time string 14 No

Specifies the start-time of the given time range. The time is in the format hh24:mi:ss.

date_filter_end_date string 14 No

Specifies the end-date of the given date range. The date is in the format yyyy-mm-dd.

date_filter_end_time string 14 No

Specifies the start-time of the given time range. The time is in the format hh24:mi:ss.

billed_filter long   No

Specifies billed records or unbilled records

Allowed values:

Value Description
0 Return both billed and unbilled usage records
1 Billed usage records only
2 Unbilled usage records only
billing_period_flag long   No

Specifies whether to select records of current billing cycle

Allowed values:

Value Description
0  
1 current billing cycle only
Start of usage_qualifier_1 object
usage_qualifier_1 object   No  
Name Type Length Required Description
▶usage_qualifier_1 string   No

Optional list of filters to apply against usage qualifier number 1, stored in the Aria system

End of usage_qualifier_1 object
Start of usage_qualifier_2 object
usage_qualifier_2 object   No  
Name Type Length Required Description
▶usage_qualifier_2 string   No

Optional list of filters to apply against usage qualifier number 2, stored in the Aria system

End of usage_qualifier_2 object
Start of usage_qualifier_3 object
usage_qualifier_3 object   No  
Name Type Length Required Description
▶usage_qualifier_3 string   No

Optional list of filters to apply against usage qualifier number 3, stored in the Aria system

End of usage_qualifier_3 object
Start of usage_qualifier_4 object
usage_qualifier_4 object   No  
Name Type Length Required Description
▶usage_qualifier_4 string   No

Optional list of filters to apply against usage qualifier number 4, stored in the Aria system

End of usage_qualifier_4 object
usage_type_cd_filter string 100 No

The client assigned usage type code used to search for usage history records.

Alternative field: usage_type_filter

retrieve_excluded_usage string 8 No

Use this field to include usage records that have been permanently excluded from billing

Allowed values:

Value Description
True Discarded usage records will be included
False Discarded usage records will not be included
locale_no long 30 No

Aria-assigned unique identifier of the locale used for translations. This value must be unique across all Aria clients.

Alternative field: locale_name

locale_name string 100 No

Name of the locale.

Alternative field: locale_no

Outputs

Name Type Length Required Description
error_code long   No

Aria-assigned error identifier. 0 indicates no error.

error_msg string   No

Description of any error that occurred. "OK" if there was no error.

start_date string   No

The start-date of the given date range

start_time string   No

The start-time of the given time range

end_date string   No

The end-date of the given date range

end_time string   No

The end-time of the given time range

Start of usage_summary_recs object
usage_summary_recs object   No

Usage summary records of the account (and optional specified usage type) for given date range

Name Type Length Required Description
▶out_acct_no long 22 No  
▶out_client_acct_id string 50 No

This is the client-assigned identifier for the account.

▶out_plan_instance_no long 22 No

The Subscription plan instance number.

▶out_plan_instance_cdid string 100 No

Client-defined plan Subscription plan instance ID.

▶usage_type_no long   No

Aria-assigned unique identifier representing the type of usage that is being recorded.

▶usage_type_label string   No

Aria-assigned the label to representing the usage type

▶billed_ind long   No

Specifies billed records or unbilled records

▶total_units double   No

The total number of usage units

▶total_value_amount double   No

The total amount of the usage

▶total_value_currency_code string   No

The currency code for the usage

▶last_usage_date string   No

The last date when usage is loaded

▶usage_type_cd string 100 No

An array containing usage_type_cd(s) to denote which usage type(s) to record.

End of usage_summary_recs object
acct_locale_no long 30 No

Aria-assigned unique identifier of the locale used for translations. This value is unique across all Aria-managed accounts.

acct_locale_name string 100 No

Name of the account level locale.

TOP
  • Was this article helpful?