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.

  • 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.

For a comprehensive list of Point of Sale APIs and SPIs, see Point of Sale API, SPI, and Webhook Overview.

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.

  1. In CMS, go to Integrations | Custom Connectors.
  2. Click Create.
  3. For Connector Type, select SPI.
  4. For Endpoint Name, select DATE_PICKER.
  5. For API Endpoint, enter the URL endpoint.
  6. For Integration Type, select HTTP_POST.
  7. Specify any JSON headers that must be passed.
  8. Save your changes.

POST/merchant/spi/sample/endpoint/sa/datetime/slots/from/external/system

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.