Versions Compared

Key

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

Possible problems (these masses of data are prod)

When we applied the promo code on whitelabel, we receive an error: Something went wrong. Please try again.

...

request:

Code Block
languagejson
{
    "code": "8B9IKPQK",
    "cognitoId": "ec5cec01-b41b-509b-9111-310ab5a18154",
    "shouldRedeem": true,
    "offers": [
        "7bf2c11c-ec68-4d44-abd3-597b3967fcef"
    ]
}

response:

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

Attention points:

  • We always sending cognitoId attribute;

  • The promo code is CBACoupon type;

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

TODO flow

Configuration Promo code

For show the feature on checkout:

...