How to create an API call in cart to check live stock availability

Hello everyone,

Our online stock is connected with the product stock of several physical shops, which is why we need to create a real-time API call during the check-out phase, to verify the stock availability in relation to the main management system.

Is it possible?
How should we proceed?

Thank you.

Hi This is James

Hi @serena-gzeta ,
This is Theodore from PageFly - Shopify Page Builder App.

Verifying real-time stock availability during Shopify checkout while connected to multiple physical shops is achievable through two main options:

1.Shopify Inventory API: This method directly queries product inventory across all locations for accuracy and reliability, but requires development knowledge and may incur costs.

2.Custom App: This method offers more flexibility for integrating with your specific system but demands more development effort. You’ll need to create an app that connects to your main management system and exposes an API endpoint for stock level retrieval.

Best regards,
Theodore | PageFly

1 Like

Check this https://shopify.dev/docs/api/ajax

1 Like