Versions Compared

Key

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

...

How to calculate the discount value

  • Send the offers offer sanityId to Winrest

    • They will register these sanityId on their system, and after that, we’ll use some offers with these sanityId registered, and Winrest will return the calculated offers correctly

      • We already sent the sanityId offer to the backend (intl-partners-service)

    • When the intl-partners-service calls the Winrest API, the integration will know how much will be the discount

    • The discount is always on the total value of the cart

...