Contract Items
Upserts a usage record
Creates usage records on dates where previously no usage was recorded. Overwrites usage records on dates where usage was previously recorded already. While a change to the contract waits for approval, usage is refused with a 400: it would add invoices the approver never saw. Record it once the change is approved, rejected or cancelled.
patch/contract-items/{contract_item_id}/usage
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
contract_item_idstring required
UUID of the contract line item that carries the usage-priced product.
Request body
Example request
{
"usage": [
{
"quantity": 1
}
]
}Response
OK
Example response
{
"usage": [
{
"quantity": 1
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.