ExportCustomers

Exports customers for one or all users. In case you export customers for all users of your organization, the number of rows to export must not exceed 100,000. Otherwise the export will fail.

GET
https://my.portatour.net/a/api/ExportCustomers?parameters
Required URL parameters
format Export format, can be one of xlsx, xls, ods, csv, simplecsv, or xlsxtable.
Optional URL parameters
language Recommended. Language used for the export.
measurementSystem Recommended. Measurement system used for the export.
userEmail,
employeeNumber
Email address or employee number of the user whose customers to export. Only one may be specified. If neither userEmail nor employeeNumber is specified, customers for all users will be exported.
includeDefaultValues If set to true, fields using default values are filled with the value that actually applies instead of being exported empty, and each such field is followed by an additional column telling whether its value is the default. Settings defaulted only as a whole, such as the business hours, share a single such column behind their last column. Default is false.
exportFields If specified, the export will only contain the listed fields, in the specified order. More information
Example usage with curl

using API token:

curl -H "Authorization: Bearer <your_api_token>" -o customers.csv "https://my.portatour.net/a/api/ExportCustomers?format=csv&language=en-US&userEmail=bob@example.com"

using basic authentication:

curl -u <admin_username>:<admin_password> -o customers.csv "https://my.portatour.net/a/api/ExportCustomers?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...