Completing a checkout with Checkout API

Hi,

I’m trying to complete a checkout using the Checkout API and when I issue the complete command I get a 202. The total price on the checkout is $0, with $0 shipping and there are no payments attached.

If I try to complete the checkout again, I get a message that the checkout is locked by another process. I even tried going to the clone_url (removing /clone) and on that page it says that it’s processing the checkout and when it finishes it looks like the order is created. When I look in orders, I don’t see anything.

I followed the Checkout API documentation, but it’s unclear what to do in this case. How can I complete this free checkout and create an order?

Thank you!

The 202 response means that you need to try your request again after the amount of seconds listed in the Retry-After request header.

https://help.shopify.com/en/api/guides/sell-through-the-checkout-api#polling

Just to clarify, you should be polling with a GET request. The original complete request is still processing and you just need to keep checking until the processing is done and the resource returns 200.