Getting started with App Store Server API and programmatically cancelling a user's subscription

Hello,

I'm inquiring in regard to information on handling user's subscriptions, specifically if it's possible to cancel a subscription with a line of code. For example:

if condition {
    // cancel user's subscription
}

I'm not familiar with the App Store Server API yet, but I glanced at the documentation and I didn't see any information in regard to the question I have. That being said, I'm also wondering where to start with configuring a subscription model for my app.

Any insights would be greatly appreciated. Thank you.

Replies

Hello!

Cancelling a subscription is initiated by the user. You can help user get to Manage Subscriptions page by providing a deep link https://apps.apple.com/account/billing or using showManageSubscriptions(in:).

For more info see

Also check out App Store Server Library to help you with App Store Server APIs: