I am trying to complete a checkout without requiring payment. It is document in the Checkout API here: https://shopify.dev/docs/admin-api/rest/reference/sales-channels/checkout?api[version]=2020-04#complete-2020-04
I have successfully created a valid checkout using the checkout API. I then send the following request to complete the checkout:
Request:
POST: https://my-shopify-store.myshopify.com/admin/api/2020-04/checkouts/my-checkout-token/complete.json
Body:
{
}
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": {}
}
]
}
}
This is slightly confusing as there should be no transaction as we do not require payment in order to create this checkout.
It would be great if anyone can shed some light on this.
Thanks,
Josh