Storefront API
Custom storefront experiences
cURL
curl --request POST \ --url https://api.example.com/{proxy_path_prefix}/product_availability_checks \ --header 'Content-Type: application/json' \ --data ' { "product_ids": [ 123, 456 ], "rental_start": "2025-02-25T09:00:00Z", "rental_end": "2025-02-28T17:00:00Z" } '
{ "products": [ { "shopify_id": 123, "title": "Product 1", "available_variants": [ { "shopify_id": 1001, "title": "Variant 1" }, { "shopify_id": 1002, "title": "Variant 2" } ] }, { "shopify_id": 456, "title": "Product 2", "available_variants": [] } ] }
Fetch the availability of variants for a given set of products
The Shopify proxy path prefix configured for the app (e.g., 'customer_portal')
Array of Shopify product IDs to check
Start date and time of the rental period
End date and time of the rental period
Successful response with product availability information
Show child attributes
Was this page helpful?