Cancel Subscription
This endpoint to cancels a subscriber's active subscription. You can either cancel at the end of the current billing period or immediately, depending on the force parameter.
Use the POST method to query a subscriber. Both subscriberId and packageId parameters are required to retrieve the correct subscription record.
The response includes the subscription’s state, status, lifecycle dates, and related metadata.
Request Parameters
subscriberId
Required
The email or phone number the user provided when starting the subscription.
packageId
Required
The ID of the current active package. A successful response is returned only if the user has a subscription for this package.
cancellationReason
Required
Free-text reason for the subscription cancellation. Shown in the profile under cancellation.reason.
force
Optional
Controls when the cancellation takes effect:
1→ The subscription is terminated immediately.any other value or omitted → The subscriber can continue using the service until the end of the current billing period.
Sample Request
POST https://api.zotlo.com/v1/subscription/cancellation HTTP/1.1
AccessKey: ••••••
AccessSecret: ••••••
Content-Type: application/json
ApplicationId: •
Language: en
{
"subscriberId": "test@mail.com",
"cancellationReason": "Not Interest",
"force": 0,
"packageId": "zotlo-premium"
}Successful Response
Key Response Fields
profile.status
high-level subscription status delivered to your app. active, grace, High-level status of the subscription (active, grace, passive).
profile.realStatus
Internal status that immediately reflects cancellation.
passive→ subscription is considered canceled by Zotlo, even ifstatusmay stayactiveuntilexpireDatein some legacy flows.
profile.subscriptionType
trial → subscription is in trial period
paid → subscription has been charged at least once
startDate / expireDate
Subscription start and current period end dates.
cancellation
Contains details if the subscription was canceled:
cancellation.date– cancellation timestampcancellation.reason– human-readable reasoncancellation.code– cancellation code (CP00001,CU00001,CU00002, etc.)
Failed Response
All failed responses follow the same standard error format. (See: Error Handling)
Last updated

