Update cart from admin API

Solved
wolves
New Member
3 0 1

I would like to apply a discount to a cart from the cart/update webhook.

How can I do this. I can't find an api reference.

Accepted Solution (1)

Accepted Solutions
drewisme
Shopify Partner
12 2 14

This is an accepted solution.

It's not possible to apply a discount code to the cart. You can pass a discount code to checkout by including the "discount" query string parameter in the checkout url.

You can also link users to automatically apply a discount code to their session:
https://{shop}.myshopify.com/discount/{discount_code}

View solution in original post

Replies 2 (2)
drewisme
Shopify Partner
12 2 14

This is an accepted solution.

It's not possible to apply a discount code to the cart. You can pass a discount code to checkout by including the "discount" query string parameter in the checkout url.

You can also link users to automatically apply a discount code to their session:
https://{shop}.myshopify.com/discount/{discount_code}

View solution in original post

wolves
New Member
3 0 1

Thanks. 

Not what I hoped for, but it is what it is.