editContract
endpoint.
When you edit a contract, any draft invoices update immediately to reflect that edit. Finalized invoices remain unchanged. If you void and regenerate a finalized invoice, the regenerated invoice updates to reflect the edits you made.
ending_before
date to the end of the contract termProduct | Applied commit or credit | Price | Quantity | Total |
---|---|---|---|---|
Data Reads | Commit A | $10 | 10 | $100 |
Data Writes | $5 | 10 | $50 | |
Total | $50 |
Product | Applied commit or credit | Price | Quantity | Total |
---|---|---|---|---|
Data Reads | Commit A | $10 | 3 | $30 |
Data Writes | $5 | 2 | $10 | |
Total | $10 |
Product | Applied commit or credit | Price | Quantity | Total |
---|---|---|---|---|
Data Reads | Commit A | $10 | 3 | $30 |
Data Writes | Commit A | $5 | 2 | $10 |
Total | $0 |
Product | Applied commit or credit | Price | Quantity | Total |
---|---|---|---|---|
Data Reads | Commit A | $10 | 10 | $100 |
Data Writes | $5 | 10 | $50 | |
Total | $50 |
getEditHistory
endpoint returns all edits ever made to a contract. This includes any edits made through:
editContract
endpointupdateEndDate
API endpointsetUsageFilters
endpointas_of_date
parameter on the getContract
endpoint.
This example response shows the full state of the contract after the first edit but before the second edit. It takes the created_at
time for the first edit and passes that into the as_of_date
parameter in getContract
.