GetCustomersOnTheWay

Exports customers on the way between two given locations including the additional driving time and distance required for the detour to insert the customer on the way. The locations can either be customers or the user's home location.

GET
https://my.portatour.net/a/api/GetCustomersOnTheWay?parameters
Required URL parameters
formatExport format, can be one of xlsx, xls, ods, csv, simplecsv, or xlsxtable. More information
userEmail,
employeeNumber
Email address or employee number of the user whose customers to export. Exactly one must be specified.
Optional URL parameters
languageRecommended. Language used for the export. More information
fromCustomerWithExternalID,
fromCustomerWithPortatourID
External ID and/or Portatour ID of the customer used as start location of the way. If neither of the parameters is specified, the user's home location will be used.
toCustomerWithExternalID,
toCustomerWithPortatourID
External ID and/or Portatour ID of the customer used as end location of the way. If neither of the parameters is specified, the user's home location will be used.
maxResultRowsIf specified, only the first maxResultRows customers will be exported.
orderBy How the customers should be ordered, can be one of time or distance. Default is time.
exportFieldsIf specified, the export will only contain the listed fields, in the specified order. More information
Example usage with curl
curl -o customers.csv -u admin_username:admin_password "https://my.portatour.net/a/api/GetCustomersOnTheWay?format=csv&language=en-US&userEmail=bob@example.com"

Caution: When you process exported data, don't depend on the column order. Use the column header names to access data. The order of the columns might change, e.g if new fields are added. In case your importer doesn’t support accessing field values by field name, use the exportFields parameter to specify the columns and their order.

Refreshing offline data
Loading...