Skip to content

Conversation

@lucassus
Copy link
Contributor

@lucassus lucassus commented Dec 4, 2025

🚀 New Features

Prepaid Component Rollover & Expiration

We have introduced granular control over how prepaid usage allocations are handled. You can now configure rollover logic and expiration intervals directly via the API.

  • New Fields in Component-Custom-Price:
    • renew_prepaid_allocation: (Boolean) Controls whether the allocated quantity renews each period.
    • rollover_prepaid_remainder: (Boolean) Controls whether remaining units roll over to the next period.
    • expiration_interval: (Integer) Defines the number of units after which rollover amounts expire.
    • expiration_interval_unit: (String) The interval unit (month or day) for rollover expiration.

Enhanced Usage Reporting

  • Custom Pricing: You can now pass a custom_price object when reporting usage, allowing you to define pricing schemes (tiered, volume, etc.) on the fly for specific usage events.
  • Flexible Path Parameters: The usage endpoint now supports passing a Subscription Reference string in place of the Subscription ID.
    • Path: /subscriptions/{subscription_id_or_reference}/components/{component_id}/usages.json.

Coupon Enhancements

  • Subcodes: Added support for Coupon Subcodes. You can now pass a subcode when previewing renewals or creating invoices to apply specific discounts. The API response will return both the main code and the subcode used.
  • Filtering: Added the include_archived boolean to the List Coupons filter, allowing you to retrieve archived coupons.

@lucassus lucassus self-assigned this Dec 4, 2025
@lucassus
Copy link
Contributor Author

lucassus commented Dec 9, 2025

I couldn’t find anyone to review it, so I’m just merging it as-is.

@lucassus lucassus merged commit 65464a1 into main Dec 9, 2025
1 check passed
@lucassus lucassus deleted the publish branch December 9, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant