Dates
Get pickup dates and times
POST https://api.zapiet.com/v1.0/pickup/locations/:locationId/calendar
This endpoint allows you to fetch calendar rules for a specific location
Path Parameters
locationId*
string
The ID of the Zapiet location
Query Parameters
shop*
string
The myshopify.com store url
Request Body
shoppingCart
string
The contents of the customers shopping basket.
{
"minDateTime": "2021-05-13 09:00:00",
"minDate": "2021-05-13",
"maxDate": null,
"minTime": ["09", "00"],
"maxTime": ["17", "00"],
"disabled": [],
"interval": 60,
"daysOfWeek": {
"sunday": {
"min": {
"hour": "09",
"minute": "00"
},
"max": {
"hour": "17",
"minute": "00"
}
},
"monday": {
"min": {
"hour": "09",
"minute": "00"
},
"max": {
"hour": "17",
"minute": "00"
}
},
"tuesday": {
"min": {
"hour": "09",
"minute": "00"
},
"max": {
"hour": "17",
"minute": "00"
}
},
"wednesday": {
"min": {
"hour": "09",
"minute": "00"
},
"max": {
"hour": "17",
"minute": "00"
}
},
"thursday": {
"min": {
"hour": "09",
"minute": "00"
},
"max": {
"hour": "17",
"minute": "00"
}
},
"friday": {
"min": {
"hour": "09",
"minute": "00"
},
"max": {
"hour": "17",
"minute": "00"
}
},
"saturday": {
"min": {
"hour": "09",
"minute": "00"
},
"max": {
"hour": "17",
"minute": "00"
}
}
},
"timezone": "America\/New_York"
}Minimum Date Slots
If the merchant has pickup order limits, we will return an array of time slots available for the minDate
Blackout dates
If the merchant wants to prevent customers from selecting pickup on specific dates of the year we will return an array of dates as shown below.
Disabled days of the week
If merchants want to prevent customers from selecting pickup on specific days of the week then we will return an array of integers.
Specifically allowed pickup dates
If a merchant wants to allow pickups only on specific dates of the year we will return the available pickup dates in the disabled array. Note the first element of the array will be true
Advanced date rules
Merchants can combine both specifically allowed pickup dates and days of the week.
Last updated