How can I hold product variant inventory after authorizing buyer credit card using checkout API

New Member
10 0 0

I am creating a sales channel app in which we are using checkout API.

So our requirement is that after authorizing buyer credit card we need to hold
variant inventory for that user for a time period(For ex: 2 days) till our campaign does not end.

1) If a buyer interested then we will complete the checkout and it will create the order automatically.

2) If a buyer did not interest then we will cancel the checkout and it will increment the inventory of variant automatically.

Note: I found one way where I can access store products and updates the variant inventory by adding some additional code base in my sales channel app.
But I am looking for a way where I don't want to take the burden on inventory management system which already manged by Shopify.