How to integrate an upsell app with subscription apps on a platform?

Hey folks,

We have an upsell app on Shopify and are looking to integrate it for subscriptions. Would like to know the best way to get this done so it directly supports with the subscription apps that are using native Shopify checkout. I know there are few apps which are already doing that but would like to know the right flow for integration.

Is getting the selling plans and storing that on our end is the only way to do that? Would really appreciate if I can get a basic idea and the right way to build this integration.

Thanks in advance.

1 Like

Hello @Sinchain ,

Store the subscription plans - Most important, When merchants sell subscription products, those product are assigned a selling plan. When you write scripts, you can use the lineitem object .selling_plan_id to identify when a product is being bought as a subscription.

Grab the subscription plans from the supported apps and store them in your upsell app.

Useful links:

https://help.shopify.com/en/manual/checkout-settings/script-editor/scripts-subscriptions

https://shopify.dev/apps/subscriptions/selling-plans