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.
Months are javascript zero-based meaning December is 11 rather than 12
/** Pickup not allowed on:13th May 2021 25th December 2021**/{"disabled": ["2021-04-13","2021-11-25" ]}
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.
Months are javascript zero-based meaning December is 11 rather than 12
/** Pickup not allowed on Sunday or Monday1: Sunday2: Monday3: Tuesday4: Wednesday5: Thursday6: Friday7: Saturday**/{"disabled": [1,2 ]}
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
Months are javascript zero-based meaning December is 11 rather than 12
/** Pickup is only available on:13th May 2021 25th December 2021**/{"disabled": [true,"2021-04-13","2021-11-25" ]}
Advanced date rules
Merchants can combine both specifically allowed pickup dates and days of the week.
Months are javascript zero-based meaning December is 11 rather than 12
/** Pickup is only available on:SundaysMondays 13th May 202125th December 2021 **/{"disabled": [true,1,2,"2021-04-13","2021-11-25" ]}
/** Pickup is not available on:SundaysMondays 13th May 202125th December 2021 **/{"disabled": [1,2,"2021-04-13","2021-11-25" ]}