curl --request POST \
--url https://api.unibee.top/merchant/subscription/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"invoiceNow": true,
"productId": 123,
"prorate": true,
"reason": "<string>",
"subscriptionId": "<string>",
"userId": 123
}'
{
"code": 123,
"data": {},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
Cancel subscription immediately, no proration invoice will generate
curl --request POST \
--url https://api.unibee.top/merchant/subscription/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"invoiceNow": true,
"productId": 123,
"prorate": true,
"reason": "<string>",
"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 immediately, no proration invoice will generate
The response is of type object
.