The free shipping discount code, added to a cart through cartCreate, is automatically deleted when opening the checkout URL

Hello

Every time we create a cart through GraphQL cartCreate, add a free shipping discount code (code redeemed by store API or manually created, whatever), and then open the checkout URL (the one given in response to cartCreate call ), the code appears like for 1 second, and then is removed without reason:

The thing is, if I re-add manually the discount code through the UI, it is applied perfectly.

I have tried many things to understand the problem, but can’t get what happens. Even trying to open the checkout URL long after the discount code and cart creation doesn’t work, so not a race condition I believe.

NB: I have also mentioned the issue in this thread in case it is related cartDiscountCodesUpdate removes all cartLines, and does not apply codes. But opening a dedicated topic as the problem is quite urgent.

Thank you for your help

Hi Damien,

Thanks for flagging this - checking with our internal team if this is related to the other issue you referenced.

1 Like

Hi !!

In Zapato Feroz we’re waiting for it like rain in a drought. :folded_hands::folded_hands:

2 Likes

For the record: after reaching Shopify support:
1/ They could not observe the bug
2/ I don’t have the bug anymore (Neither on test shops nor on Zapato feroz website cc @Hector_Nebot)

Whatever was done fixed the issue. Nothing on our side though.

1 Like

Hi folks,

We did ship some updates on how carts are managed - which may have resolved this issue.