curl --request POST \
--url https://api.unibee.top/merchant/subscription/cancel_at_period_end \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"productId": 123,
"subscriptionId": "<string>",
"userId": 123
}'
{
"code": 123,
"data": {},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
Cancel subscription at period end, the subscription will not turn to ‘cancelled’ at once but will cancelled at period end time, no invoice will generate, the flag ‘cancelAtPeriodEnd’ of subscription will be enabled
curl --request POST \
--url https://api.unibee.top/merchant/subscription/cancel_at_period_end \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"productId": 123,
"subscriptionId": "<string>",
"userId": 123
}'
{
"code": 123,
"data": {},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Cancel subscription at period end, the subscription will not turn to 'cancelled' at once but will cancelled at period end time, no invoice will generate, the flag 'cancelAtPeriodEnd' of subscription will be enabled
The response is of type object
.