Consolidates billing mode configuration across Billing productsBreaking changes
What’s new
We’ve unified the billing_
parameter and field format across all billing endpoints. The billing_
parameter now uses a consistent object format with a type
field, replacing the previous string format. We’ve also consolidated the billing_
field into the main billing_
object.
Why is this a breaking change?
The billing_
parameter and field changed from accepting a string value (classic
or flexible
) to requiring an object with a type
field (for example, {type: 'flexible'}
). Additionally, the separate billing_
field has been removed, and its updated_
property is now included directly in the billing_
object.
Impact
You need to update your integration if you currently use the billing_
parameter or access the billing_
field in API responses.
Before:
{ "billing_mode": "flexible", "billing_mode_details": { "updated_at": 1234567890 } }
After:
{ "billing_mode": { "type": "flexible", "updated_at": 1234567890 } }
This change affects the following API endpoints and resources: