Compatible with ShipsGo
Dockflow serves the ShipsGo v2 ocean API. A client switches by changing its base URL and the value of its token.
What changes
| Setting | New value |
|---|---|
| Base URL | https://api.dockflow.com/compat/shipsgo/v2 |
X-Shipsgo-User-Token | A Dockflow API key, created in the API Console |
Paths, request bodies and response fields keep the ShipsGo v2 shape.
What is covered
| Call | What it does |
|---|---|
POST /ocean/shipments | Creates a shipment from a container or booking number, with an optional reference and carrier SCAC. A duplicate answers 409 ALREADY_EXISTS with the existing shipment. |
GET /ocean/shipments | Lists shipments, with filters on id and container number. |
GET /ocean/shipments/{id} | Reads one shipment. |
PATCH /ocean/shipments/{id} | Changes one shipment. |
DELETE /ocean/shipments/{id} | Deactivates and removes one shipment. |
GET /ocean/carriers | Lists the carriers by SCAC. |
- Container movements:
EMSH,GTIN,LOAD,DEPA,ARRV,DISC,GTOTandEMRT, each with statusACTorEST. - Shipment status:
NEW,INPROGRESS,BOOKED,LOADED,SAILING,ARRIVED,DISCHARGEDandUNTRACKED. - Route: port of loading, port of discharge, transshipment count, transit time and transit percentage.
- Errors: 401
UNAUTHORIZED, 403FORBIDDEN, 404NOT_FOUND, 409ALREADY_EXISTSand 422VALIDATION_FAILED. - Webhook:
OCEAN.SHIPMENTS.SHIPMENT_UPDATED, with the body{event, shipment}and theX-Shipsgo-Webhook-Signatureheader. - Response and error bodies are tested against the public ShipsGo v2 OpenAPI specification.
What is not covered
- Air endpoints.
- Followers and tags. Write calls answer 403 and reads return empty lists.
GET .../geojsonanswers 404. - List filters other than id and container number, and every
order_by. These answer 422. SHIPMENT_CREATEDandSHIPMENT_DELETEDwebhooks.X-Shipsgo-Credits-*andX-RateLimit-*headers,tokens.mapandroute.co2_emission.- Ids issued by ShipsGo. Shipment ids come from Dockflow, so open shipments are registered again through the create call.
Request example
curl -X POST https://api.dockflow.com/compat/shipsgo/v2/ocean/shipments \
-H "X-Shipsgo-User-Token: $DOCKFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"reference": "PO-1001", "container_number": "CSQU3054383"}'
Documentation
The mapping of fields and events is in the ShipsGo migration guide.
Other compatible APIs: project44, Windward, Cargoes Flow.