Android


14. Point Transaction History

You can use Goodie.setListPointTransaction() function to track your issuing point history and Redeemed point history.

Here is the example code:

Goodie.setListPointTransaction(authToken, deviceUniqueId, memberId, merchantId,
    trxType, orderBy, orderType, nRecords, page)
    .historyPointGoodie(this, new SetListPointTransactionListener() {
                
        @Override
            public void onSuccess(ListPointTransactionResponse resp) {

            if (resp.getAbstractResponse().getResponseStatus().equals("TRX018"))
            {

            //On Success
            
            }
        
        }

        @Override
        public void onError(Throwable throwable) 
            {

        // On Error


        }

});
                    

Where :
Param Type Description
authToken String authToken is used as for header authentication purpose
deviceUniqueId String deviceUniqueId is identify android device
memberId String memberId is identifier that will be used to identity a member
merchantId String merchantId is identifier that will be used to identity a merchant
trxType integer It is used to filtering data by trxType trxType = 0, It’s mean all data will retrieve (Issuing and Redeemed) trxType = 1, It will retrieve only Issuing data history trxType = 2, It will retrieve only Redeemed data history
orderBy integer It used for filtering data by Date It must filled with “1” in integer
orderType integer It used for filtering data by name in alphabet. Sample : 1 = Ascending, 2 = Descending
nRecords integer It is used to limit data displayed in one page
page integer It is used to pagination, starts from 0

Response Point Transaction History :
{
    "listPointTransaction":[{

            "trxType": 1,
            "issuing": {
            "date": "2019-05-07",
            "promotionName": "Bonus BNI",
            "ruleType": "Basic Rule",
            "ruleName": "BNI New Basic Rule",
            "description": "Point from transaction: PRODUCTTEST2",
            "reff": "PRODUCTTEST2",
            "amount": 100000000,
            "point": 10000

            },

            "redeem": null

        },

    {

            "trxType": 1,
            "issuing": {
            "date": "2019-05-07",
            "promotionName": "Promotion BNI",
            "ruleType": "Basic Rule",
            "ruleName": "Basic Rule BNI",
            "description": "Point from transaction: PRODUCTTEST2",
            "reff": "PRODUCTTEST2"
            "amount": 100000000,
            "point": 1000

    },

            "redeem": null
    
    }],
    
    "recordInfo":{

        "totalRecords": 13,
        "page": 0,
        "nrecords": 10

    },
    
    "abstractResponse":{

        "responseStatus": "TRX018",
        "responseMessage": "Get history issuing and redeem success"

    }

}