Skip to main content
MeridianAccountPage is the merchant’s side of billing inside your app: what plan they are on, how much of their allowance they have used, and the controls to change or cancel.
It needs a MeridianProvider ancestor and an embedded Shopify app with App Bridge loaded.
The page reads fine anywhere, but its billing actions (Cancel subscription, Raise cap and Keep ) require your app to be hosted on Meridian. Hosted elsewhere, they fail with PLAN_BUILDER_UNAVAILABLE.

Props

What it shows

The current plan’s name, and a badge that reads Active or Paused. Paused means Shopify could not take the last payment. The page tells the merchant that Shopify will retry automatically and that they should update their payment method in the Shopify admin. See Merchant subscription.

A scheduled change

While a downgrade or a cancellation waits for the end of the paid period, the page opens with the same banner as the pricing page: “Your plan changes to Basic on November 30, 2026.” or “Your Pro subscription ends on November 30, 2026.”, with “Choosing another plan replaces this change.” The summary below it still shows the current plan, which the merchant keeps until that date. Once the date has passed and Meridian has applied the change, usually within a few minutes, the page updates by itself to the new plan, or to the empty state after a cancellation, with no reload. Keep Pro undoes the change while it can still be undone. When keeping the plan needs a new approval, the banner adds “You will approve Pro again on Shopify.”, the button sends the merchant to Shopify, and Shopify returns them to your returnUrl. The page confirms the charge when they come back, and the banner goes once Meridian reports nothing scheduled. Point returnUrl at the route that renders this page so that check runs. See Keeping the current plan. Without a returnUrl, the provider falls back to window.location.href, which inside the embedded admin is the iframe URL, so the SDK rejects it before the call and Keep shows the error. Keeping a plan that needs no approval works either way. After Keep, with or without an approval, the page keeps reading the shop’s state until Meridian reports nothing scheduled, for up to a minute. Keep, Cancel subscription and the other billing buttons stay disabled meanwhile, so the merchant cannot start a second action on top of it. If the state has still not caught up after that minute, a banner says “Account details have not refreshed. Try refreshing them again.” with a Refresh account details button. That button only reads the state again: it never repeats the undo. Keep can also meet a change that has moved on:
  • Clicked just after the date, the change has already taken effect. The page refreshes and shows the new plan, or the empty state after a cancellation.
  • Clicked on a cancellation in its last 24 hours, from a page loaded earlier, it reads “Cancellations cannot be undone in the final 24 hours of the billing period.”
  • If another plan change for the store is still going through, the banner shows “Another plan change for this store is still going through. Try again in a moment.” and the merchant can click again.

Usage this period

One row per metered event on the shop’s plan: the event’s name, how much has been consumed against what is included, and a bar. Going over the included quantity turns the row and its bar red and adds an Over limit badge. For an event that actually bills overage, the row also states the overage rate, the unit it applies to, and the monthly cap (“Overage $0.10 per 10 translations, capped at $5.00/mo”), and offers Raise cap. The unit is worded the same way as on the pricing page. A priced usage view states its cap but not its rate (“Overage billed on usage, capped at $200.00/mo”), because its rate can be a percentage.

Raising the cap

Shopify’s usage charges are bounded by a capped amount the merchant approves. Billing stops when they reach it, and raising it needs their approval again. Raise cap opens a dialog pre-filled with double the current cap. The new value has to be greater than the current one (a lower or equal cap is rejected on the field), and confirming sends the merchant to Shopify to approve it. The new cap takes effect only once the merchant approves it. Until Shopify reports the approved figure, cappedAmount in the shop’s entitlements keeps the cap Shopify is enforcing, so a request the merchant declines or walks away from changes nothing. Meridian learns of the approval from Shopify’s subscription update, or sooner when the merchant comes back to your app and it confirms the subscription. The cap can only be raised on a subscription Shopify is billing. Right after a subscribe, before Shopify has activated the new subscription, and during a scheduled change once Shopify no longer bills the current one, the dialog says “Your subscription is not ready for cap changes yet. If you just subscribed, try again shortly.” The merchant can submit again from the same dialog.
The dialogs are Polaris modals. window.confirm and window.prompt are silently suppressed inside the embedded admin’s cross-origin iframe, so a flow built on them appears to do nothing.

Cancelling

Cancel subscription asks for confirmation. On a paid plan, the cancellation takes effect at the end of the period the merchant has paid for, and the dialog says so: Meridian works out the dialog’s text and sends it with the shop’s state, and decides again when the merchant confirms, so the dialog only previews it. See Plan changes. A cancellation at the end of the period leaves the plan and its feature gates in place until the date. The page shows the scheduled change banner, and Cancel subscription stays hidden while the cancellation is scheduled. A cancellation that applies at once clears the shop’s plan, so gates stop granting on the next refresh. Either way the page updates itself. onCanceled is for anything else your app needs to do. If another plan change for the store is still going through, the cancel is refused with “Another plan change for this store is still going through. Try again in a moment.” Nothing is cancelled, and the merchant can confirm again.

When there is no plan

A shop with no subscription gets an empty state instead of the summary. Right after the merchant cancels from this page with a cancellation that applies at once, it reads “Choose a plan to get your features back.” instead of the new-install wording. Both show a View plans button when you passed onChangePlan. A newly installed shop lands here, so pointing onChangePlan at your pricing page completes the upgrade path.

Reading the same data yourself

Everything on this page comes from the snapshot useMeridian exposes: entitlements for the plan, its paused state and per-event usage, entitlements.subscription for the period end and the scheduled change, and plans for the configured terms. Keep is undoScheduledChange(). Server-side, getMe and getCustomer return the same payload.
Last modified on November 10, 2026