Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Add a Transaction using public app

ash2408
Shopify Partner
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 (Retired)
267 40 51

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!

To learn more visit the Shopify Help Center or the Community Blog.

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