/api/p/v{version}/trips/{tripId}/stops/{stopId}/appointment

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Updates the scheduling information for a specific stop within a trip.

This endpoint allows updating the stop appointment details including:

  • schedule type
  • loading type
  • appointment date
  • appointment request / confirmation flags
  • delivery window (for FCFS stops)

The response returns the updated stop object.


Endpoint

PUT /api/p/v{version}/trips/{tripId}/stops/{stopId}/appointment

Request Parameters

ParameterTypeRequiredDescription
versionstringYesAPI version (e.g. 1.0).
tripIdstringYesUnique identifier of the trip.
stopIdstringYesUnique identifier of the stop.

Request Body

FieldTypeRequiredDescription
ScheduleTypestringYesSchedule type of the stop (APPT or FCFS).
LoadingTypestringYesLoading type (Live, Drop, Hook, Drop&Hook).
AppointmentDatestring (datetime)ConditionalAppointment date and time in ISO-8601 UTC format. Required when ScheduleType = APPT.
AppointmentRequestedbooleanYesIndicates whether an appointment has been requested.
AppointmentConfirmedbooleanYesIndicates whether the appointment has been confirmed.
WindowBeginstring (datetime)ConditionalStart of the delivery window in ISO-8601 UTC format. Required when ScheduleType = FCFS.
WindowEndstring (datetime)NoEnd of the delivery window in ISO-8601 UTC format. Used when ScheduleType = FCFS. If provided alongside WindowBegin, must be after WindowBegin.
⚠️

Conditional validation rules:

  • If ScheduleType = APPT, you must provide AppointmentDate.
  • If ScheduleType = FCFS, you must provide WindowBegin.
  • If both WindowBegin and WindowEnd are provided, WindowBegin must be earlier than WindowEnd.

Example Request Body

{
  "ScheduleType": "string",
  "LoadingType": "string",
  "AppointmentDate": "string",
  "AppointmentRequested": true,
  "AppointmentConfirmed": true,
  "WindowBegin": "string",
  "WindowEnd": "string"
}

Example CURL request

curl --location --request PUT 'https://integrations.alvys.com/api/p/v1/trips/{tripId}/stops/{stopId}/appointment' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "ScheduleType": "APPT",
  "LoadingType": "Live",
  "AppointmentDate": "2026-03-16T12:45:43.262Z",
  "AppointmentRequested": true,
  "AppointmentConfirmed": true
}'

Replace:

  • {version} with the API version (for example 1)
  • {tripId} with the actual trip ID
  • {stopId} with the stop ID
  • YOUR_ACCESS_TOKEN with your Bearer token

Response Parameters

ParameterTypeDescription
idstringUnique identifier of the stop.
address.streetstringStreet address of the stop location.
address.citystringCity of the stop location.
address.statestringState of the stop location.
address.zipCodestringZIP code of the stop location.
appointmentConfirmedbooleanIndicates whether the appointment has been confirmed.
appointmentDatestring (datetime)Appointment date and time for the stop.
appointmentRequestedbooleanIndicates whether an appointment has been requested.
arrivedAtstring (datetime)Timestamp when the stop was marked as arrived (UTC).
departedAtstring (datetime)Timestamp when the stop was marked as departed (UTC).
scheduleTypestringSchedule type (APPT or FCFS).
loadingTypestringLoading type (Live, Drop, Hook, etc.).
stopTypestringType of stop (Pickup, Delivery, Waypoint).
statusstringOperational status of the stop.
coordinates.latitudestringLatitude of the stop location.
coordinates.longitudestringLongitude of the stop location.
references[]arrayList of references associated with the stop.
references[].idstringReference identifier.
references[].referenceIdstringExternal reference identifier.
references[].namestringName of the reference field.
references[].valuestringValue of the reference.
references[].typestringType of reference.
references[].accessstringAccess level (Public, Internal).
references[].originstringOrigin of the reference.
companyIdstringIdentifier of the company associated with the stop.
companyNumberstringCompany registration or identification number.
companyNamestringCompany name associated with the stop.

Example Response

{
  "AppointmentRequested": true,
  "AppointmentConfirmed": true,
  "AppointmentDate": "2026-03-16T12:45:43.262Z",
  "ScheduleType": "string",
  "LoadingType": "string",
  "Id": "string",
  "Address": {
    "Street": "string",
    "City": "string",
    "State": "string",
    "ZipCode": "string"
  },
  "Coordinates": {
    "Latitude": "string",
    "Longitude": "string"
  },
  "Status": "string",
  "StopType": "string",
  "ArrivedAt": "2026-03-16T12:45:43.262Z",
  "DepartedAt": "2026-03-16T12:45:43.262Z",
  "References": [
    {
      "Id": "string",
      "ReferenceId": "string",
      "Name": "string",
      "Value": "string",
      "Type": "string",
      "Access": "string",
      "Origin": "string"
    }
  ],
  "CompanyId": "string",
  "CompanyNumber": "string",
  "CompanyName": "string"
}

Status Codes

Status CodeDescription
200 OKStop appointment successfully updated.
400 Bad RequestInvalid request body.
404 Not FoundTrip or stop could not be found.

Rate Limits

All endpoints are subject to API rate limits to ensure service stability and protect against traffic spikes.

Refer to the Rate Limits documentation for more information.

Path Params
string
required
string
required
string
required
Defaults to 1.0
Body Params
string
required
string
required
string | null
boolean
required
boolean
required
string | null
string | null
Headers
string
enum
Defaults to application/json
Allowed:
string
enum
Defaults to application/json-patch+json
Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json