Versions Compared

Key

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

...

We will change this condition to validate the expiry date just there is a valide date.

After these changes on frontend and backend

...

  • OBS:. This test was done, mocking the codes and APIs responses, using apollo studio

...

Code Block
{
  "data": {
    "loyaltyValidatePromoCode": {
      "code": "8B9IKPQK",
      "configId": "7bf2c11c-ec68-4d44-abd3-597b3967fcef",
      "isRedeemed": true,
      "isValid": true,
      "message": "",
      "personalizedOfferId": null,
      "reason": null,
      "shouldRedeem": null
    }
  }
}

How to calculate the discount value

  • Send the 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

...

How to configure a promotional code

...