Skip to main content

Create Trip

POST 

/api/crm/trips

Create a call trip for a sales rep with its stops. Planning for a rep other than yourself needs the CRM assign permission.

Required scope: customers:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token with the customers scope and the CRM trips manage permission.

Fields: name (required), sales_rep_id (required), starts_on and ends_on (required, YYYY-MM-DD, ends_on on or after starts_on), start_location (optional: label, address, lat, lng; the route starts here), day_start_time (optional, HH:MM), notes (optional), stops (optional array).

Stop fields: customer_id (required, one of your customers unless you may see all customers, not archived), contact_id (optional, must belong to the customer), day (required, YYYY-MM-DD inside the trip dates), sequence (required, order within the day), starts_at (required, ISO-8601), duration_minutes (optional, 5–720, defaults to the tenant's default visit length). The same customer may appear once per day. Each stop is a planned visit activity.

summary.documents_totals lists the raised value per currency; amounts are never added across currencies. summary.documents_total and summary.currency_code are set only when every document shares one currency (documents_total is 0 when there are none, and null when currencies are mixed).

A trip can be at most 31 days long. Each stop's day must be the local date (in the account timezone) of its starts_at; a mismatch returns 422 on stops.N.day.

Request​

Responses​

Created

Response Headers
    Content-Type