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.

Note
  • AUTO_REFUNDED

    • New status AUTO_REFUNDED, which indicates than primary card transaction is successful but the LOYLTYREWARDZ transaction 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 the LOYLTYREWARDZ transaction is in PENDING state.

    • If LOYLTYREWARDZ transaction get failed then JUSPAY will auto refund Card transaction.

    • If LOYLTYREWARDZ transaction get successful then JUSPAY will mark status as CHARGED.

  • Only incase of split transactions, orderStatus response will return txn_list as an array block in with the 2 transactions (CARD + LOYLTYREWARDZ). You need to make sure to consume the params from inside the txn_list array block.

  • As orderStatus response is changing incase of split transaction and AUTO_REFUNDED / PARTIAL_CHARGED case, It will also effect webhook payload (If already handled no need for any change).

Sample Request

Sample Response (Full Redemption)

Sample Response (Split)

—> Refunds

Refund Cases

—> Order Based Refunds

Sample Request

Sample Response

—> Transaction Based Refunds

Sample Request

Sample Response

Last updated 1 year ago