Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Inserting abandoned checkouts over API?

Inserting abandoned checkouts over API?

r0jmax
Shopify Partner
1 0 0

Hello there,

My app replaces default Shopify's checkout process with own, therefore Shopify itself doesn't know if the checkout was abandoned or not.

Is it possible to insert abandoned checkouts over API as I dont see it in official documentation? Perhaps there is workaround I could use? 

The reason I wanna insert abandoned checkouts is because my users use abandoned carts recovery apps.

Thank you

Replies 4 (4)

Jason
Shopify Partner
11206 226 2315

No, you can not create abandoned checkouts via the API. If you want to have an abandoned checkout - don't skip the Shopify checkout.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★

AT1
Shopify Partner
68 0 2

I think it's possible by using Checkout API - https://help.shopify.com/en/api/reference/sales_channels/checkout

SarahT2
Visitor
2 0 0

I replaced Shopify's checkout with my own too and have the same question. Were you able to insert abandoned checkouts? Would love to know if and how you did it!

rohanrajpal
Shopify Partner
40 0 13

Haven't tried it out yet, but I guess this is how I would approach it

1. You create a checkout via the checkOut create mutation
https://shopify.dev/api/storefront/2022-10/mutations/checkoutCreate

2. after a while shopify automatically marks it as abandoned

you need to be a sales channel app/need a sales channel token to try it out.

 

Founder | Spur Feel free to reach out to me at @rohanrajpal98 on Twitter