cryptocadet
  • 👋Welcome
  • Admin API
    • /admin/gen-ref
    • /admin/update-ref
    • /admin/gen-ref-sol
    • /admin/update-ref-sol
    • /admin/update-watchlist
    • /admin/cancel-subscription
    • /admin/update-walletAddress
    • /admin/update-solAddress
    • /admin/update-pubKey
    • /admin/update-secretKey
  • User API
    • /user/get-user
    • /user/get-ref
    • /user/options
    • /user/get-proxy
    • /user/config
    • /user/price
    • /user/customPrice
Powered by GitBook
On this page
  1. Admin API

/admin/cancel-subscription

Cancels the premium subscription. User will be able to access features until what would have been the next billing period or after 30 days, whichever is shorter.

await axios.post(`https://api.cryptocadet.app/api/admin/cancel-subscription`, {
apiKey, 
secretKey, 
uid
})

apiKey: Vxusewjwhjwrhkwwj181ksl

secretKey: sk-wwh284h2ksjfshshshsjh

uid: XP27shj24190ws

Status: 200

Data: Subscription canceled successfully. You will continue to have premium access until ${new Date( updatedUser.endDate )}

Previous/admin/update-watchlistNext/admin/update-walletAddress

Last updated 10 months ago