Note: If sending multiple line items, you must send the line items in ascending order using the cm_line_no field in the cm_details array for the tax line items to be calculated correctly.
Creates a credit memo to adjust the line item charges on the specified invoice.
Note: The previously existing input and/or output fields <client_item_id>, <client_item_id_out> and/or <filter_client_item_id> were removed from this API call in Release 47.
For information on error messages generated by this API, see create_cm_m Error Messages.
Req | Field Name | Field Type | Max Length | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
![]() |
client_no | long | 22 | Aria-assigned unique identifier indicating the Aria client providing service to this account. | ||||||
![]() |
auth_key | string | 32 | Aria-assigned unique key to be passed with each method call for authenticating the validity of the requestor. | ||||||
![]() |
acct_no | long | 22 | Aria-assigned account identifier. This value is unique across all Aria-managed accounts. | ||||||
OR | ||||||||||
client_acct_id | string | 50 | Client-defined account identifier. | |||||||
![]() |
cm_comments | string | 1000 | Explanatory text for the credit memo. | ||||||
Start of cm_line_items array | ||||||||||
![]() |
cm_line_items | array |
Array of credit memo lines. Note: If sending multiple line items, you must send the line items in ascending order using the cm_line_no field in the cm_details array for the tax line items to be calculated correctly. |
|||||||
Field Name | Field Type | Max Length | Description | |||||||
![]() |
long | 22 | Sequence number of the original invoice line associated with the credit memo line. | |||||||
![]() |
long | 22 | The reason for providing the credit memo. | |||||||
![]() |
long | 22 | The unique identifier of the master plan instance. | |||||||
OR | ||||||||||
![]() |
string | 100 | Client-defined Master plan Subscription plan instance ID. | |||||||
![]() |
long | 22 | The unique identifier of the master plan instance. | |||||||
OR | ||||||||||
![]() |
string | Client-defined plan instance ID for each assigned supplemental plan. | ||||||||
![]() |
long | 22 | The unique ID for the service this line represents. | |||||||
OR | ||||||||||
![]() |
string | 100 | Client-defined unique for Master plan | |||||||
![]() |
double | 12 | Amount to be credited against the transaction ID (this is tax-inclusive for a tax-inclusive service). | |||||||
![]() |
string | 3000 | Explanatory text for the credit memo line. | |||||||
End of cm_line_items array | ||||||||||
cm_reason_cd | long | 22 | The reason for providing the credit memo. | |||||||
customer_facing_comments | string | 1000 | Customer facing text for the credit memo. | |||||||
orig_invoice_no | long | 22 | Original invoice number reference. | |||||||
credit_ref_type | long | 22 | CM type.Invoice-based=null,General=1, price-change=2, cancellation-=3 | |||||||
do_write | string | 5 | Boolean indicator informing Aria whether or not to actually perform the requested operation. If 'false' is passed in this field Aria will, if applicable, calculate any potential effects stemming 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 wish to present the user with a 'confirmation page' informing of the would-be 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 | |||||||
![]() |
string | 100 | Name of the field you want to associate with this API call. | |||||||
![]() |
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. |
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. |
cm_no | long | The unique Aria-generated number for the credit memo. |
client_cm_seq_id | string | Client-defined credit memo sequence ID. DEPRECATED |
client_cm_seq_id_2 | string | Client-defined credit memo sequence ID. |
created_by | string | User ID that created the credit memo. |
created_date | string | Date the credit memo was created in the system. |
credit_ref_type_out | string | Date the credit memo was created in the system. |
cm_total | double | Amount of the credit memo. |
cm_reason_cd_out | long | Reason code. |
cm_comments_out | string | Explanatory text for the credit memo. |
customer_facing_comments_out | string | Customer facing text for the credit memo. |
cm_details | hash | Array of credit transaction details. |
![]() |
long | The unique Aria-generated number for the credit memo. |
![]() |
long | For a linked CM. the details of about the reference doc. |
![]() |
long | For a linked CM. the details of about the reference doc. |
![]() |
long | |
![]() |
long | The unique identifier of the master plan instance. |
![]() |
long | Reason code. |
![]() |
long | Transaction ID of the original invoice line for the credit. |
![]() |
long | Service number. |
![]() |
string | Client-defined service ID. |
![]() |
long | Transaction ID for the credit memo line. |
![]() |
long | Item Number. |
![]() |
string | Client SKU . |
![]() |
double | Amount of the credit memo line. |
![]() |
long | Reason code. |
cm_tax_details | hash | Array of tax details. |
![]() |
long | Invoice line number associated with the detail tax record. |
![]() |
long | Taxed invoice line number related to this tax record. |
![]() |
double | Amount of the tax credited for the given tax type. |
![]() |
long | Tax jurisdiction code: 0=federal, 1=state/province. |
![]() |
long | Indicates whether or not the invoice line amount associated with the credit memo line was tax inclusive or not. |
![]() |
string | Identifier of the tax type returned by the tax engine. |
![]() |
string | Description of the tax type returned by the tax engine. |
![]() |
string | Category of the tax type returned by the tax engine. |
![]() |
double |
The amount multiplied by tax rate before rounding precision. Also referred to as "raw tax amount." Note: Assuming that the client setting Aria Internal Tax Rounding Method is set to "Per invoice." |
![]() |
double |
The amount carried over from previous <unrounded_tax_amt>. It is a remainder, and its value can be positive or negative (based on the previous remainder). Note: Assuming that the client setting Aria Internal Tax Rounding Method is set to "Per invoice." |
![]() |
double |
The amount of adjusted tax before rounding precision, calculated as the sum of <unrounded_tax_amt> and <carryover_from_prev_amt>. Note: Assuming that the client setting Aria Internal Tax Rounding Method is set to "Per invoice." |
![]() |
double |
The amount carried over from current <unrounded_tax_amt>. It is a remainder, and its value can be positive or negative based on the previous remainder. Note: Assuming that the client setting Aria Internal Tax Rounding Method is set to "Per invoice." |
![]() |
double | Rate at which the tax is calculated for the tax type used by the tax engine. |