Examples

curl -v -X PUT \\
  -H "Accept: application/json"  \\
  -H "Content-Type: application/json" \\
  -H "Authorization: Token token=YOUR_TOKEN" \\
  -d'{
        "goods":"linux laptops",
        "seal1":"SEAL1",
        "seal2":"SEAL2",
        "seal3":"SEAL3",
        "seal4":"SEAL4",
        "remarks":"remarks for stuffing",
        "booking":"BOOKING123",
        "consignee":"APPLE Inc",
        "truck":"TR2904",
        "weight":2000.34
      }' \\
  "https://app.octopi.co/api/v1/containers/CONTAINER_NUMBER/stuff"

Params

Param name Description
container_number
required

The container number.

Validations:

  • Must be a String

occurred_at
optional

when stuffing occurred, will use current time if not provided

Validations:

  • Must be a DateTime

goods
optional

goods stuffed into container

Validations:

  • Must be a String

seal1
optional

seal-1 added when stuffing is completed

Validations:

  • Must be a String

seal2
optional

seal-2 value when stuffing is completed

Validations:

  • Must be a String

seal3
optional

seal-3 value when stuffing is completed

Validations:

  • Must be a String

seal4
optional

seal-4 value when stuffing is completed

Validations:

  • Must be a String

remarks
optional

remarks for stuffing

Validations:

  • Must be a String

booking
optional

booking number provided by the truck for stuffing

Validations:

  • Must be a String

consignee
optional

consignee name that will receive the goods stuffed

Validations:

  • Must be a String

truck
optional

license plate of the truck from which container gets stuffed

Validations:

  • Must be a String

weight
optional

total weight of the container and its cargo. Uses the default weight unit that is configured for your organization. Weights will not be automatically converted if they are entered using a different weight unit.

Validations:

  • Must be a Float