List all the general cargo deliveries for the truck visit ID.

Supported Formats

json

Errors

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

Examples

curl --location --request GET 'https://app.octopi.co/api/v1/truck_visits/1546714/general_cargo_deliveries.json'     --header 'Content-Type: application/json'
    [
      {
        "general_cargo_delivery_url": "https://app.octopi.co/api/v1/truck_visits/1546714/general_cargo_deliveries/131175",
        "truck_visit_id": 1546714,
        "truck_driver": "Alvin Bryan (M 4492)",
        "started_at": "2021-08-24T13:24:57.858-04:00",
        "started_by": "Basil Depradine",
        "completed": true,
        "completed_at": "2021-08-24T13:35:00.891-04:00",
        "completed_by": {
          "id": 3140,
          "created_at": "2020-08-04T07:56:04.939-04:00",
          "updated_at": "2022-03-28T11:11:59.496-04:00",
          "organization_id": 8,
          "agent_id": null,
          "shipping_line_id": null,
          "consignee_id": null,
          "email": "ihumphrey@barbadosport.com",
          "firstname": "ISHA",
          "lastname": "HUMPHREY",
          "office_phone": "",
          "mobile_phone": "",
          "title": "CLERICAL OFFICER ",
          "address": "",
          "roles_users_count": 5,
          "work_location_type": "",
          "work_location_id": null,
          "trucking_company_id": null,
          "active": true,
          "is_equipment_operator": false,
          "high_contrast_ui": false,
          "freight_forwarder_id": null,
          "password_updated_at": "2020-08-04T08:05:02.805-04:00",
          "staff": false,
          "beta_tester": false,
          "locale": "en",
          "pending_approval": false,
          "broker_id": null,
          "name": "Isha Humphrey"
        },
        "delivered_at": "2021-08-24T13:35:00.888-04:00",
        "delivered_to": "",
        "updated_at": "2021-08-24T13:35:00.891-04:00",
        "remarks": "BAGS",
        "release_order": null,
        "delivery_order": null,
        "barge": null,
        "reopened_by": null,
        "total_delivered": 10.0,
        "pretty_weight": "18,377.06 KG",
        "delivery_items": [
          {
            "quantity": 10.0,
            "delivered_by": "Isha Humphrey",
            "delivered_to": "",
            "created_at": "2021-08-24T13:34:07.197-04:00",
            "updated_at": "2021-08-24T13:34:07.197-04:00",
            "delivery_order": null,
            "pickup_location": null,
            "id": 251874,
            "cargo_id": 2866358,
            "consignee_name": "ROCK HARD CEMENT LTD.",
            "holds": "0",
            "package_type": "",
            "description": "3830 PCS OF SLING BAGS

4347 PCS OF BIG BAGS

200 PCS SLING BAGS",
            "reference_number": "",
            "container_path": "/containers/2866358",
            "dock_receipt_number": "",
            "delivered_at": "2021-08-24 13:34:07 -0400",
            "shipping_marks": "",
            "pretty_weight": "18,377.06 KG",
            "extra_attributes": null,
            "vin": "",
            "bill_of_lading": {
              "id": 222444,
              "number": "BOL000001"
            }
          }
        ]
      }
    ]

Params

Param name Description
truck_visit_id
required

Truck visit ID.

Validations:

  • Must be a Integer