Sets the credit rate override for a subscription. If the subscription has no override for the metered feature, this creates one as version 0. If it already has one, this replaces it with a new version. Either way the override applies as soon as it is set, in place of the feature-level credit rate, and usage that was already converted into credits is not re-priced.
The request describes the whole override: nothing is carried over from the previous version, so pass every field you want the override to have. The credit unit is taken from the feature-level credit rate and cannot be changed.
The new override version stores this value in credit_rate_version: the version of the feature-level credit rate the subscription would use without an override.
Prerequisites & Constraints
- The metered feature must already have a feature-level credit rate.
Implementation Notes
- To return the subscription to the feature-level credit rate, use Remove a credit rate override.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
The identifier of the subscription the override applies to.
Determines how usage is converted into credits for this subscription. See Conversion models.
Every unit of usage costs credit_cost credits. Do not pass package_size.
Usage is charged in packages of package_size units, and each package costs credit_cost credits. Packages are counted on the total usage in the billing term, and a partly used package is charged as a full package.
Returns
The override version that was created: version 0 for a new override, otherwise the next version.