public IHttpActionResult gettingMemberData(string token, string user, string merchant)
        {        //token=1&user=191347928341&merchant=1
            try
            {
                CFungsi fungsi = new CFungsi();

                fungsi.tracelog("GETTING MEMBER DATA MASUK : " + token + "//" + user + "//" + merchant);

                coreReq_checkPoin coreReq_cekpoin = new coreReq_checkPoin();
                coreReq_cekpoin.card_num    = user;
                coreReq_cekpoin.id_merchant = int.Parse(merchant);
                coreReq_cekpoin.id_bucket   = token;

                string jsonReq = JsonConvert.SerializeObject(coreReq_cekpoin);

                MyPoinCore.service2 service = new MyPoinCore.service2();
                fungsi.tracelog("GETTING MEMBER DATA REQUEST KE CORE " + service.Url + " " + jsonReq);
                string[] responseCore = service.CheckPoin(jsonReq);
                fungsi.tracelog("GETTING MEMBER DATA RESPONSE DARI CORE : " + responseCore[0] + "//" + responseCore[1] + "//" + responseCore[2]);

                if (responseCore[0] == "0")
                {
                    //response core dimasukin ke class
                    coreResp_checkPoin coreResp = JsonConvert.DeserializeObject <coreResp_checkPoin>(responseCore[1]);

                    clsGettingMemberDataResp response = new clsGettingMemberDataResp();
                    response.membership.stamps         = coreResp.membership.point;
                    response.user.name                 = coreResp.user.name;
                    response.user.phone                = coreResp.user.phone;
                    response.user.id                   = coreResp.user.id.ToString();
                    response.user.email                = coreResp.user.email;
                    response.user.address              = coreResp.user.alamat;
                    response.user.birthday             = coreResp.user.birthday;
                    response.user.gender               = coreResp.user.gender;
                    response.user.protected_redemption = coreResp.user.protected_redemption;
                    response.user.is_active            = coreResp.user.is_active;



                    string JsonKeluar = JsonConvert.SerializeObject(response);
                    fungsi.tracelog("GETTING MEMBER DATA RETURN  : " + JsonKeluar);


                    return(Json(response));
                }
                else
                {
                    fungsi.tracelog("GETTING MEMBER DATA RETURN  : " + responseCore[1]);

                    return(ResponseMessage(Request.CreateResponse(HttpStatusCode.BadRequest, responseCore[1])));
                }
            }
            catch (Exception ex)
            {
                CFungsi fungsi = new CFungsi();
                fungsi.tracelog("error at getting member data " + ex.Message + " -- " + ex.StackTrace);
                return(ResponseMessage(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex.Message)));
            }
        }