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.

Add Products in the Subscription Contract

Add Products in the Subscription Contract

RobinKaith
Shopify Partner
27 2 2

Hi Everyone, 

 

I am a Shopify app developer, I am using the subscriptions API to add products to the existing contract but the API allows us to add a single line item at a time, due to that I have to call the API in the loop to add multiple line items in the contract. Is there any way to pass the array of line items in the API?

 

Please Help!

Replies 2 (2)

Philibert_Dugas
Shopify Staff
37 14 16

Heya,

 

We don't currently have a mutation to add multiple line items to a contract. Could you provide a bit more details on your use case? (is this a merchant-facing feature? Buyer-facing feature? both?)


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

RobinKaith
Shopify Partner
27 2 2

Hi,

 

This  feature is for both, the merchant and buyer can add products in their existing contracts.