Query Available subscriptions contracts

ThiagoMine
New Member
6 0 0

I'm developing a subscription app using post-purchase extension for it, I have several subscriptions example made in orders, but when I try to query available contracts to show this information in app admin the query don't return any contracts.

 

I'm using the suggest query in the documentation: https://shopify.dev/apps/subscriptions/contracts#query-the-available-contracts-on-a-store, but no results, some one have a clue of what I maybe missing here?

Replies 3 (3)
J-ROM
Shopify Staff
9 2 3

Hey ThiagoMine,

Thank you for your patience. Is this problem still persisting today? If so, does the query return any error, or just an empty list of subscriptions contracts though you know some exist. Could you share the store URL so I could try the documentation's query on it?

Cheers,
Jerome

ThiagoMine
New Member
6 0 0

Hi Jerome

The problem persist, here is the link of the store

https://linkerdots-test.myshopify.com/

J-ROM
Shopify Staff
9 2 3

Hey ThiagoMine,

 

I see no subscription contract, which is consistent with the query's response.

However, I see some subscription drafts (aka not active yet). You'd need to update them to set the pricing and delivery policies, add line items and then commit them to turn them into subscription contracts you can retrieve. Hope this helps.

Cheers,
Jerome