‘usage_date’ must fall within the period when the ‘item_price’ was active in the subscription

Modified on: Mon, 23 Jan, 2023 at 4:07 PM

Scope

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.


Summary


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



Solution

   

  1. There is an env_prop to handle this error. Open DB —> env_props table—-> prop_name = “app.usages.usage_date.validation”

  2. Raise it to the NOC team by visiting “chargebee.freshservice.com” and wait for the NOC team to add the domain.


Reference Jira:

 https://mychargebee.atlassian.net/browse/ASEL2-18000





  

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×