Versions Compared

Key

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

...

Code Block
languagejson
{
    "data": {
        "validatePromoCode": {
            "code": "8B9IKPQK",
            "reason": "misconfiguredCode",
            "message": "missing offerId",
            "isValid": false,
            "isRedeemed": false,
            "offerId": "",
            "__typename": "CBACouponResponse"
        }
    }
}

Attention

...

point

  • We always sending cognitoId attribute (cognitoId is like user id);

  • The promo code is CBACoupon type;

  • We sent a available offer "7bf2c11c-ec68-4d44-abd3-597b3967fcef";

...

  • There is a mutation redeemMutation that send the loyaltyId, so we will add this mutation with some condition to send loyaltyId (to markets that wants to use promo code at checkout, or to market that don’t use and impact other markets).

    • This condition can be a flag on sanity maybe.

...

Attention point

Is possible on Voucherify, configure a promo code with expiryDate undefined, but on backend validate it and can receive a error, so if will need to use a “infinity“ expiryDate, that don’t have end date finish, so we will change a validate date loyalty flow.

...