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.
customers:writeGrant 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
- 201
- 401
- 403
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.