Add a Transaction using public app

ash2408
New Member
2 0 0

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.

Replies 2 (2)
csam
Shopify Staff
Shopify Staff
267 40 43

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!

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

ash2408
New Member
2 0 0

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": {}
}
]
}
}