This article covers
Why am I receiving this error: ‘usage_date’ must fall within the period when the ‘item_price’ was active in the subscription. How to resolve this error?
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 8th of June till present date. For before/After dates you will receive this error. This is an expected product behavior.
Things to understand:
- Subscription that's mentioned; Does the record have a pending invoice?
- Is the usage already added or not?
- If so, why is the usage being added before the billing period? Can one-time invoices work for them here?