Solution for "UsageCharge fields have been deprecated: billing_on"

Hi,

I have an API health indicator on my app dashboard. When I opened the API Health dashboard, I got this message: "As of API version 2023-10, we’re deprecating the billing_on field on the UsageCharge resource in the Admin REST API", So I started looking for solutions which I didn’t get. I also looked into the documentation (https://shopify.dev/docs/api/admin-rest/2023-10/resources/recurringapplicationcharge) where Shopify still shows the “billing_on” parameter.

So is there any solution for this?

I have visited documentation for the same, but they haven’t mentioned any new approach or alternative for it.

Hi Murgesh

So the billing_on property is still available on the RecurringApplicationCharge resource, but it’s not going to be available on the UsageCharge resource. Can you update your app to use the RecurringApplicationCharge resource?

Hi Liam,

As you are saying to update the app to use the “RecurringApplicationCharge” but I have this doubt about what field to use as an alternative to “billing_on” since I have used it in my app and removing will cause many issues so there has to be some alternative to it, right?