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.

Is it possible to update the price of an existing subscription using subscriptionDraftUpdate?

Solved

Is it possible to update the price of an existing subscription using subscriptionDraftUpdate?

ericute
Shopify Partner
63 5 14

I am trying to update an existing subscription so that the next cycles will have a computed price against an updated price. I looked into the mutations I can use and this is the closest I found: https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/subscriptionDraftUpdate. However, in the inputs of this mutation, there's no price/amounts for the subscription itself, only for the delivery.

 

Is it even possible to update the price of an existing subscription?

Accepted Solution (1)

ericute
Shopify Partner
63 5 14

This is an accepted solution.

Upon checking, this mutation can be used: https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/subscriptionDraftLineUpdate since the price of a subscriptions is on a per line basis. 

View solution in original post

Reply 1 (1)

ericute
Shopify Partner
63 5 14

This is an accepted solution.

Upon checking, this mutation can be used: https://shopify.dev/docs/api/admin-graphql/2024-04/mutations/subscriptionDraftLineUpdate since the price of a subscriptions is on a per line basis.