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.

Deletion / Credit of Usage Records

idango
Shopify Partner
14 0 2

Hi,

 

We recently started developing a feature that is based on the App Usage, but we don't see how a Usage Record can be credited or canceled.

 

Is there any way to do so?

Reply 1 (1)

Liam
Shopify Staff
2659 287 726
Hi Idango,
 
From looking into this, it doesn't seem like there is an option to directly cancel or credit an App Usage Record. Once a UsageCharge has been created and accepted, it cannot be cancelled. It can only be adjusted by creating a separate `ApplicationCredit` event.
 
However, you should note that usage charges are billed separately from recurring application charges and one-time application charges. If an app doesn't use the full amount of its usage charge, then the unused amount can't be refunded. If you've made a mistake in a usage charge, you should create a new usage record with the corrected price. 

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