...
POSSIBLE PROBLEM (these masses of data are prod-voucherify)
frontend Frontend flow
Currently to show the promo code field, we need to configure the sanity with CBA offers (and the CBA offers is deprecated).
When we applied the promo code on whitelabelWhitelabel, we receive an error: Something went wrong. Please try again.
...
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"
;
backend Backend flow
On backend, intl-promotion-service
repository receive this call.
...
There is a mutation redeemMutation
that send the loyaltyId, so we will add this mutation with something 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.
...
There is another attention point:
Is possible on voucherifyVoucherify, 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.
currency Currency code:
...
We will change this condition to validate the expiry date just there is a valide date.
...