How to handle the error message “ ‘usage date’ must fall within the period when the item price was active in the subscription”?
Not able to add usage because of the error - ‘usage date’ must fall within the period when the item price was active in the subscription.
This error usually comes If you are trying to create usages for a subscription via UI/API and it throws an error ‘usage_date’ must fall within the period when the ‘item_price’ was active in the subscription then you need to check the usage date and the billing cycle period you are trying to add the usages for.
Error Via API :
Error Via UI :
For example, if the subscription is created and items (first usage) were added on the 8th of June, then you can only add usages from the 8th of June till the present date. For before/After dates you will receive this error
There is an env_prop to handle this error. Open DB —> env_props table—-> prop_name = “app.usages.usage_date.validation”
Raise it to the NOC team by visiting “chargebee.freshservice.com” and wait for the NOC team to add the domain.