Skip to main content
Aria Knowledge Central

apply_service_credit_m

Summary

API Name apply_service_credit_m
Class transaction_services_m
Update Version 62

Description

Applies a service credit to a specified account or master plan instance (MPI). Service credits differ from cash credits in that they reduce the balance at the service level rather than against specific invoices or charges. The credit is applied to the account's overall service balance or, if a master_plan_instance_no is specified, to that specific subscription. A credit_reason_code is required to categorize the credit (e.g., billing issue, customer dissatisfaction, goodwill, promotion). Returns the credit_id for tracking the credit transaction.

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: client_acct_id

client_acct_id string 50 Yes

Client-defined account identifier.

Alternative required field: acct_no

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

credit_amount double 12 Yes

The amount of credit to be applied to the account.

comments string 300 No

Additional explanatory text relating to this API call.

credit_reason_code long 8 Yes

The reason a given credt was/is to be applied to the account.

Allowed values:

Value Description
0 Internal Overpayment
1 General credit/other
2 Inadequate service delivery
3 Billing / pricing issue
4 Service no longer desired
5 Customer dissatisfaction
6 Installation issue
7 Duplicate/erroneous usage
8 Shipping error
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 Testing Account
32 Refer-a-Friend
33 Referral Program
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

Outputs

Name Type Length Required Description
credit_id long   No

This identifier is returned upon successful application of credit and indicates the specific credit transaction executed against the account.

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.

TOP
  • Was this article helpful?