Create a general cargo delivery for a truck visit.

Supported Formats

json

Errors

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

Examples

curl --location --request POST 'https://app.octopi.co/api/v1/truck_visits/1546714/general_cargo_deliveries.json'     --header 'Content-Type: application/json'     --data-raw '{
  "bill_of_lading_number": "BL234234"
  "delivery_order_number": "DO234234"
  "remarks": "BAGS"
}'
       {
          "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": false,
          "completed_at": "",
          "completed_by": null,
          "delivered_at": null,
          "delivered_to": "",
          "updated_at": null,
          "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": null,
                  "delivered_to": null,
                  "created_at": "2021-08-24T13:34:07.197-04:00",
                  "updated_at": null,
                  "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": null,
                  "shipping_marks": "",
                  "pretty_weight": "18,377.06 KG",
                  "extra_attributes": null,
                  "vin": ""
              }
          ]
      }

Params

Param name Description
truck_visit_id
required

Truck visit ID.

Validations:

  • Must be a Integer

bill_of_lading_number
optional

Bill of lading number for the general cargo delivery.

Validations:

  • Must be a String

delivery_order_number
optional

Delivery order number for the general cargo delivery.

Validations:

  • Must be a String

remarks
optional

Remarks for the general cargo delivery.

Validations:

  • Must be a String