API to build Subscription Analytics?

Solved

API to build Subscription Analytics?

Wolfram_Müller
Shopify Expert
12 0 6

Hi everyone,

 

I asked this question via Partner Support, but they pointed me to this forum.

 

My question was:

 

I was looking into building an app with the newly released Subscription APIs.

By looking at the API docs, I realized that only the app that created the subscription has access to it via the APIs. Is that correct?

Is there another API that I'm not aware of, that lets my app get subscription data for a store, for all subscriptions (nomatter what app created it)?

The reply was:

 

The Subscription API's contracts are specific for the app that is using them. So for example if a subscription app creates a subscription for a specific product, only that app that created it can see the specifics of the contract.

As you mentioned though, this information you need for analytics may be available in the orders. I would look at the documentation on Building subscription apps to see if there are any unique identifiers that are added to subscription orders that you can access in the orders.

I couldn't find anything in the documention, and looking through the API docs. I think, it currently is not possible to identify orders or transactions that are made through a subscription.

 

I thought I would open this thread anyways, maybe I missed something? Or maybe Shopify will think about adding those endpoints in the future, if there is enough interest?

Accepted Solution (1)

diegolippel
Shopify Staff
19 4 6

This is an accepted solution.

Hello there!

 

Unfortunately, an app can only see subscriptions that it owns (created).

But we are considering changing this in the future. Thank you for reaching out!

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

diegolippel
Shopify Staff
19 4 6

This is an accepted solution.

Hello there!

 

Unfortunately, an app can only see subscriptions that it owns (created).

But we are considering changing this in the future. Thank you for reaching out!

To learn more visit the Shopify Help Center or the Community Blog.

simonbarnes
Shopify Partner
2 0 0

Hey! 

 

Was there potentially any update on changing this in future? We'd love to deliver some custom reporting for the merchants we support, but it's hard to do when we can't see all the contracts.

 

Cheers,