Change User Plan

Please use this (https://blkem.com/mobile_api/change_user_plan) API to change user's plan


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
plan_id Plan E.g. 1

Success response

{
    "code": 200,
    "data": {
        "id": 17,
        "plan_id": 28,
        "time": "2022-01-21 17:24:04",
        "expiry": "2022-02-20 17:24:04",
        "user_id": 6098,
        "active": 1
    },
    "message": "Your plan has been updated to Monthly"
}
    

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }
    
{
    "code": 400,
    "message": "Failed to charge payment"
}
    
{
    "code": 400,
    "message": "Failed to cancel previous plan"
}
    
{
    "code": 400,
    "message": "No payment method found"
}