# TruckVisitDetails - Get detailed appointment information for a specific truck visit

This API queries the appointment database to return comprehensive visit-level and move-level details
for the specified truck visit ID, including associated validation messages for each move.
Request Parameter:
- sVisitId (required): The unique truck visit identifier. Must be a valid numeric value (e.g., "2505094394319").
Response:
The response contains:
- Status: A status code and reason phrase indicating the result of the request.
- Visit: Visit-level details including TruckVisit_Id, business date, calendar date, visit time window (VisitFrom_Tm, VisitTo_Tm), truck plate number, facility code, trucking company SCAC, company name, visit display name, external visit reference number, and dual transaction flag.
- Moves: A list of moves associated with the visit, each containing appointment ID, appointment time window, appointment type and status (code and description), TOS status, container number, cargo reference, chassis number, genset number, shipping line, equipment ISO code, block info, vessel/voyage, seal numbers, external appointment reference, error severity, cancellation info, and create/modify timestamps.
- Messages: Each move includes a list of validation/error messages with error number, description, and severity indicator.

Endpoint: GET /api/appointment/truckvisitdetails
Version: 1.0

## Query parameters:

  - `sVisitId` (string)
    The unique truck visit identifier. Must be a valid numeric string.

## Header parameters:

  - `X-Cargosprint-Api-Key` (string, required)
    The company API key provided by Cargosprint.

  - `X-Cargosprint-User-Key` (string, required)
    The API key of the user to be impersonated.

## Response 200:

  - `200` (unknown)
    Truck visit details retrieved successfully.

## Response 200 fields (application/json):

  - `status` (object)

  - `status.statusCode` (integer)

  - `status.reasonPhrase` (string)

  - `visit` (object)

  - `visit.truckVisit_Id` (integer)

  - `visit.visitBusn_Dt` (string)

  - `visit.visitCaln_Dt` (string)

  - `visit.visitFrom_Tm` (string)

  - `visit.visitTo_Tm` (string)

  - `visit.truckPlate_Nbr` (string)

  - `visit.faclility_Cd` (string)

  - `visit.truckingCompanySCAC` (string)

  - `visit.company_Nm` (string)

  - `visit.visitDisplay_Nm` (string)

  - `visit.externalVisitRef_Nbr` (integer)

  - `visit.dual_Flg` (string)

  - `moves` (array)

  - `moves.gateAppt_Id` (integer)

  - `moves.gateApptStart_DtTm` (string)

  - `moves.gateApptEnd_DtTm` (string)

  - `moves.driverOwnChs_Flg` (string)

  - `moves.apptType_Cd` (string)

  - `moves.apptType_Dsc` (string)

  - `moves.apptStatus_Cd` (string)

  - `moves.apptStatus_Dsc` (string)

  - `moves.tosStatus_Cd` (string)

  - `moves.container_Num` (string)

  - `moves.cargoRef_Num` (string)

  - `moves.chassis_Num` (string)

  - `moves.genset_Num` (string)

  - `moves.shippingLine_Cd` (string)

  - `moves.con_Cd` (string)

  - `moves.equipmentISO_Cd` (string)

  - `moves.block_Num` (string)

  - `moves.blockType_Cd` (string)

  - `moves.ship_Cd` (string)

  - `moves.voy_Num` (string)

  - `moves.seal1_Num` (string)

  - `moves.seal2_Num` (string)

  - `moves.seal3_Num` (string)

  - `moves.seal4_Num` (string)

  - `moves.externalApptRef_Nbr` (integer)

  - `moves.errSeverity_Ind` (integer)

  - `moves.cancelBy` (string)

  - `moves.create_DtTm` (string)

  - `moves.modify_DtTm` (string)

  - `moves.messages` (array)

  - `moves.messages.gateAppt_Id` (integer)

  - `moves.messages.gateApptErr_Num` (integer)

  - `moves.messages.gateApptErr_Dsc` (string)

  - `moves.messages.errSeverity_Ind` (integer)

## Response 400:

  - `400` (unknown)
    Bad request. The sVisitId parameter is missing or empty.

## Response 400 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 401:

  - `401` (unknown)
    Unauthorized. The client must authenticate itself to get the requested response.

## Response 401 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 403:

  - `403` (unknown)
    Forbidden. The client does not have access rights to the content.

## Response 403 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 404:

  - `404` (unknown)
    No visit found for the specified sVisitId.

## Response 404 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (integer)

  - `detail` (string)

  - `instance` (string)

## Response 500:

  - `500` (unknown)
    An internal server error occurred while processing the request.

