Skip to content

Put selling plans

PUT/admin/v1/stores/{store_id}/products/{product_id}/selling-plans
  • products:write

Replaces the product's selling plans: plans left out are retired, and subscriptions on them renew on their terms.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • product_idstringrequired

    The product's ID, like prod_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • plansarray of objectsrequired

    In the order the storefront offers them; plans left out are retired.

Returns

200 Its plans now.

Errors

  • 404not_foundNo such product or plan.
  • 422validation_failedInvalid plans.