Report consumption of a metered Feature (write)
add_feature_consumptionAdd a metered usage increment to a customer's consumption feature in ProAbono, reporting the amount consumed since last report.
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 set_feature_current_quantity for a Limitation Feature and set_feature_enabled 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. |