Selling plan data in Subscription app extension

Solved
Muttahhar
Shopify Partner
9 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.

Accepted Solution (1)

Accepted Solutions
qc11
Shopify Staff
Shopify Staff
33 12 8

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.

View solution in original post

Reply 1 (1)
qc11
Shopify Staff
Shopify Staff
33 12 8

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.