Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Query App charges for all apps installed in a store

Solved

Query App charges for all apps installed in a store

marvinbaltazar
Shopify Partner
8 0 0

Hello,

 

The Shopify GraphQL API provides a way to query App purchases for a given store as described here: https://shopify.dev/docs/apps/billing/reporting#query-multiple-purchases.

 

In the example query, it says to use currentAppInstallation  if you want to query multiple App purchases. Does this only include purchases made on the App that is running the query?

 

For example, let's say a store has App A and App B installed.

Using App A to query the GraphQL API, is it possible to retrieve all App purchases/subscriptions for both App A and App B, or would the data be limited to App A only?

Accepted Solution (1)

SBD_
Shopify Staff
1831 273 423

This is an accepted solution.

Hey @marvinbaltazar 

 

Apps can only query their own purchases/subscriptions.

Scott | Developer Advocate @ Shopify 

View solution in original post

Replies 2 (2)

SBD_
Shopify Staff
1831 273 423

This is an accepted solution.

Hey @marvinbaltazar 

 

Apps can only query their own purchases/subscriptions.

Scott | Developer Advocate @ Shopify 

marvinbaltazar
Shopify Partner
8 0 0

Thanks @SBD_ !