Storefront API
Variant availability
Fetch the dates available for a variant.
POST
Return format
unavailableRanges
will be a 2D array e.g.
Each ROW
represents an item.
Each COLUMN
represents a range of dates that are unavailable.
The range is represented as a string with two dates separated by ..
an empty date means minus infinity or infinity.
Data | Meaning |
---|---|
2025-01-20..2025-01-25 | 2025-01-20 TO 2025-01-25 |
..2025-01-15 | UNTIL 2025-01-15 |
2025-01-20.. | FROM 2025-01-20 |
So in the above example there a 3 items:
Item 1 is available from 2025-01-15
to 2025-01-20
and from 2025-01-25
onwards.
Item 2 is available from 2025-01-15
to 2025-01-28
.
Item 3 is available from 2025-01-15
onwards.
Path Parameters
The Shopify proxy path prefix configured for the app (e.g., 'customer_portal')
Body
application/json
Response
200
application/json
Successful response with unavailable date ranges
2D array where each row represents an item and each column a range of unavailable dates