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

Transport documents - A.TR

With the Documents module, you create an A.TR movement certificate for goods traded between the EU and Turkey from your own platform. Shipment fills in the A.TR form and can generate the PDF.

Endpoint POST /erpservices/Documents/CreateAtrDocument
Authentication Bearer token, the same as for the other modules
Module Documents
One request One A.TR
declarationType 10
Sample file Download - A.TR example file (.json)

Endpoints

The A.TR has its own endpoint, not ImportDossier. Each request contains one A.TR.

Method Path Purpose
POST /erpservices/Documents/CreateAtrDocument Create an A.TR
POST /erpservices/Documents/UploadFile Upload a file for a saved A.TR
GET /erpservices/Documents?id={documentId} Download the PDF (optional, requires the right modules)

Put the URL of your product and environment ({base-url}) in front of the path:

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

Warning: the paths have no version number. Use /erpservices/Documents/CreateAtrDocument, not /erpservices/v1/Documents/CreateAtrDocument.

Control fields

There is no submission to an authority, but Shipment can generate the PDF.

Field Type Req. Description
applicationReferenceId string ✓ Your unique reference for this document. Never reuse it for a new document, not even when you send the same dataset again. Use the same reference to upload attachments for this document.
doNotSaveWhenInvalid boolean   Default false. true: an invalid document is not saved.
doPrintWhenValid boolean   Default false. true: Shipment generates the PDF when the document is valid.
dossierNumber string(30) ✓ The dossier the document belongs to. Use underscores, not hyphens.
documentNumber string(20)   Your document number. If you leave it out, Shipment generates one. [VERIFY]

Note: never reuse an applicationReferenceId for a new document, not even when you send the same dataset again. A duplicate returns HTTP 409.

Fields

The column On the form shows where the value is printed, where the specification says so.

atrDocument

Field Type Req. On the form Description
displayStamp boolean     Only with doPrintWhenValid. true: print the stamp on the document.
transportDocumentNumber string(20)     The transport document number.
transportDocumentDate datetime     The transport document date.
countryOfExportation string(30)     The country of exportation.
transportDetails string(407)     The transport details.
remarks string(407)     The remarks.
signingLocation string(21)     The signing location.
signingDate datetime     The signing date.
signature string(65)     The signature.
consignor object     See the object below.
consignee object     See the object below.
goodsItems array     Goods, see the object below.

atrDocument.consignor

Field Type Req. On the form Description
addressDescription string(305)   Box 1 A description of the address. Maximum 6 lines with 50 characters per line, separated by \n.
authorisedExporterAuthorisation string(70)   Box 12 The authorised exporter authorisation. Displayed on the stamp in

atrDocument.consignee

Field Type Req. On the form Description
addressDescription string(305)   Box 2 A description of the address. Maximum 6 lines with 50 characters per line, separated by \n.

atrDocument.goodsItems[]

Field Type Req. On the form Description
description string(120)     The description of the goodsitem.
quantity string(16)     The quantity of the goodsitem.

Multi-line text

Fields with a line limit accept line breaks. Separate the lines with \n:

"transportDetails": "Truck AB-123-C\nFerry Rotterdam - Istanbul"

Note: line breaks are allowed in CMR and A.TR fields, within the number of lines per field. They are not allowed in customs messages.

Response

Field Description
applicationReferenceId The reference you sent.
id ID of the document in Shipment.
declarationType 10.
isSaved Whether the document was saved.
isPrinted Whether the PDF was generated.
errors Validation errors. Empty if the document is valid.
documentId ID of the generated PDF. Use it to download the PDF.
documentNumber The document number you sent, or the one Shipment generated.
importFileNames Names of files that belong to the document. Upload them separately, after the document is saved.

Upload files

POST /erpservices/Documents/UploadFile?applicationReferenceId=…

If the response lists importFileNames, upload each file as a multipart form with the applicationReferenceId of the A.TR. Files can only be uploaded after the A.TR is saved. [TO DO: example request]

Download the PDF

Optional, requires the right modules.

GET {base-url}/erpservices/Documents?id={documentId}
Authorization: Bearer <access_token>

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

HTTP 204 means no document was found for that ID. Shipment can also notify you when a document is ready. See the article Status updates.