Redeem Loyalty Points


User can redeem his credited loyalty point equivalent to repective amount in his wallet account.

   User will get equivalent amount from respective loyalty points.


How to redeem loyalty points?

The POST request will be send over HTTPS to the endpoint.


Sample Request


Sample Response

NOTE:

  • loyaltyPoints – Get Loyalty Points API.
  • verificationHash – SHA256Algorithm.generateSHA256Hash(secKey.trim() + customerId.trim() +walletOwnerId.trim())


How to generate verification hash?

Verification Hash has to be calculated with following combination using SHA256 algorithm and need to be send along with the authentication parameters in each server-to-server request:
<secKey><customerId><walletOwnerId>


Sample Code



Request Parameters

This reference lists all the standard flow parameters to be send in request.

Parameter Description Format Required
customerId Generated unique customer id on per user sign up. A255 Yes
walletOwnerId Provided by Unique id. N20
[0-9]
Yes
loyaltyPoints Points to redeem. N
[0-9]
Yes
verificationHash Verification Hash has collected combination of parameters. String Yes


Response Parameters

This reference list lists all the standard flow parameters to be received in response.

Parameter Description Format Required
responseCode Response code [a-zA-Z0-9] Yes
loyaltyPoints Total redeem points. N
[0-9]
Yes
loyaltyAmount Points redeemed converted to amount N50
[0-9]
Yes
status Response status (SUCCESS/FAILED). A
[A-Z]
Yes


List of response code from API

Response Code Message
1 Success
2 Fail
3 Invalid Request