Skip to main content
Aria Knowledge Central

apply_cm_m

Applies credit memo line credits to invoice gross line amounts.

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   Aria-assigned account identifier. This value is unique across all Aria-managed accounts.
  OR      
  client_acct_id string 50 This is the client-assigned identifier for the account.
Start of credit_application_details array
required-icon.png credit_application_details array   Array of credit memo line application.
  Field Name Field Type Max Length Description
required-icon.png brd_arrow.gifcm_no long   The unique Aria-generated number for the credit memo.
required-icon.png brd_arrow.gifcm_line_no long   Credit memo line number.
  OR      
  brd_arrow.gifcm_transaction_id long   Credit memo line transaction id.
required-icon.png brd_arrow.gifapply_to_invoice_no long   The invoice number this credit memo line applies to.
required-icon.png brd_arrow.gifapply_to_invoice_line_no long   The invoice line number this credit memo line applies to.
  OR      
  brd_arrow.gifapply_to_invoice_line_tran_id long   The invoice line transaction id this credit memo line applies to.
required-icon.png brd_arrow.gifgross_line_application_amt double   Gross amount to be applied against the invoice line.
End of credit_application_details array
 
  do_write string 5

Boolean indicator that specifies whether to actually perform the requested operation. If 'false' is passed in this field, Aria calculates, if applicable, any potential effects from this call such as proration, plan assignments, etc. and return all relevant data without actually performing the requested operation or making any changes to the account. This is useful to interfaces that want to present the user with a 'confirmation page' informing them of the potential effects of the requested operation prior to actually performing it. Do_write defaults to 'true'

Allowable values for do_write:

  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.
Start of optional_transaction_qualifiers array
  optional_transaction_qualifiers array   Array of additional values you can associate with this API call.
  Field Name Field Type Max Length Description
  qualifier_name string 100 Name of the field you want to associate with this API call.
  qualifier_value string 100 Corresponding value of the field you want to associate with this API call.
End of optional_transaction_qualifiers array
 
  application_id string 300 The application identifier in which the API is being used in. (Example: “Sales Force”)
  application_date string 300 The application date/timestamp, ie. 01/01/2014 10:00:00 to track when the application called the API.

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.
applied_cm_line_details hash Array of credit memo line application.
applied_to_invoice_no long The invoice number this credit applied to.
applied_to_invoice_line_no long The invoice line number this credit applied to.
invoice_line_transaction_id long The invoice line transaction id.
cm_no_out long The unique Aria-generated number for the credit memo.
cm_line_no_out long Credit memo line number.
cm_transaction_id_out long Credit memo line transaction id.
line_amt_applied double Credit amount applied against the invoice service line.
line_tax_amt_applied double Credit amount applied against taxes of the invoice service line.
  • Was this article helpful?