v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

Create a new log suggestion

post/v1/log_suggestions

Request body

log_idinteger required

Specify an ID for the log that you want to suggest or create.

dispatcher_idinteger required

Specify the ID of the dispatcher that will relay the suggestion to the driver.

ref_nostring

Specify the shipping document numbers if available.

carrier_namestring

Specify the name of the carrier for which you are creating this log suggestion.

carrier_streetstring

Specify the street of the carrier.

carrier_zipstring

Specify the zip code of the carrier.

terminal_streetstring

Specify the street of the terminal.

terminal_citystring

Specify the city of the terminal.

terminal_statestring

Specify the state of the terminal.

terminal_zipstring

Specify the zip code of the terminal.

originstring

Specify the origin or the starting point of the carrier.

destinationstring

Specify the destination of the carrier.

Response

201

Example response

{
  "log_suggestion": {
    "id": 12381,
    "driver_ids": [
      1061934
    ],
    "log_ids": [
      4490470
    ],
    "status": "suggested",
    "suggested_at": "2022-07-28T19:44:18Z",
    "drivers": [
      {
        "driver": {
          "id": 1061934,
          "first_name": "John",
          "last_name": "Smith",
          "eld_mode": "logs"
        }
      }
    ],
    "dispatchers": [
      {
        "dispatcher": {
          "id": 1054357,
          "first_name": "James",
          "last_name": "Robert"
        }
      }
    ],
    "suggested_changes": [
      {
        "field_name": "ref_no",
        "new_value": "Document 1, Document 2"
      }
    ]
  }
}