Dockflow V3Downstream API
The V3Downstream API from Dockflow, for v3downstream.
The V3Downstream API from Dockflow, for v3downstream.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/dockflow-com:dockflow-com-v3downstream-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Dockflow v3 V3Downstream API
version: 3.0.0
servers:
- url: https://api.dockflow.com
description: Production
- url: https://uat.dockflow.com
description: UAT
security:
- ApiKey: []
tags:
- name: V3Downstream
paths:
/v3/downstream/tradeflows:
post:
operationId: v3Downstream.post
summary: Upsert tradeflows
tags:
- V3Downstream
requestBody:
required: true
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/DownstreamTradeflow'
- type: array
items:
$ref: '#/components/schemas/DownstreamTradeflow'
responses:
'202':
description: The tradeflows passed validation and are queued for import.
content:
application/json:
schema:
type: object
properties:
status:
type: string
const: queued
tradeflows:
type: array
items:
type: object
properties:
tradeflow_reference:
type: string
warnings:
type: array
items:
type: string
required:
- tradeflow_reference
- warnings
required:
- status
- tradeflows
'400':
description: ''
content:
application/json:
schema:
anyOf:
- {}
- type: string
const: Content was not a valid JSON object.
- type: string
const: Content was not a valid JSON string.
/v3/downstream/tradeflows/{tradeflow_reference}:
delete:
operationId: v3Downstream.delete
summary: Delete a tradeflow
tags:
- V3Downstream
parameters:
- name: tradeflow_reference
in: path
required: true
schema:
type: string
- name: confirm
in: query
schema:
type: string
- name: hard
in: query
description: 'true deletes the tradeflow permanently. Default: it is deactivated.'
schema:
type: boolean
responses:
'500':
description: ''
content:
application/json:
schema:
type: string
const: Failed to process deletion.
'204':
description: 'The tradeflow was deactivated, or deleted with `hard=true`. The reference `*`
targets every tradeflow and needs `confirm=PRODUCTION` on production.'
content:
application/json:
schema:
type: string
enum:
- Tradeflow deleted.
- Tradeflow deactivated.
'404':
description: No tradeflow with this reference belongs to the token's entity.
content:
application/json:
schema:
type: string
const: Tradeflow not found.
'400':
description: ''
content:
application/json:
schema:
type: string
const: Bulk delete on production requires ?confirm=PRODUCTION parameter.
components:
schemas:
DownstreamTradeflow:
type: object
description: A tradeflow to create, or to update when its tradeflow_reference already exists.
properties:
tradeflow_reference:
type: string
description: Your unique reference for the tradeflow, for example a purchase order number.
examples:
- PO4564268
container_reference:
description: Container numbers (ISO 6346), as a string, an array of strings, or objects with custom properties.
anyOf:
- type: string
examples:
- ABCD1234567
- type: array
items:
anyOf:
- type: string
- type: object
properties:
reference:
type: string
examples:
- ABCD1234567
custom_properties:
type: object
description: Free-form key-value pairs stored on the container.
required:
- reference
container_references_complete:
type: boolean
description: When true, containers not listed are removed from the tradeflow. When omitted, the list is merged.
bill_of_lading_reference:
description: Bill of lading number, with the carrier prefix, as a string or an array.
anyOf:
- type: string
examples:
- MAEU123456789
- type: array
items:
type: string
bill_of_lading_references_complete:
type: boolean
description: When true, bills of lading not listed are removed.
booking_reference:
description: Booking number, as a string or an array.
anyOf:
- type: string
- type: array
items:
type: string
booking_references_complete:
type: boolean
description: When true, bookings not listed are removed.
active:
type: boolean
description: Set to false to deactivate the tradeflow.
carrier_name:
type: string
examples:
- Maersk
carrier_scac:
type: string
description: Carrier SCAC. A hint for which carrier to ask first; other carriers are still tried.
examples:
- MAEU
customer_name:
type: string
description: Adds one partner with the role customer.
customer_reference:
type: string
partners:
type: array
items:
type: object
properties:
name:
type: string
examples:
- Best Forwarder BV
role:
type: string
examples:
- forwarder
reference:
type: string
description: The partner's own reference for this tradeflow.
lead_contact:
type: string
description: Email or full name of an existing user at the partner.
required:
- name
partners_complete:
type: boolean
description: When true, partners not listed are removed.
team_name:
type: string
description: Name of an existing team. Ignored when no team matches.
lead_contact:
type: string
description: Email or full name of an existing user in your organisation. Ignored when no user matches.
port_of_loading:
type: string
description: 5-character UN/LOCODE.
examples:
- BEANR
port_of_discharge:
type: string
description: 5-character UN/LOCODE.
examples:
- USLAX
estimated_time_of_departure:
type: string
format: date-time
actual_time_of_departure:
type: string
format: date-time
estimated_time_of_arrival:
type: string
format: date-time
actual_time_of_arrival:
type: string
format: date-time
vessel:
type: string
incoterms:
type: string
examples:
- FOB
references:
type: object
properties:
house_bill_of_lading:
type: string
delivery_location:
type: string
delivery_event_date:
type: string
events:
type: array
description: Your own events on the tradeflow.
items:
type: object
properties:
message:
type: string
examples:
- delivery at client
container_reference:
type: string
location_name:
type: string
description: 5-character UN/LOCODE; any other value leaves the event without a location.
event_date:
type: string
format: date-time
actual:
type: boolean
description: Whether the event already happened (true) or is planned (false).
required:
- message
- event_date
free_time_overrides:
type: array
description: Free-time overrides, upserted per scope. Unlisted scopes are untouched.
items:
type: object
properties:
dwell_type:
type: string
enum:
- equipment_free_time_in_port
- equipment_free_time_out_of_port
- equipment_free_time_combined
- storage_free_time
- electricity_free_time
free_days:
type: integer
description: Required unless cancelled is true.
container_reference:
type: string
description: Scopes the override to one container. Absent means tradeflow-wide.
cancelled:
type: boolean
required:
- dwell_type
custom_references:
type: object
description: Flat key-value pairs you define. Values are stored as text; null or an empty string removes the key.
mock_tracking:
type: object
description: 'UAT only: generates a synthetic journey. Ignored in production.'
properties:
scenario:
type: string
examples:
- ocean_basic
required:
- tradeflow_reference
title: DownstreamTradeflow
securitySchemes:
ApiKey:
type: http
description: An API key, `{env}_{entity-slug}_{secret}`.
scheme: bearer