openapi: 3.2.0
info:
title: Dsv Shipment details API
version: '1.0'
description: 'Operations tagged Shipment details across 2 of this provider''s published API definitions: dsv-generic-tracking-demo-v2-openapi.json, dsv-generic-visibilitydemo-v1-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.dsv.com/my-demo/tracking/v2
- url: https://api.dsv.com/my-demo/visibility/v1
security:
- apiKeyHeader: []
- apiKeyQuery: []
tags:
- name: Shipment details
paths:
/shipments/bookingId/{bookingId}:
get:
tags:
- Shipment details
summary: Shipment details by DSV Booking ID
description: 'Retrieve detailed shipment data for a specific shipment by searching the DSV booking ID received from API booking or bookings submitted via myDSV.
Authorization: client_id: api.demo@demo.dsv.com, client_secret: Demo12345
Sample Booking IDs: 40257145990010760574, 40257145990010760581 '
operationId: getShipmentByBookingId
parameters:
- name: bookingId
in: path
required: true
schema:
type: string
- name: Authorization
in: header
description: DSV Oauth header
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ShipmentDetailsAPI'
example:
bookingId: string
shipmentId: string
masterShipmentId: string
childShipmentIds:
- string
status: string
product:
name: Sea
billOfLading: Original
containerMode: FCL
containers:
- ref: TestContainerNumber1
type: 20RE
genset: true
temp: -20
dropOff: false
subModeOfTransport: FSA
parties:
sender:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
receiver:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
delivery:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
pickup:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
notify:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
freightPayer:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
bookingParty:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
carrier:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
party:
- address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
role: string
dateTime:
pickupTime:
date: '2020-08-30'
start: '2023-08-07'
end: '2023-08-07'
deliveryTime:
date: '2020-08-30'
start: '2023-08-07'
end: '2023-08-07'
references:
- type: string
value: string
bookedBy: string
events:
- eventDate: string
eventGroup: string
eventCode: string
eventDescription: string
eventType: string
eventTypeValue: string
location:
countryCode: string
unlocode: string
place: string
transportMode: string
vesselName: string
voyageId: string
packages:
- stackable: {}
length: 0
lengthUOM: string
loadingMeters: 0
palletSpace: 0
grossWeight: 0
netWeight: 0
quantity: 0
totalVolume: 0
volumeUOM: string
totalWeight: 0
width: 0
widthUOM: string
height: 0
heightUOM: string
packageType: BAG
temperatureMin: 0
temperatureMax: 0
description: string
shippingMarks: string
isDangerous: true
dangerous:
- className: string
subRisk: string
flashPoint: 0
limitedQuantity: true
marinePollutant: true
packingGroup: string
properShippingName: string
technicalName: string
technicalNameNational: string
temperatureFrom: 0
temperatureTo: 0
type: string
unCode: 0
tunnelCode: string
packagesCount: 0
packingKind: BAG
netQuantity: 0
netQuantityUnit: KG
grossQuantity: 0
grossQuantityUnit: KG
empty: true
containerNo: MAEU7654213
trackingNumbers:
- string
cargoAircraftOnly: true
temperatureControlled: true
goodsType: string
references:
- reference: string
qualifier: string
transport:
houseBillNumber: string
masterBillNumber: string
awb: string
originName: string
originCode: string
destinationName: string
destinationCode: string
containers:
- containerNumber: string
containerType: string
sealNumber: string
deliveryInstructions: string
pickupInstructions: string
shipmentNotes: string
incoterms:
code: string
location: string
serviceLevel:
code: string
description: string
goods:
grossWeightUom: string
grossWeightValue: 0
loadingMetersUom: string
loadingMetersValue: 0
quantityUom: string
quantityValue: 0
volumeUom: string
volumeValue: 0
description: string
issues:
- issueDate: string
issuePointCode: string
issuePointDescription: string
issuePartyCode: string
issuePartyDescription: string
issueTypeCode: string
issueTypeDescription: string
issueReasonCode: string
issueReasonDescription: string
issueNotes: string
issueResolved: string
publicShipmentId: string
carrierTrackingId: string
proofsOfDelivery:
- documentId: string
documentType: string
typeDescription: string
createDate: string
fileName: string
fileType: string
downloadUrl: string
selectedServices:
- name: string
code: string
details: {}
customs:
shippedOnboardDate: string
customsStatus: string
entryNumber:
- string
forwarder:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
removalMode: string
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDTO'
example:
code: ERR12345
message: 'Not found booking: 40257145990010785188'
fields:
- name: field_name
message: validation error
code: ERR12345
development:
message: string
exception: string
'404':
description: Not found
content:
'*/*':
schema:
type: object
examples:
default:
value: null
servers:
- url: https://api.dsv.com/my-demo/tracking/v2
/shipments/tmsId/{tmsId}:
get:
tags:
- Shipment details
summary: Shipment details by DSV Shipment ID
description: 'Retrieve detailed shipment data for a specific shipment by searching the DSV Shipment ID.
DEMO ACCOUNT
Authorization: client_id: api.demo@demo.dsv.com, client_secret: Demo12345
Sample TMS IDs: SDSV0069726, SDSV0069727, SDFW0090209 '
operationId: getShipmentByTmsId
parameters:
- name: tmsId
in: path
required: true
schema:
type: string
- name: Authorization
in: header
description: DSV Oauth header
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ShipmentDetailsAPI'
example:
bookingId: string
shipmentId: string
masterShipmentId: string
childShipmentIds:
- string
status: string
product:
name: Sea
billOfLading: Original
containerMode: FCL
containers:
- ref: TestContainerNumber1
type: 20RE
genset: true
temp: -20
dropOff: false
subModeOfTransport: FSA
parties:
sender:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
receiver:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
delivery:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
pickup:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
notify:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
freightPayer:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
bookingParty:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
carrier:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
party:
- address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
role: string
dateTime:
pickupTime:
date: '2020-08-30'
start: '2023-08-07'
end: '2023-08-07'
deliveryTime:
date: '2020-08-30'
start: '2023-08-07'
end: '2023-08-07'
references:
- type: string
value: string
bookedBy: string
events:
- eventDate: string
eventGroup: string
eventCode: string
eventDescription: string
eventType: string
eventTypeValue: string
location:
countryCode: string
unlocode: string
place: string
transportMode: string
vesselName: string
voyageId: string
packages:
- stackable: {}
length: 0
lengthUOM: string
loadingMeters: 0
palletSpace: 0
grossWeight: 0
netWeight: 0
quantity: 0
totalVolume: 0
volumeUOM: string
totalWeight: 0
width: 0
widthUOM: string
height: 0
heightUOM: string
packageType: BAG
temperatureMin: 0
temperatureMax: 0
description: string
shippingMarks: string
isDangerous: true
dangerous:
- className: string
subRisk: string
flashPoint: 0
limitedQuantity: true
marinePollutant: true
packingGroup: string
properShippingName: string
technicalName: string
technicalNameNational: string
temperatureFrom: 0
temperatureTo: 0
type: string
unCode: 0
tunnelCode: string
packagesCount: 0
packingKind: BAG
netQuantity: 0
netQuantityUnit: KG
grossQuantity: 0
grossQuantityUnit: KG
empty: true
containerNo: MAEU7654213
trackingNumbers:
- string
cargoAircraftOnly: true
temperatureControlled: true
goodsType: string
references:
- reference: string
qualifier: string
transport:
houseBillNumber: string
masterBillNumber: string
awb: string
originName: string
originCode: string
destinationName: string
destinationCode: string
containers:
- containerNumber: string
containerType: string
sealNumber: string
deliveryInstructions: string
pickupInstructions: string
shipmentNotes: string
incoterms:
code: string
location: string
serviceLevel:
code: string
description: string
goods:
grossWeightUom: string
grossWeightValue: 0
loadingMetersUom: string
loadingMetersValue: 0
quantityUom: string
quantityValue: 0
volumeUom: string
volumeValue: 0
description: string
issues:
- issueDate: string
issuePointCode: string
issuePointDescription: string
issuePartyCode: string
issuePartyDescription: string
issueTypeCode: string
issueTypeDescription: string
issueReasonCode: string
issueReasonDescription: string
issueNotes: string
issueResolved: string
publicShipmentId: string
carrierTrackingId: string
proofsOfDelivery:
- documentId: string
documentType: string
typeDescription: string
createDate: string
fileName: string
fileType: string
downloadUrl: string
selectedServices:
- name: string
code: string
details: {}
customs:
shippedOnboardDate: string
customsStatus: string
entryNumber:
- string
forwarder:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
removalMode: string
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDTO'
example:
code: ERR12345
message: 'Not found booking: 40257145990010785188'
fields:
- name: field_name
message: validation error
code: ERR12345
development:
message: string
exception: string
'404':
description: Not found
content:
'*/*':
schema:
type: object
examples:
default:
value: null
servers:
- url: https://api.dsv.com/my-demo/tracking/v2
/shipments/reference/{*reference}:
get:
tags:
- Shipment details
summary: Shipment details by Customer reference
description: Retrieve detailed shipment data for a specific shipment by searching a Customer reference.
operationId: getShipmentByReference
parameters:
- name: '*reference'
in: path
required: true
schema:
type: string
- name: Authorization
in: header
description: DSV Oauth header
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ShipmentDetailsAPI'
example:
bookingId: string
shipmentId: string
masterShipmentId: string
childShipmentIds:
- string
status: string
product:
name: Sea
billOfLading: Original
containerMode: FCL
containers:
- ref: TestContainerNumber1
type: 20RE
genset: true
temp: -20
dropOff: false
subModeOfTransport: FSA
parties:
sender:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
receiver:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
delivery:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
pickup:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
notify:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
freightPayer:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
bookingParty:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
carrier:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
party:
- address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
role: string
dateTime:
pickupTime:
date: '2020-08-30'
start: '2023-08-07'
end: '2023-08-07'
deliveryTime:
date: '2020-08-30'
start: '2023-08-07'
end: '2023-08-07'
references:
- type: string
value: string
bookedBy: string
events:
- eventDate: string
eventGroup: string
eventCode: string
eventDescription: string
eventType: string
eventTypeValue: string
location:
countryCode: string
unlocode: string
place: string
transportMode: string
vesselName: string
voyageId: string
packages:
- stackable: {}
length: 0
lengthUOM: string
loadingMeters: 0
palletSpace: 0
grossWeight: 0
netWeight: 0
quantity: 0
totalVolume: 0
volumeUOM: string
totalWeight: 0
width: 0
widthUOM: string
height: 0
heightUOM: string
packageType: BAG
temperatureMin: 0
temperatureMax: 0
description: string
shippingMarks: string
isDangerous: true
dangerous:
- className: string
subRisk: string
flashPoint: 0
limitedQuantity: true
marinePollutant: true
packingGroup: string
properShippingName: string
technicalName: string
technicalNameNational: string
temperatureFrom: 0
temperatureTo: 0
type: string
unCode: 0
tunnelCode: string
packagesCount: 0
packingKind: BAG
netQuantity: 0
netQuantityUnit: KG
grossQuantity: 0
grossQuantityUnit: KG
empty: true
containerNo: MAEU7654213
trackingNumbers:
- string
cargoAircraftOnly: true
temperatureControlled: true
goodsType: string
references:
- reference: string
qualifier: string
transport:
houseBillNumber: string
masterBillNumber: string
awb: string
originName: string
originCode: string
destinationName: string
destinationCode: string
containers:
- containerNumber: string
containerType: string
sealNumber: string
deliveryInstructions: string
pickupInstructions: string
shipmentNotes: string
incoterms:
code: string
location: string
serviceLevel:
code: string
description: string
goods:
grossWeightUom: string
grossWeightValue: 0
loadingMetersUom: string
loadingMetersValue: 0
quantityUom: string
quantityValue: 0
volumeUom: string
volumeValue: 0
description: string
issues:
- issueDate: string
issuePointCode: string
issuePointDescription: string
issuePartyCode: string
issuePartyDescription: string
issueTypeCode: string
issueTypeDescription: string
issueReasonCode: string
issueReasonDescription: string
issueNotes: string
issueResolved: string
publicShipmentId: string
carrierTrackingId: string
proofsOfDelivery:
- documentId: string
documentType: string
typeDescription: string
createDate: string
fileName: string
fileType: string
downloadUrl: string
selectedServices:
- name: string
code: string
details: {}
customs:
shippedOnboardDate: string
customsStatus: string
entryNumber:
- string
forwarder:
address:
companyName: Test Company Name Inc.
addressId: AddressID123
addressLine1: Test Address Line 1
addressLine2: Test Address Line 2
addressLine3: string
city: Test Address City
countryCode: DK
state: range[-infinity, 40]
zipCode: '1234'
instructions: Specific Address Party Instrution
mdm: '6412345678'
contact:
name: Test Name
email: testemail@testcompany.com
telephone: '+4512345678'
removalMode: string
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDTO'
example:
code: ERR12345
message: 'Not found booking: 40257145990010785188'
fields:
- name: field_name
message: validation error
code: ERR12345
development:
message: string
exception: string
servers:
- url: https://api.dsv.com/my-demo/tracking/v2
/shipments/deviceReadings:
post:
tags:
- Shipment details
summary: Get device readings by search filter
description: Retrieve detailed device readings by search filter
operationId: Shipment_Post
parameters:
- name: api-version
in: header
description: api-version
schema:
type: string
example: 1
- name: Authorization
in: header
description: Insert your Access Token
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceReadingFilterDto'
example:
shipmentId: SH0000000000
measuredAtStartDateTime: '2023-01-01T12:00:00.0000000+00:00'
measuredAtEndDateTime: '2023-01-31T11:59:00.0000000+00:00'
measuredAtPredefinedRange: PAST_MONTH
responses:
'200':
description: ''
content:
application/json:
schema:
$ref: '#/components/schemas/DeviceReadingResultModelDto'
example:
shipmentId: SH0000000000
shipmentStatus: Delivered
transportType: FTL
info: null
referenceType05: '050000000000000000000'
stages:
- Road
- Rail
- Air
readings:
- id: xxxxxxx
trackerReadingId: null
type: Device
measuredAt: '2023-08-16T11:00:59.0000000+00:00'
geoMode: GSM
latitude: 55.291673
longitude: 12.444475
address: Demo city, Denmark
batteryLevel: 53
temperature: 26.21
probeTemperature: 26.21
humidity: 47.91
light: 23.59
shock: 0.96
- id: yyyyyyy
trackerReadingId: null
type: Device
measuredAt: '2023-08-16T01:58:58.0000000+00:00'
geoMode: GPS
latitude: 0
longitude: 0
address: Demo city, Denmark
batteryLevel: 57
temperature: 23.26
probeTemperature: 26.55
humidity: 54.79
light: 20.58
shock: 1.01
- id: zzzzzzz
trackerReadingId: null
type: Device
measuredAt: '2023-08-16T01:28:59.0000000+00:00'
geoMode: GPS
latitude: 55.291673
longitude: 12.444475
address: Demo, Denmark
batteryLevel: 57
temperature: 23.25
probeTemperature: 22.23
humidity: 54.97
light: 21.71
shock: 1
'400':
description: ''
'500':
description: ''
servers:
- url: https://api.dsv.com/my-demo/visibility/v1
components:
schemas:
TransportApiDto:
type: object
properties:
houseBillNumber:
type: string
description: Identification of the Bill of Lading issued by DSV to the customer
masterBillNumber:
type: string
description: Identification of the Bill of Lading issued by the carrier to DSV
awb:
type: string
description: Air Waybill Number used by the underlying express carrier
originName:
type: string
description: Name of the first departure port/airport
originCode:
type: string
description: UN location code of the first departure port/airport
destinationName:
type: string
description: Name of the last arrival port/airport
destinationCode:
type: string
description: UN location code of the last arrival port/airport
scac:
type: string
description: The Standard Carrier Alpha Code, or SCAC Code, is a two to four-letter code used to identify vessel operating common carriers (VOCC)
carrierBookingRef:
type: string
description: Booking references from the carrier
description: This section carries the information about the main transport and some directly associated parameters applicable for "Air", "Sea", "Rail" shipments.
IncotermsDTO:
type: object
properties:
code:
type: string
description: Incoterms® Code according to Incoterms® 2020 standard
location:
type: string
description: The location element specified as the collection/delivery
description: Incoterms® describe the rights and obligations applicable between the buyer and seller of the goods being transported. They set out when transfer of liability and control take place, who pays for what and who is liable in the event of any damage or loss of goods in transit. For more information check the Incoterms® Information on https://www.dsv.com/en/insights/expert-opinions/what-are-incoterms
EventApiDto:
required:
- cancelled
type: object
properties:
eventDate:
type: string
description: 'The date/time of the event at the location the event took place. Format: 2020-07-13T22:00:00.000+0000'
format: date-time
eventLastModified:
type: string
description: 'The date/time of when event was last modified. Format: 2020-07-13T22:00:00.000+0000'
format: date-time
eventGroup:
type: string
description: 'Name of event group:
- Booking - Group for events related to the booking
- Pickup - Group for events related to the pick up for Road shipments
- Pickup / Received - Group for events related to the pick up or received for Air and Sea Shipments
- Main transport - Group for events related to multi-leg shipments
- Import Customs - Group for events related to import customs
- Export customs - Group for events related to import customs
- Delivery - Group for events related to the delivery'
eventCode:
type: string
description: 'Event code as provided by the Transport Management System:
- ACT - Set shipment to active
- ATC - Attach to Console
- ARV - Actual arrival (last port/airport)
- BOOKING - Booking
- CANCEL - Cancelled
- CLR - Customs cleared
- DCF - Actual delivery
- DEP - Actual departure (first port/airport)
- DLV - Container delivered
- ESTIMATED_DELIVERY - Estimated delivery
- ESTIMATED_PICKUP - Estimated pickup
- ETA - Estimated arrival (last port/airport)
- ETD - Estimated departure (first port/airport)
- FLO - Freight loaded
- FUL - Freight unloaded
- GIC - Arrived at warehouse
- GIN - Gate In
- GOC - Departure at warehouse
- GOU - Gate Out
- HPD - Held in depot
- IGC - Trailer arrived at collection address
- IGD - Trailer arrived at delivery address
- INA - Set shipment to inactive
- IRP - Cargo received
- NCE - No pickup at customer
- NDE - Not delivered at customer
- OFD - Out for delivery
- PCF - Actual pickup
- PUP - Container picked up
- REQUESTED_DELIVERY - Requested delivery
- REQUESTED_PICKUP - Requested pickup
- Z70 - Handover responsibility of cargo
- Z71 - Customs reported
- Z73 - Handover of cargo
- Z74 - Handover of documents
- RTC - Receipt Commenced
- CAV - Cargo Available
- Z72 - Customs Hold
- DOR - Delivery Order Received
- CCC - Customs Commenced
- DDI (POD) - Document Imported - POD
- DDI (CUI) - Clearance Instructions Received
- ECM - Export Customs Commenced
- ECC - Export Customs Cleared'
eventDescription:
type: string
description: Description of the event code
eventType:
type: string
description: "The associated element of this event:\n- SHIPMENT - DSV Shipment level event, \n- CONTAINER - Container level event (only \"Sea\" and \"Rail\" shipments), \n- COLLI - Package level event (only \"Road\" shipments)"
eventTypeValue:
type: string
description: ID of the shipment, container or package
location:
$ref: '#/components/schemas/LocationApiDto'
transportMode:
type: string
description: Mode of transport in case of multi-leg transport
vesselName:
type: string
description: Vessel name in case of multi-leg transport
voyageFlightNo:
type: string
description: Flight or vessel ID in case of multi-leg transport
cargoCutOff:
type: string
description: Cut off date and time of when the shipment must be ready in the port
format: date-time
cargoAvailability:
type: string
description: Cargo availability date
format: date-time
cancelled:
type: boolean
description: Indicates if the event has been cancelled
docsDue:
type: string
description: Documents due deadline
format: date-time
vgmCutOff:
type: string
description: The date and time when the verified gross mass check must be completed
format: date-time
description: Track and trace events
CustomsApiDto:
required:
- entryNumber
type: object
properties:
shippedOnboardDate:
type: string
description: Date when the cargo was loaded on the Vessel at the Port of Loading mentioned on the Bill of Lading
customsStatus:
type: string
description: "Customs status:\n- CLR - Import customs cleared\n- Z72 - Customs hold\n- CCC - Import customs commenced\n- ECC - Export customs cleared\n - ECM - Export customs commenced"
entryNumber:
type: array
items:
type: string
description: Customs Entry reference given by Customs authority in the local customs process
description: Customs Entry reference given by Customs authority in the local customs process
forwarder:
$ref: '#/components/schemas/BaseParty'
removalMode:
type: string
description: Mode of transport for a transit into another country
description: Customs data
FieldDTO:
type: object
properties:
name:
type: string
description: Error name
example: field_name
message:
type: string
description: Description of error
example: validation error
code:
type: string
description: Type of error
example: ERR12345
description: Field
Pickup:
type: object
properties:
address:
$ref: '#/components/schemas/Address'
contact:
$ref: '#/components/schemas/ContactPerson'
description: Name and address of the party shipment is picked up.
Party:
required:
- role
type: object
properties:
address:
$ref: '#/components/schemas/Address'
contact:
$ref: '#/components/schemas/ContactPerson'
role:
type: string
description: Business role of the party
description: Reserved for future use.
ProductApiDto:
required:
- name
type: object
properties:
name:
enum:
- Road
- Air
- Sea
- Rail
- Xpress
type: string
description: Main transport mode selection
example: Sea
billOfLading:
enum:
- Express
- Original
type: string
description: 'Select the Bill of Lading type.
Only available if product is "Sea".'
example: Original
containerMode:
enum:
- LCL
- FCL
type: string
description: 'Container mode:
- FCL: full container load
- LCL: less than container load
Only available for product "Sea" and "Rail".'
example: FCL
containers:
type: array
items:
$ref: '#/components/schemas/Container'
description: This section is only available for the products “Sea” and “Rail” when the Container mode is “FCL”. It is used to specify the required containers of a certain type. Additional attributes can be submitted for certain container types. More details on container types can be found at [link].
xml:
wrapped: true
dropOff:
type: boolean
description: "Pickup mode:\n- false = Pickup by DSV, \n- true = Cargo handover to DSV at Warehouse or Terminal\n\n(dropOff becomes mandatory when “dropOff” service is available in Shippers country and product is either “AIR”, “SEA” or “RAIL”)"
example: false
handover:
type: boolean
description: 'Delivery mode:
- false = Delivery by DSV
- true = Cargo handover by DSV
(handover becomes mandatory when "handover" service is available in Shippers country and product is either "AIR", "SEA" or "RAIL")'
example: false
subModeOfTransport:
enum:
- FAS
- FSA
type: string
description: 'Sub-mode of shipment transport:
- FSA = First sea then air
- FAS = First air then sea'
example: FAS
description: The product section carries the information about the main transport mode and some directly associated parameters, if any.
DateTimeSection:
type: object
properties:
pickupTime:
$ref: '#/components/schemas/DateTimeRange'
deliveryTime:
$ref: '#/components/schemas/DateTimeRange'
description: Date and time specification for the shipment
TypeValueDTO:
type: object
properties:
type:
type: string
description: 'Type of reference: