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": "8B9IKPQK", "cognitoId": "ec5cec01-b41b-509b-9111-310ab5a18154", "shouldRedeem": true, "offers": [ "7bf2c11c-ec68-4d44-abd3-597b3967fcef" ] }
response:
{ "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:
Enable feature flag:
ENABLE_PROMO_CODE_AT_CHECKOUT = 'enablePromoCodeAtCheckout'
After configure sanity:
After that:
To create the promotional codes, we need to access from Voucherify, this vendor is used current by PLK ES in production to create another promo codes on offers page;
0 Comments