Skip to content

Act on my subscription

POST/store/v1/customers/me/subscriptions/{subscription_id}/{action}
  • Idempotency-Key supported

Skips the next renewal of one of the customer's subscriptions, pauses, resumes or cancels it.

Path parameters

  • subscription_idstringrequired

    The subscription's ID, like sub_01k8qs5s….

  • actionenumrequired

    skip, pause, resume or cancel

    • skip
    • pause
    • resume
    • cancel

Headers

  • X-Customer-Tokenstringrequired

    Customer session token

  • 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

  • 401unauthenticatedNo valid customer session.
  • 404not_foundNot one of the customer's subscriptions.
  • 409It was cancelled.