I am trying to complete a checkout without requiring payment. It is document in the Checkout API here: https ://shopify.dev/api/admin-rest/2022-10/resources/checkout#post-checkouts-token-complete
I have successfully created a valid checkout using the checkout API. I then send the following request to complete the checkout:
url -d '{}' \
-X POST "https://cemarose-test.myshopify.com/admin/api/2022-10/checkouts/<checkout-token>/complete.json" \
-H "X- Shopify-Access-Token: <access-token>" \
-H "Content-Type: application/json"
At this point I am expecting an unpaid order to be created. However we get the following 422 response:
{"errors":{"base":[{"code":"missing_transactions","message":"Cannot complete the checkout without any transactions.","options":{}}]}}
I looked at another post but it didn’t seem to work, I’m getting this error as well.
https://community.shopify.com/topic/748507
who can help me,
thanks.