Edit a commit
Edit specific details for a contract-level or customer-level commit. Use this endpoint to modify individual commit access schedules, invoice schedules, applicable products, invoicing contracts, or other fields.
Usage guidelines:
- As with all edits in Metronome, draft invoices will reflect the edit immediately, while finalized invoices are untouched unless voided and regenerated.
- If a commit’s invoice schedule item is associated with a finalized invoice, you cannot remove or update the invoice schedule item.
- If a commit’s invoice schedule item is associated with a voided invoice, you cannot remove the invoice schedule item.
- You cannot remove an commit access schedule segment that was applied to a finalized invoice. You can void the invoice beforehand and then remove the access schedule segment.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Commit and customer IDs and fields to update
ID of the customer whose commit is being edited
ID of the commit to edit
Updated name for the commit
Updated description for the commit
ID of contract to use for invoicing
Which products the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.
Which tags the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.
List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.
If multiple commits are applicable, the one with the lower priority will apply first.
If provided, updates the commit to use the specified rate type for current and future invoices. Previously finalized invoices will need to be voided and regenerated to reflect the rate type change.
LIST_RATE, list_rate, COMMIT_RATE, commit_rate Optional configuration for commit hierarchy access control
Response
Success