The booking API endpoint allows querying for one booking.
Code | Description |
---|---|
400 | Bad Request. |
404 | Booking Not Found |
500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/bookings/MYBOOKING123.json" -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=ADD TOKEN HERE"
{ "booking_number": "MYBOOKING123", "number_of_units": 2, "goods": "Soccer Balls and A piano", "ship_name": "CMA CGM BRAZIL", "voyage_number": "0RT0SN1MA", "shipper": "Microsoft", "consignee": "APPLE", "port_of_loading": "USMIA", "port_of_discharge": "USPEF", "line_items": [ { "container_number": "SUDU3253351", "container_type": "20DV", "line_item_number": 1, "description": "Soccer Balls", "weight": 10000.0, "weight_unit_code": "kg", "temperature": 0.0, "temperature_unit": "F", "reefer_ventilation": null, "reefer_humidity": null, "hazmat_classes": [ ] }, { "container_number": "AMFU8527917", "container_type": "45CT", "line_item_number": 2, "description": "A piano", "weight": 15000.0, "weight_unit_code": "kg", "temperature": null, "temperature_unit": null, "reefer_ventilation": null, "reefer_humidity": null, "hazmat_classes": [ ] } ] }