---
title: "Get the previous travel destination for a staff member on a given date. Used for chaining travel appointments (use last destination as next starting point)."
method: GET
path: "/Appointments/previous-travel-destination"
tags: ["Appointments"]
---

# Get the previous travel destination for a staff member on a given date. Used for chaining travel appointments (use last destination as next starting point).

`GET /Appointments/previous-travel-destination`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Appointments/previous-travel-destination`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Appointments/previous-travel-destination/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `staffId` string
- `date` string, date-time
- `beforeTime` string, date-time

## Response `200`

Previous travel destination information if found

- PreviousTravelDestinationDto: Response for getting the previous travel destination for chaining travel appointments
  - `found` boolean: Whether a previous travel destination was found
  - `address` string, nullable: The destination address from the previous travel appointment
  - `placeId` string, nullable: The Google Place ID of the destination
  - `appointmentId` string, nullable: The appointment ID of the previous travel appointment
  - `previousAppointmentEndTime` string, date-time, nullable: End time of the previous appointment (for calculating travel window)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
