Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • transactionId <string>: unique identifier of the loyalty transaction created in UUID format.

  • balances: object that indicates loyalty balance of the user's account

    • amount <number>: this represents the number of loyalty points the user has. If this QR code was pre-selected with rewards, then this number already has those loyalty points temporarily deducted from total user’s loyalty points balance.

    • currency <string>: this represents the currency the above amount. Normally set to "points".

  • loyaltyUser: object that indicates information about this loyalty user

    • created <string>: string that represents that date and time user loyalty account was created

    • id <string>: unique identifier of the loyalty user in UUID format

    • name <string>: name of the user that was saved upon account creation

  • order: an array that includes objects with the below fields for each product that is in the order basket.

    • productId <string>: PLU of the product that was pre-selected in the app. This can be an offer or a reward.

    • quantity <number>: the amount of the above product that is in the loyalty order.

    • price <number>: the price of the product

    • productType <string>: the type of product. In this case it would either be REWARD or OFFER

    • referenceId <string>: unique line ID of the product

    • incentiveId <string> (optional): Sanity ID of the offer or reward if an offer or reward is pre-selected in the app.

    • loyaltyEngineId <string> (optional): Loyalty Engine ID of the personalized offer if a personalized offer is pre-selected in the app. This field only Only needs to be sent for personalized offers, but it can be sent for all offers and rewards. Read more about this here: https://rbictg.atlassian.net/wiki/x/iABm-g

  • eligibleDiscounts (optional): an array of any offer or rewards discount that were pre-selected by the user in the app.

    • details <object> (optional): details of the discount included in the basket.

      • displayName <string> (optional): name of the offer or reward discount included in the basket.

      • discountValue <integer> (optional): an integer that represents the value of the discount.

      • subType <string> (optional): the type of the discount. Discount can only be PERCENTAGE_DISCOUNT or AMOUNT_DISCOUNT .

      • type <string> (optional): the type of the benefit of the discount. This can only be offer or reward.

    • incentiveId <string> (optional): Sanity ID of the offer or reward discount.

    • productId <string>: PLU of the discount that was pre-selected in the app. This can be an offer or a reward.

    • referenceId <string> (optional): Loyalty Engine ID of the offer or reward discount if an offer or reward discount is pre-selected in the app.

...