Skip to main content
Aria Knowledge Central

cancel_instance_contract_m Guide

The cancel_instance_contract_m API cancels an existing multi plan instance contract for a specified account holder and one or more plan instances.

API Specification:

cancel_instance_contract_m

Required Fields:
  • <client_no>
  • <auth_key>
  • <acct_no> or <client_acct_id>
  • <contract_no> or <client_contract_id>
Sample Call and Response: cancel_instance_contract_m Sample Call and Response

Additional Guidance

If the contract you cancel is a Terminate Service and Billing and Prorate Final Invoice (Type 7) contract for which Aria already issued the prorated final invoice, the Action on Cancelling Contract Having Final Prorated Invoice client parameter governs what happens to that invoice and the plan instance's bill anniversary date.

  • Set to 0 (default): Aria resets the bill anniversary date to the next standard billing period.
  • Set to 1: Aria issues a credit memo for the prorated invoice lines and generates a full-period invoice for the plan instances under the contract, preserving the original bill anniversary date. The full-period invoice reflects the plan instance's current state, including any plan or unit changes made after Aria issued the prorated invoice.

Aria cancels the contract even if it cannot complete the credit memo or billing date rollback, for example if a credit memo was already issued manually for the invoice. When this happens, the API returns a <contract_final_invoice_cancel_errors[]> array describing each affected invoice, rather than blocking the cancellation. Each entry in the array includes the following fields:

  • <invoice_no>
  • <error_code>
  • <error_msg>

View a full list of contract-related configuration settings.

Input Field
Field Name Notes
<close_status>

Contract Closure Status (per the allowable values legend)

Allowable values:

Values Description
-1 CANCELLED
-2 TERMINATED

Error Codes

Error Code/Description Associated Inputs

1001: unexpected error

 

1004: authentication error

<auth_key>, <client_no>

1009: account does not exist, Account not found: AriaNo (acct_no), Account not found: Userid (userid), or Account not found: ClientId (client_acct_id)

<acct_no>, <client_acct_id>

25020: Illegal characters entered

All character field inputs like <update_comments>

16001: contract does not exist

<contract_no>, <client_contract_id>

16028: This contract cannot be cancelled or terminated because it already was cancelled, terminated or expired.

<contract_no>, <client_contract_id>

16003: Invalid Contract Closure Status

<close_status>
TOP
  • Was this article helpful?