Supported Formats

json

Errors

Code Description
404 Resource Not Found
422 Validation Error
500 Internal Server Error

Examples

curl 'https://app.octopi.co/api/v1/voyages/VOYAGE_NUMBER/tallies' \
  -X 'POST' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Token token=YOURTOKEN' \
  -d '{
    "tally": {
      "tally_type": "loading"
    }
  }'
{
  "tallies": [
    {
      "id": 39,
      "name": "OCTORJ 20240512 Discharge",
      "tally_type": "discharge",
      "voyage": {
        "number": "20240512"
      },
      "created_by": {
        "name": "System"
      },
      "created_at": "2025-12-05T05:29:58-05:00"
    },
    {
      "id": 40,
      "name": "OCTORJ 20240512 Loading",
      "tally_type": "loading",
      "voyage": {
        "number": "20240512"
      },
      "created_by": {
        "name": "System"
      },
      "created_at": "2025-12-05T05:31:46-05:00"
    }
  ]
}

Params

Param name Description
voyage_number
required

Validations:

  • Must be a String

tally
optional

Validations:

  • Must be a Hash

tally[tally_type]
optional

If this value is not provided, both tallies will be created

Validations:

  • Must be one of: discharge, loading.