Overslaan naar inhoud
  • Er zijn geen suggesties want het zoekveld is leeg.

Overview

Preview. Shipments is a first version.
Fields and endpoints can still change.

With Shipments you send the logistic data of an export to Stratech Shipment once: the shipment and its deliveries.
Shipment then works out which documents, declarations and certificates are needed, and creates them from the same data.
This article explains the idea, the choices you make for your integration, and the endpoints.

Shipments and deliveries

Object What it is Contains for example
Shipment (Zending) One or more deliveries that are transported together. The shipment is the central export dossier. Transport, destination, parties, documents, declarations, status, audit trail, linked deliveries
Delivery (Levering) What is actually delivered. A delivery can exist on its own, before it is linked to a shipment. Goods items, quantities, weights, values, delivery place, dates

Put the data that is the same for all deliveries on the shipment.
Only send data on a delivery when that delivery is different.
When both have a value, the value of the delivery wins.

From data to documents

The usual way of working starts from a document: a user picks the document and fills it in.
Shipments turns this around.
You deliver the data first, and Shipment determines which documents and declarations the dossier needs.
In this first version these include:

Type Examples
Origin documents Certificate of Origin, EUR.1
Transport documents CMR
Customs documents A.TR, export declaration, transit declaration, port notification, Single Window
Health certificates NVWA phytosanitary, NVWA veterinary
Own documents Packing list, invoice and other uploads

A document can be about the whole shipment or about one delivery.
In the shipment, a task list shows what still needs action: documents to complete, declarations to submit, and answers from an authority.

Choose how you send the data

Decide this during the implementation of your integration.

Scenario 1: complete shipments

Your ERP already knows which deliveries are transported together.
You send the shipment with all its deliveries in one request.
See the article Create or replace a shipment.

  • Most automation and the fewest manual steps.
  • Shipment can determine the documents right away.
  • Suitable for manufacturers, trading companies, and companies that plan transport in their ERP.

Scenario 2: deliveries first

Your ERP sends separate deliveries.
See the article Deliveries.
Later the deliveries are bundled into shipments, in one of two ways:

  • A user bundles them in Shipment.
  • Your ERP bundles them with the request in the article Shipment from existing deliveries.
  • More flexibility, also with late transport planning.
  • Users keep control over which deliveries go together.
  • Suitable for forwarders, logistics service providers, and companies that plan transport dynamically.

References

Each shipment and delivery has two identifications.
The technical reference links your ERP to Shipment, and stays the same when the visible number changes.

Object Visible number Technical reference
Shipment shipmentNumber (max. 100) shipmentReferenceId (max. 250)
Delivery deliveryNumber (max. 100) deliveryReferenceId (max. 250)

All four must be unique.
A duplicate returns HTTP 409.

Endpoints

Method and path What it does Success
POST {base-url}/api/shipments Creates a shipment with its deliveries. Article Create or replace a shipment. 201
PUT {base-url}/api/shipments/{shipmentReferenceId} Replaces a shipment and its list of deliveries. Same article. 200
POST {base-url}/api/shipments/by-deliveries Creates a shipment from existing deliveries. Article Shipment from existing deliveries. 201
POST {base-url}/api/deliveries Creates a delivery. Article Deliveries. 201
PUT {base-url}/api/deliveries/{deliveryReferenceId} Replaces a delivery. Same article. 200

Replace {base-url} with the URL of your product and environment:

Product and environment {base-url}
Stratech Shipment – Test https://test-{prefix}.shipment-stratech.nl
Stratech Shipment – Production https://{prefix}.stratechshipment.nl
Beurtvaartadres ShipmentManager – Test https://{prefix}.accshipmentmanager.eu
Beurtvaartadres ShipmentManager – Production https://{prefix}.shipmentmanager.eu

[VERIFY: is {base-url} the same as for the other modules?]

Authentication is OAuth 2.0 with the scope erpservice, the same Client ID, Client Secret and token as for the other modules.
See the article Authentication (OAuth 2.0).
Send Content-Type: application/json.

General rules

  • PUT replaces everything. An optional field you leave out becomes empty.
    Always send the complete shipment or delivery.
  • Address book or one-time address. For a party (consignee, carrier, guarantor, transport arranger) send either code from the address book or oneTimeAddress, not both.
    The consignor always comes from the address book.
    The same applies to the delivery place: locationCode or oneTimeLocation.
  • Unknown fields are rejected. The specification allows no fields that are not in it.
  • Goods items are always part of a delivery.
    All fields are in the article Goods items.

Errors

Errors come back as problem details (RFC 9457) with Content-Type: application/problem+json. The field errors has the validation errors per field.
For errors about deliveries, deliveryReferenceIds lists the deliveries that caused the error.

{
"title": "One or more validation errors occurred.",
"status": 400,
"errors": {
"shipment.shipmentNumber": ["The shipmentNumber field is required."]
}
}

[VERIFY: example error text]

Status updates

[VERIFY: does Shipment send status updates for shipments and deliveries, or only for the documents and declarations created from them?]