Code | Description |
---|---|
404 | Resource Not Found |
422 | Validation Error |
500 | Internal Server Error |
curl 'https://app.octopi.co/api/v1/container_weights' \ -X 'GET' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Token token=YOURTOKEN'
{ "total_count": 3, "container_weights": [ { "id": 123, "user": "John Doe", "container_id": 5281925, "container_number": "TEST7607347", "movement_id": 24491960, "declared_weight_kg": 40000, "verified_weight_kg": 40000, "reported_during": "Container Weight", "created_at": "2024-02-21T14:54:06.000-05:00", "event_created_at": "2024-02-21T14:55:06.000-05:00", "arrival_voyage_id": 123552, "arrival_voyage_number": "101S", "container_weight_receipt_url": "https://app.octopi.co/container_weights/123/print" }, { "id": 189, "user": "John Doe", "container_id": 5281925, "container_number": "TEST7607347", "movement_id": 24491960, "declared_weight_kg": 40000, "verified_weight_kg": 40000, "reported_during": "Gate In", "created_at": "2024-02-21T14:54:06.000-05:00", "event_created_at": "2024-02-21T14:55:06.000-05:00", "arrival_voyage_id": 123552, "arrival_voyage_number": "101S", "container_weight_receipt_url": "https://app.octopi.co/container_weights/189/print" }, { "id": 108, "user": "John Doe", "container_id": 5281925, "container_number": "TEST7607347", "movement_id": 24491960, "declared_weight_kg": 40000, "verified_weight_kg": 40000, "reported_during": "Container Weight", "created_at": "2024-02-21T14:54:06.000-05:00", "event_created_at": "2024-02-21T14:55:06.000-05:00", "arrival_voyage_id": 123552, "arrival_voyage_number": "101S", "container_weight_receipt_url": "https://app.octopi.co/container_weights/108/print" } ] }
Param name | Description |
---|---|
reported_during optional |
The movement type during which the container weight is created. Validations:
|
created_at optional |
The date and time when the container weight is created, in ISO 8601 format (Eg. 2023-08-18T14:00:00Z) in UTC. Validations:
|
arrival_voyage_id optional |
container or breakbulk Validations:
|
container_id optional |
Octopi ID of any container. Validations:
|
page optional |
Specify which page of results to fetch. This value defaults to 1. Validations:
|
per optional |
The number of container weights to be displayed. This value defaults to 10 and accepts a maximum of 100. Validations:
|