Enable or disable an OnOff Feature (write)
push_usage_enablingTurn an OnOff Feature on or off in a customer's active subscription. Values are absolute, so repeated calls are safe; quote the change first when enabling is billable.
Instructions
WRITE. Enables or disables an OnOff Feature in the active subscription of a customer -- an option they switch on or off. OnOff Features only; use push_usage_increment for a metered Feature and push_usage_quantity for a Limitation one. The value is absolute, so repeating the call is harmless. Note that what the application must then enforce is IsEnabled, not IsIncluded: a Feature included in the offer can still be switched off. Quote it first with quote_usage_change when enabling is billable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_stamp | No | When the change happened, ISO 8601 in UTC. Defaults to now. A future date is not supported. | |
| is_enabled | Yes | true to enable the Feature, false to disable it. | |
| 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. |