Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Solution for "UsageCharge fields have been deprecated: billing_on"

Murgesh
Shopify Partner
7 0 0

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?

Replies 3 (3)
Murgesh
Shopify Partner
7 0 0

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

Liam
Shopify Staff
2677 288 734

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?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Murgesh
Shopify Partner
7 0 0

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?