Create a Usage Record
POST
/v1/usage-records
Create a usage record.
Attributes
quantity
A positive integer representing the usage to be reported.
action
The type of record. One of
increment
- Add the provided quantity to existing records for the current billing period.set
- Set the quantity for the current billing period to the provided quantity.
Defaults to increment
if omitted.
Note
increment
should only be used alongside the “Sum of usage during period” aggregation setting. set
should be only used alongside “Most recent usage during a period” and “Most recent usage” aggregation settings. Read more about aggregation settings.
Relationships
subscription_item
The subscription item this usage record belongs to.
Returns
Returns s Usage Record object.