Loyalty Rewardz Onboarding and Payload Specifications
Pre-Requisites
Sample Requests and Responses
—> getPaymentMethods
Sample Response
—> listCard (To Check Eligibility for Saved Cards)
Sample Payload
Sample Response
—> cardInfo (To Check Eligibility for New Cards)
Sample Payload
Sample Response
—> fetchBalance
Sample Payload
Sample Response
—> transaction (Full Redemption)
(If balance is equal to invoice amount)
Sample Payload
Sample Response
—> transaction (Split)
(If balance is less than invoice amount)
Sample Payload
Sample Response
—> Order Status
With the existing implementation on Juspay , the transaction level details are available in the root structure of the orderStatus(/orders/:order_id) JSON block.
AUTO_REFUNDED
New status
AUTO_REFUNDED, which indicates than primary card transaction is successful but theLOYLTYREWARDZtransaction got failed and JUSPAY has called Auto Refund for primary card transaction.
PARTIAL_CHARGED
New status
PARTIAL_CHARGED, which indicates than primary card transaction is successful but theLOYLTYREWARDZtransaction is in PENDING state.If
LOYLTYREWARDZtransaction get failed then JUSPAY will auto refund Card transaction.If
LOYLTYREWARDZtransaction get successful then JUSPAY will mark status asCHARGED.
Only incase of split transactions, orderStatus response will return
txn_listas an array block in with the 2 transactions (CARD + LOYLTYREWARDZ). You need to make sure to consume the params from inside thetxn_listarray block.As orderStatus response is changing incase of split transaction and
AUTO_REFUNDED/PARTIAL_CHARGEDcase, It will also effect webhook payload (If already handled no need for any change).

