Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

[Urgent] Checkout API's apply discount doesn't work after shipping button was clicked.

[Urgent] Checkout API's apply discount doesn't work after shipping button was clicked.

kcin1993
Shopify Partner
63 0 5

Hi Shopify, 

 

We have a Sales channel app it will create a checkout via Checkout API. When we create checkout, we will paste the applied_discount parameters to create a discount checkout. 

 

But since 2023/08/09, we found the discount will disappear after customer click the shipping button. Screenshots

 

截圖 2023-09-08 下午4.37.52.png截圖 2023-09-08 下午4.39.16.png

 

The issue can be reproduce on our demo store. https://yosgo-demo-store.myshopify.com/products/matcha

1. Click the “Group Buy Deal” button which is below “Buy it now button”.

2. There will be a window popup. Click the “create” button which is at button of the window. ”I don't want to join existing group. Create“

3. Then select the variant and quantity. Click “Checkout” button. 

4. The page will redirect to checkout page automatically.

5. On checkout page information step, the discount works fine. Then fill in the information and click the “Continue to shipping” button. The discount will fail. 

 

Hope Shopify can help. Discount is important for a group buying app. 
Thanks a lot!

Replies 2 (2)

kcin1993
Shopify Partner
63 0 5

We found removing the description parameter in the applied_discount properties will fix this issue. 

https://shopify.dev/docs/api/admin-rest/2023-01/resources/checkout#resource-object 

 

Hope it can help, if someone meet this issue. 

soulchild37
Shopify Partner
194 9 61

Thank you! Saved my day

Spent too much support time dealing with order cancellation request from customer? Wouldn't it be good if customer can cancel order on their own without bugging your support? Try out Cancellable app! https://apps.shopify.com/cancellable . I also write articles about store customization that can improve your customer shopping experience here : Yagi Software Blog