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
2731 299 769

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?