Add a Transaction using public app

Hi,

I am using checkout api (/admin/api/2021-07/checkouts/{token}.json) on custom app. But shopify api can’t able to complete the checkout without adding a Transaction.

How can I can add a transaction without doing any actual payment ?

Created order can be with financial_status as pending.

Hi @ash2408

You can complete a checkout without a transaction. Please have a look at the example here of a checkout being completed without requiring payment:

https://shopify.dev/api/admin/rest/reference/sales-channels/checkout#complete-2021-01

Hope this is helpful!

Hi @csam ,

Thanks for the reply.

I have already tried the checkout complete api. But it gives below errors.

{
“errors”: {
“base”: [
{
“code”: “missing_transactions”,
“message”: “Cannot complete the checkout without any transactions.”,
“options”: {}
}
]
}
}