Solved

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

ericute
Shopify Partner
57 4 7

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
57 4 7

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
57 4 7

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.