Terminate Contract
Terminate an active or completed contract. A contract can have one termination that is not archived. The request fails when termination_date is before the contract start_date or in a locked period, when the contract has paid invoices after termination_date, or when posted revenue subledger lines exist after that date.
Side effects
- With a
termination_dateof today or earlier, DualEntry posts this termination and sets the contractstatustoterminated. DualEntry archives the contract invoices and revenue recognitions dated aftertermination_date, archives the open milestones after that date, and stops the auto-renewal of the contract obligations. - With a
termination_dateafter today, DualEntry saves this termination asdraftand posts it on that date. - A
refundtermination moves the remaining deferred revenue torefund_credit_account_idand stores that total inrefund_amount. - An
accelerated_recognitiontermination recognizes the remaining deferred revenue ontermination_date. - An
early_termination_feeabove zero creates an invoice for the fee, datedtermination_date.
Authorizations
Headers
Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.
255Body
Response
Created