OmniChannel: Retrieving Delivery and Pickup Dates via SPI
Use the Point of Sale SPI so merchants can integrate delivery or pickup date retrieval with the Point of Sale app.
The POS app calls the SPI, requesting a list of available dates and including details such as cart products, fulfillment methods, shipping addresses, and addresses for each applicable item. The response provides an array of dates or an error message to be shown in the POS. Delivery and pickup dates can be set at the order level or for individual items in the cart.
Prerequisites
Modern POS App Build: 10.0.1 or greater
Platform Support: iPad & iPhone
Offline Support: No
For details on this SPI, see DateTimeSlot SPI in the Point of Sale reference documentation.
Configure Point of Sale CMS for Retrieving Delivery Dates with SPI
Integrate Point of Sale CMS with a date picker using a custom connector and SPI. In CMS, create a custom connector by specifying the endpoint name, API endpoint, integration type, and JSON headers.
For single delivery or pickup dates in a cart, the SPI is called when the date picker is tapped in the cart. This call requests a list of available dates and includes details of the cart products, fulfillment methods, shipping addresses (if enabled), and addresses for each applicable item.
For single delivery or pickup dates in a cart, the response includes an array of dates or an error message to be shown in the POS. Times are optional; if none are sent, they aren’t displayed in the app. If only one date is available, it’s automatically selected. Merchants can also specify will-call for items that do not have a date available.
For multiple delivery or pickup dates in a cart, if selecting a date for all items in the cart, the app sends the full cart details to the SPI and return available dates to be applied to all items. Once a date is selected, it applies to all current line items in the cart. If selecting a date for just a single item in the cart, the app sends the full quantity of that item and return available dates that can be selected for that specific item.