Create trip
Creates a new trip for the specified business. This endpoint is idempotent using the external_id field as the idempotency key.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Content-Type must be set to application/json.
Path Parameters
The UUID of the business.
Body
The UUID of the vehicle used for this trip.
The distance traveled in miles, as a decimal string.
The date of the trip (YYYY-MM-DD).
An optional external identifier for the trip. If provided and a trip with this external_id already exists, the existing trip will be updated instead of creating a new one.
The purpose classification of the trip.
UNREVIEWED, BUSINESS, PERSONAL The starting address of the trip.
The ending address of the trip.
An optional description or notes about the trip.
Response
Existing trip with matching external_id was updated.