Creates a truck visit.

Supported Formats

json

Errors

Code Description
404 Not found.
422 Unprocessable Entity.
500 Internal Server Error.

Examples

curl "https://app.octopi.co/api/v1/truck_visits.json" -d '{"truck_driver_number": "1231NU78","gate":"North Gate","truck":"ABC123"}' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOURTOKEN"
{
    "id": 269708,
    "gated_in_at": "2018-09-05T18:41:17.422Z",
    "gated_out_at": null,
    "gate_name": "Cargo Gate (LCL)",
    "truck_driver": "Norman Greaves"
}
{"error": "Truck is already at the terminal."}

Params

Param name Description
truck_driver_number
required

Validations:

  • Must be String

truck
required

Validations:

  • Must be String

gate
required

Validations:

  • Must be String