Skip to content

Act on subscription

POST/admin/v1/stores/{store_id}/subscriptions/{subscription_id}/{action}
  • customers:write
  • Idempotency-Key supported

Skips the next renewal, pauses, resumes or cancels.

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.

  • subscription_idstringrequired

    The subscription's ID, like sub_01k8qs5s….

  • actionenumrequired

    skip, pause, resume or cancel

    • skip
    • pause
    • resume
    • cancel

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

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

Returns

200 The subscription now.

Errors

  • 409It was cancelled (subscription_cancelled).