[Bug] Shopify App Pricing: Final Usage Charge Incorrectly Becomes $0 After App Uninstall

[Bug] Shopify App Pricing: Final Usage Charge Incorrectly Becomes $0 After App Uninstall

Hi Shopify team,

I’m reporting a billing issue with Shopify App Pricing and usage-based billing that has already been confirmed by Shopify Partner Support as a platform-side bug.

The issue occurs when a merchant uses a metered app and then uninstalls it before the end of the billing cycle. In one confirmed case, the final usage charge was incorrectly recorded as $0.00, despite the merchant having generated billable usage before uninstalling.

This is particularly concerning for usage-based apps that deliver their value immediately, since merchants may legitimately uninstall the app shortly after completing a task.

1. Billing Configuration

Our app uses Shopify App Pricing with the following configuration:

  • Pricing model: Usage-based billing

  • Monthly subscription base fee: $0

  • Usage meter: Number of images exported

  • Pricing structure: Graduated tiers

  • Usage reporting: Shopify App Events API

  • Billing managed by Shopify App Pricing

The app tracks completed usage in its own system and reports metered events to Shopify for billing.

2. Observed Behavior

The following sequence occurred with an affected merchant:

Step 1 — Subscription activation

The merchant installed the app and activated the usage-based plan.

Step 2 — Billable usage

The merchant used the app to export images, generating a nonzero usage amount according to our application records.

Step 3 — App uninstall

The merchant uninstalled the app shortly afterward, before the end of the billing cycle.

The Partner API recorded:

  • RELATIONSHIP_UNINSTALLED

  • SUBSCRIPTION_CANCELLATION_SCHEDULED

Step 4 — Billing cycle finalization

Approximately one billing cycle later, Shopify generated:

  • CHARGE_USAGE with amount = 0.00

  • SUBSCRIPTION_CANCELED

The final usage charge was zero, despite the previously recorded usage.

No corresponding positive usage earning appeared in our Partner API transaction history.

3. Expected Behavior

For usage events that were successfully validated as billable before uninstall, Shopify should preserve the accumulated metered usage and calculate the correct final usage charge.

Uninstalling an app should not cause previously billable usage to be lost or reset.

4. Additional Observation: Plan Change vs. Direct Uninstall

We observed a different billing sequence with another merchant.

In that case:

  1. The merchant activated the same usage-based plan.

  2. The merchant generated billable usage.

  3. The merchant switched from the usage-based plan to the Free plan.

  4. Shopify generated a positive CHARGE_USAGE event at the time of the plan change.

  5. The merchant then uninstalled the app.

This differs from the affected case, where the merchant uninstalled directly from the usage-based plan and a zero-value usage charge was generated at finalization.

We have not established that the plan change itself is responsible for this difference.

However, it may be useful for Shopify’s billing engineering team to compare the usage finalization paths for:

  • Usage-based plan → Free plan → Uninstall

  • Usage-based plan → Direct uninstall → End-of-cycle cancellation

5. Shopify Support Confirmation

We reported the original incident through Shopify Partner Support.

The support team confirmed that the incorrect $0.00 final usage charge was caused by a platform issue on Shopify’s side, and that the billing engineering team was investigating it.

However, we have not yet received confirmation that the issue has been fixed or that the affected usage charges can be recovered.

6. Potential Impact

This issue could have significant financial implications for developers using usage-based billing.

For apps such as data exporters, migration tools, and batch-processing utilities, it is normal for merchants to:

  1. Install the app.

  2. Complete a large amount of billable work.

  3. Uninstall the app after finishing their task.

We currently have other merchants with accumulated usage charges and scheduled subscription cancellations whose billing cycles will end soon.

We are concerned that those charges could potentially be affected by the same issue.

Importantly, this is not simply a case of a merchant failing to pay an invoice. The confirmed incident involved Shopify generating an incorrect zero-value final usage charge.

7. Questions for Shopify Engineering

Could the Shopify team please clarify the following?

  1. Fix status: Has the confirmed billing bug been identified, fixed, and deployed to production?

  2. Affected scenarios: Is this limited to usage-only plans with a $0 base fee, or could it also affect hybrid subscription-plus-usage plans?

  3. Root cause: Is there a known issue with metered usage aggregation or finalization when a subscription is canceled following an app uninstall?

  4. Detection: Is there a reliable way for developers to verify that accumulated billable usage will be preserved and correctly charged after uninstall? We understand that an HTTP 202 response from the App Events API does not guarantee successful billing validation.

  5. Mitigation: Is there any supported workaround to prevent this issue for merchants whose billing cycles have not yet ended?

  6. Recovery: Will Shopify automatically reprocess or compensate charges affected by this bug, including those already finalized at $0?

We can provide the affected app ID, shop ID, relevant event timestamps, and support ticket reference privately to Shopify staff for further investigation.

Given the potential revenue impact on usage-based apps, confirmation of the current fix status and any available mitigation would be especially helpful.

Thank you.

Hi @yuangwya,

Thanks for the detailed report. We can confirmed this is a Shopify-side issue, not a problem with your App Events integration.

When an uninstall schedules cancellation at the end of a billing cycle, the final usage charge can use the wrong billing window. This can produce a CHARGE_USAGE event for 0 units and $0.00, even though Shopify recorded usage for the completed cycle.

Current status:

  • The issue remains open, with no confirmed fix date.
  • It can affect usage-only and hybrid plans.
  • There is no supported workaround that guarantees correct finalization after an uninstall.
  • We can’t yet confirm automatic recovery for charges already finalized at zero.

Continue submitting pending pre-uninstall events within the documented 24-hour window. This prevents late events from being rejected with PERIOD_CLOSED, but it doesn’t prevent this finalization issue.

A 202 response confirms receipt only. Continue checking Dev Dashboard → Logs → App Billing Event and reconciling Shopify’s totals against your own usage ledger. Don’t resend accepted usage under new idempotency keys to correct a zero charge.

Please keep the affected identifiers in your existing Partner Support case rather than posting them publicly. That case is also the correct place for any account-specific recovery decision.

Hi @yuangwya,

Thanks for your patience while we investigated this.

The Shopify-side issue has now been fixed and fully rolled out. It occurred when an uninstall scheduled cancellation exactly at a billing-cycle boundary. The final usage charge could then use the newly opened cycle instead of the cycle that had just ended, resulting in a charge for 0 units and $0.00.

Shopify now uses the completed cycle when calculating final usage in this scenario. We’ve verified that subscriptions ending through this deferred-cancellation flow now generate their final usage charge correctly. No changes are required to your App Events integration.

This issue was not limited to usage-only plans or plans with a $0 base fee. It affected the metered component of applicable plans, including hybrid plans.

We also identified previously affected partner earnings and completed billing adjustments for the records found during our review. Account-specific details can’t be confirmed in this public thread, so you can check your Partner Dashboard and continue through your existing Partner Support case if an expected adjustment is missing.

You should continue submitting any remaining pre-uninstall events within the documented 24-hour window. There is no need to switch plans before uninstalling or resend already accepted events.