Home > Aria6 User Documentation > Aria6 core api > get_unapplied_service_credits

get_unapplied_service_credits

For a specified account, this call returns all service credits whose credit amounts have not yet been fully applied.

Input Arguments

Req Field Name Field Type Max Length Description
required-icon.png client_no long 22 Aria-assigned unique identifier indicating the Aria client providing service to this account.
required-icon.png auth_key string 32 Aria-assigned unique key to be passed with each method call for authenticating the validity of the requestor.
required-icon.png acct_no long 22 Aria-assigned account identifier. This value is unique across all Aria-managed accounts.
  alt_caller_id string 30 Person or process that submitted the API call. This can be someone's user ID, or the name of an application.
  optional_transaction_qualifiers array   Array of additional values you can associate with this API call.
  brd_arrow.gif qualifier_name string 100 Name of the field you want to associate with this API call.
  brd_arrow.gif qualifier_value string 100 Corresponding value of the field you want to associate with this API call.
 

Output Arguments

Field Name Field Type Description
error_code long Aria-assigned error identifier. 0 indicates no error.
error_msg string Description of any error that occurred. "OK" if there was no error.
unapplied_service_credits hash A multidimensional array of service credit records for the given account
brd_arrow.gif credit_id long Aria-assigned unique identifier
brd_arrow.gif create_date string Date the credit was created
brd_arrow.gif create_user string User who created the credit
brd_arrow.gif initial_amount double Full starting amount of the credit
brd_arrow.gif amount_left_to_apply double Amount remaining of the total credit to apply
brd_arrow.gif reason_cd long Reason code for why the credit was created 

Allowable values for reason_cd

Values Description
1 General Credit/Other
2 Inadequate Service Delivery
3 Billing / Pricing Issue
4 Service no longer desired
5 Customer Dissatisfaction
6 Installation Issue
9 Customer Return
11 System Testing
12 Prepay Code Redemption
21 Billing Issue
22 Demo/Partner Account
23 Duplicate Charge
24 Employee Account
25 Pricing Issue
26 Return (RMA) Broken
27 Return (RMA) Cancel
28 Return (RMA) Wrong Product
29 Service Issue
30 Shipping Credit
31 Test Account
32 Refer-a-Friend
95 Client-defined automatic "form of payment discount"
96 Order Item Unit Credit
97 New Service Plan Proration
98 Prepay Credit Reconciliation
99 Balance Forward Conversion
1004 Pricing
1005 Service Error
1006 Hardware Malfunction
1007 Goodwill
1008 Billing Error
1009 Development
1010 Shipping Error
1011 Promotion
1012 System Testing
1013 Sales Rep Error
1014 Commission
1015 Operations Error
9999 Coupon Application
brd_arrow.gif reason_text string Text description for why the credit was created
brd_arrow.gif comments string Comments from the create_user when the credit was created.
brd_arrow.gif currency_cd string The 3-character ISO-compliant currency code in lowercase for monetary values used in the context of this API method.
brd_arrow.gif service_no_to_apply long The service_no that will be used to represent the credit when it is applied.
brd_arrow.gif service_name_to_apply string The name/description for "/service_no_to_apply/".
brd_arrow.gif eligible_plan_no long If non-null, the service credit will only be applied to invoice line items that match this plan_no.
brd_arrow.gif eligible_plan_name string The plan name for "eligible_plan_no".
brd_arrow.gif eligible_service_no long If non-null, the service credit will only be applied to invoice line items that match this service_no.
brd_arrow.gif eligible_service_name string The service name/description for "eligible_service_no".
brd_arrow.gif client_service_id_to_apply string The client_service_id that will be used to represent the credit when it is applied.
brd_arrow.gif client_eligible_plan_id string If used, specifies the client-defined plan ID to which the credit is applied. The credit is applied to all services on this plan. If the credit is to be applied to offset ANY charge incurred by the account holder, leave this field empty. If the credit is to be applied to offset a specific type of charge, then this field and the client_eligible_service_id field must be valued. <p> If the eligible_plan_no field has a value in it, this field is ignored.
brd_arrow.gif client_eligible_service_id string If used, specifies the client-defined service ID to which the credit is applied. The service must exist in the plan specified in the client_eligible_plan_id field. If you value this field, you must also value the client_eligible_plan_id field with the plan ID that contains this service. If the credit to be created is to be applied to offset a specific type of charge, then that specific plan_ID and service_ID combination referencing that type of charge must be supplied in these two fields. Entering a service ID in this field without entering its corresponding plan ID causes the API to fail.
brd_arrow.gif amount_reserved_for_anniversary long Amount reserved for anniversary invoice
brd_arrow.gif eligible_service_types hash A list of eligible service types
brd_arrow.gif eligible_service_types string Service type code for which the credit is applicable. 

Allowable values for eligible_service_types

Values Description
RC Recurring Service
US Usage Service
TX Tax Service
AC Activation Service
MS Miscellaneous Service
CN Cancellation Service
OR Order Based Service
MN Minimum Fee Service
 
 
 
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.