Coohom Role Upgrade/Downgrade

Upgrade or downgrade Coohom API-C User Roles

ATTENTION:The value of the parameter ”active” is not equal to the “upgrade” or “downgrade” action. The “upgrade” or “downgrade” action is determined by the relationship between the current role and the target role.

About the “downgrade” action:

  1. The “downgrade” action will be executed immediately after the current role expires.
  2. Status “To downgrade”: there’s a “downgrade” action to be executed when the current role expires.

active: true

No.Current RoleStatusTarget RoleAction
1BasicNormalProUpgrade immediately
2ProNormalProInvalid call
{"c" : "Invalid Role Update";
"m" : "you have already activated target role!"}
3ProTo downgradeProCancel the downgrading action. The current role will continue.
4PremiumNormalProWhen the current role expires, it will downgrade to “Basic” first, then upgrade to “Pro” 8 hours later.

ATTENTION: DO NOT call this API during the 8 hours!
5PremiumTo downgradeProInvalid call, please call this API after the downgrading action is done.
{"c" : "Illegal Operation";
"m" : "you cannot change to another role when you are downgrading"}
6BasicNormalPremiumUpgrade immediately
7ProNormalPremiumUpgrade immediately, the purchase time and next-update time will be replaced according to current time
8ProTo downgradePremiumInvalid call, please call this API after the downgrading action is done.
{"c" : "Illegal Operation";
"m" : "you cannot change to another role when you are downgrading"}
9PremiumNormalPremiumInvalid call
{"c" : "Invalid Role Update";
"m" : "you have already activated target role!"}
10PremiumTo downgradePremiumCancel the degrading action. The current role will continue.

active:false
Only valid in the following cases:

No.Current RoleStatusTarget RoleAction
1ProNormalProDowngrade to “Basic” after the current role expires.
2PremiumNormalPremiumDowngrade to “Basic” after the current role expires.
3BasicNot Applicablenot applicable{"c" : "Invalid Deactive";
"m" : "Attempting to deactive invalid role"}
4ProNormalPremium{"c" : "Invalid Deactive";
"m" : "Attempting to deactive invalid role"}
5PremiumNormalPro{"c" : "Invalid Deactive";
"m" : "Attempting to deactive invalid role"}
6Pro/PremiumDowngradingAny{"c" : "Invalid Deactive";
"m": "Attempting to deactive in downgrading status"}
Language
Credentials
Click Try It! to start a request and see the response here!