/api/findtour2

The delivery tours that can serve a given location, with the next delivery dates of each. Used to offer a new customer the tours and dates reachable at their address. Returns empty lists when nothing serves the location.

Change Note: replaces /api/findtour1: typed response, ShopDate v8 instead of v7; the ?depot=1 variant moved to /api/getdepots1

Parameters

(int) how to look up the tour; -10 uses the shop setting newCustomerStrat. -1 by average distance, -2 by zip, -3 the configured new-customer tour, -4 by zip without wildcard, -5 polygons only, 0/1/2 by the tours of nearby customers
(double) latitude of the location to search from
(double) longitude of the location to search from
(string) zip code of the location; resolved from lat/lng when omitted
(string) invitation code; if given, the tour is looked up by that code instead
(bool) tri-state company filter: omit = unknown; 1/true = only company tours (tours.company in 0,1); 0/false = only private tours (tours.company in 0,2, on PCG > 2026-07-01, otherwise treated as unknown)
(string) comma separated list of shop variants (1,2,3) to consider
(String) optionally define the response-format for this call. One of: compact (default) | compacts | full | fulls | json | md | html | js | openapi | yaml
(int) optionally force the API to check against the role (instead of silently not returning data). For guests or public access, the default is -1. 0 (regular customer) and above define the role for which the current session is expected to be authorized.

Response Types