Contracts
Edit a contract
The ability to edit a contract helps you react quickly to the needs of your customers and your business.
Use this endpoint to:
- Encode mid-term commitment and discount changes
- Fix configuration mistakes and easily roll back packaging changes
Key response fields:
- The
idof the edit - Complete edit details. For example, if you edited the contract to add new overrides and credits, you will receive the IDs of those overrides and credits in the response.
Usage guidelines:
- When you edit a contract, any draft invoices update immediately to reflect that edit. Finalized invoices remain unchanged - you must void and regenerate them in the UI or API to reflect the edit.
- Contract editing must be enabled to use this endpoint. Contact us via the Metronome support portal to learn more.
POST
Edit a contract
Authorizations
Body
application/json
Contract and customer IDs and fields to update
Optional list of subscriptions to add to the contract.
If true, allows setting the contract end date earlier than the end_timestamp of existing finalized invoices. Finalized invoices will be unchanged; if you want to incorporate the new end date, you can void and regenerate finalized usage invoices. Defaults to true.