Selling plan data in Subscription app extension

Solved
Muttahhar
Tourist
5 0 1

Hi,

I am creating a subscription app extension by following this doc: https://shopify.dev/apps/subscriptions/app-extensions/create

My question is how can I show the SellingPlanGroups and Product data in the app extension for the 'Add' and 'Edit' modes?
The only data available is the ProductId, VariantId, and SellingPlanGroupId, and to my knowledge, the only way to query data using only Ids is the Admin API. So should I use my app as middleware to fetch the data or is there any other way to do this?

Thanks.

0 Likes
qc11
Shopify Staff
Shopify Staff
16 6 5

This is an accepted solution.

Hi, Yes you should use your app to query the data from admin API and pass it back to your extension.

0 Likes