Report consumption of a metered Feature (write)
push_usage_incrementAdd an increment to a customer's Consumption Feature quantity for metered usage. Report only new consumption, not a running total, and avoid duplicate sends.
Instructions
WRITE. Adds an increment to the current quantity of a Consumption Feature of a customer -- the metered kind: messages sent, API calls made, gigabytes stored. Report what was just consumed, not a running total: the value is added to what ProAbono already holds. Consumption Features only; use push_usage_quantity for a Limitation Feature and push_usage_enabling for an OnOff one. A repeated call double-counts -- there is no absolute mode to fall back on for a metered event, so the caller is responsible for not sending the same consumption twice, including on a retry after a timeout. Quote it first with quote_usage_change when it is billable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| increment | Yes | Quantity consumed since the last report. Added to the current quantity. | |
| date_stamp | No | When the change happened, ISO 8601 in UTC. Defaults to now. A future date is not supported. | |
| feature_ref | Yes | Shared reference of the Feature (ReferenceFeature). | |
| customer_ref | Yes | Shared reference of the customer. | |
| subscription_id | No | Which subscription the Usage belongs to. Needed when the customer has several running. |