Not getting user error from cartDiscountCodesUpdate mutation on providing invalid discount code

Not getting user error from cartDiscountCodesUpdate mutation on providing invalid discount code

Rajanverma
Shopify Partner
6 0 0

I am using this mutation for applying discount on cart. But I want to show error on invalid discount code, but this API does not providing any error if discount code not exist.

 

Screenshot from 2024-08-27 12-41-54.png

 

This provides error in in  CheckoutDiscountCodeApplyV2 mutation if I provide invalid discount code:

 

Screenshot from 2024-08-27 13-02-03.png

Replies 0 (0)