Override amount and terms with Usage Based subscription request

Hi Dear Community,

I’m using the latest JS SDK:

@shopify/shopify-api”: “^11.13.0”,
@shopify/shopify-app-express”: “^5.0.18”,
@shopify/shopify-app-session-storage”: “^3.0.18”,
@shopify/shopify-app-session-storage-postgresql”: “^4.0.18”,

I’m trying to set a different amount and different terms from the configured ones for the plan, for some stores based on their data, to make them a better offer.

I do manage to override Trial days successfully using the same code, however amount and usageTerms overrides don’t seem to work.

Example:
const params: BillingParams = {
session,
plan,
isTest,
trialDays: 5,
amount: 9.99,
usageTerms: starterTierTermsSmallStore
};

Please advise how to approach this and whether this is at all doable?

Sincerely,
Michael

1 Like

Hey @Michael_Ra :waving_hand: - Hopefully I’m understanding your question here, but right now the price on a recurring subscription is essentially locked in when the plan is created. If you need different pricing you have to create (or switch the merchant to) a new plan; the existing one can’t be edited in-place (there’s a bit more info here).

The one exception is usage caps which you mention above — you can raise or lower the cappedAmount for a usage line-item with the appSubscriptionLineItemUpdate mutation (the merchant must still approve the change though).

Hope this helps/is what you’re looking for - let me know if I can clarify or help further!

Hey Alan! Pleasure to e-meet you. You were spot on, we indeed arrived to the same conclusion to basically add another plan with different terms and pricing.

1 Like