-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCS_v1.0.3.yaml
More file actions
2003 lines (1918 loc) · 90.3 KB
/
CS_v1.0.3.yaml
File metadata and controls
2003 lines (1918 loc) · 90.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: DCSA OpenAPI specification for Commercial Schedules
version: 1.0.3
description: |
API specification issued by [Digital Container Shipping Association (DCSA)](https://dcsa.org/).
The Commercial Schedules API offers BCOs, LSPs, and Solution Platforms three different methods and endpoints to access schedules from carriers based on their specific needs: Point-to-Point Routings, Port Schedules, and Vessel Schedules.
**Commercial schedules - point-to-point routings**: provides the product offering of single or multiple estimated end-to-end route options for a shipment in the pre-booking phase. This includes point-to-point specification of all transport legs, estimated timings, estimated schedules and interdependencies between transport legs.
**Commercial schedules - port schedules**: provides, for a required specific port and starting date, the set of all vessels arriving and departing from the port with the corresponding estimated timestamps.
**Commercial schedules - vessel schedules**: provides, for a required specific service and/or voyage and/or vessel and/or location, the timetable of estimated departure and arrival times for each port call on the rotation of the vessel(s).
**All use cases mentioned in this API specification refer to use cases defined in the Commercial Schedules Interface Standard.**
The Commercial Schedules endpoints can be implemented independently:
`1. GET /v1/point-to-point-routes # For Point to Point Routings`
`2. GET /v1/port-schedules # For Port Schedules`
`3. GET /v1/vessel-schedules # For Vessel Schedules`
Visit the [DCSA Website](https://dcsa.org/standards/commercial-schedules/) to find other documentation related to the standard publication (i.e. Interface Standard, Information Model).
### API Design & Implementation Principles
This API follows the guidelines defined in version 2.0 of the API Design & Implementation Principles which can be found on the [DCSA Developer page](https://developer.dcsa.org/api_design).
For a changelog please click [here](https://github.com/dcsaorg/DCSA-OpenAPI/tree/master/cs/v1#v103). If you have any questions, feel free to [Contact Us](https://dcsa.org/get-involved/contact-us).
license:
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
name: Apache 2.0
contact:
name: Digital Container Shipping Association (DCSA)
url: 'https://dcsa.org/'
email: info@dcsa.org
paths:
/v1/point-to-point-routes:
get:
summary: Point to Point Routing
tags:
- Point To Point
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PointToPoint'
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
Next-Page-Cursor:
schema:
type: string
maxLength: 1024
example: fE9mZnNldHw9MTAmbGltaXQ9MTA
description: |
The `Next-Page-Cursor` header contains a cursor value that points to the next page of results in a paginated API response.
When an initial `GET` endpoint request includes the query parameter `limit=...` the API provider limits the number of items in the root array of the response to the specified limit. If the response would contain more items than the specified limit, the API provider includes only the first set of limit items and appends the following response header:
`Next-Page-Cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA`, a string that acts as a reference for the next page of results. The `Next-Page-Cursor` value is used in a subsequent request to retrieve the next page by passing it as a value in the `cursor`-query parameter: `cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA`.
To retrieve the next page, the API consumer sends a `GET` request to the endpoint URL with `cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA` as query parameter along with the limit of items per page and any other query parameters used in the original request. Filter parameters may not be altered and MUST be preserved when requesting subsequent pages.
'400':
description: Bad Request
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
Example 1:
value:
httpMethod: GET
requestUri: 'https://dcsa.org/cs/v1/point-to-point'
statusCode: 400
statusCodeText: Bad Request
providerCorrelationReference: 4426d965-0dd8-4005-8c63-dc68b01c4962
errorDateTime: '2019-11-12T07:41:00+08:30'
errors:
- errorCode: 7005
property: placeOfDelivery
value: SG
errorCodeText: invalidQuery
errorCodeMessage: PlaceOfDelivery does not exist
'500':
description: Internal Server Error
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
Example 1:
value:
httpMethod: GET
requestUri: 'https://dcsa.org/cs/v1/point-to-point'
statusCode: 500
statusCodeText: Internal Server Error
statusCodeMessage: Unable to process request
providerCorrelationReference: 4426d965-0dd8-4005-8c63-dc68b01c4962
errorDateTime: '2019-11-12T07:41:00+08:30'
errors:
- errorCode: 7007
property: UNLocationCode
value: NA
errorCodeText: invalidQuery
errorCodeMessage: UNLocationCode does not exist
operationId: get-v1-point-to-point
parameters:
- schema:
type: string
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
minLength: 5
maxLength: 5
example: NLAMS
in: query
name: placeOfReceipt
description: The `UNLocationCode` specifying where the place is located.
required: true
- schema:
type: string
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
minLength: 5
maxLength: 5
example: NLAMS
in: query
name: placeOfDelivery
description: The `UNLocationCode` specifying where the place is located.
required: true
- schema:
type: string
format: date
example: '2021-04-01'
in: query
name: departureStartDate
description: |
Limit the result based on the earliest departureDate.
- If provided without departureEndDate, returns all routings with departures from the specified departureStartDate onwards.
- If provided with departureEndDate, returns all routings with departures within the specified date range, inclusive of both dates.
- If the same date is provided for both departureStartDate and departureEndDate, returns all routings with departures on that specific date.
- schema:
type: string
format: date
example: '2021-05-01'
in: query
name: departureEndDate
description: |
Limit the result based on the latest departureDate.
- If provided without departureStartDate, returns all routings with departures up to the specified departureEndDate.
- If provided with departureStartDate, returns all routings with departures within the specified date range, inclusive of both dates.
- If the same date is provided for both departureStartDate and departureEndDate, returns all routings with departures on that specific date.
- schema:
type: string
format: date
example: '2021-04-01'
in: query
name: arrivalStartDate
description: |
Limit the result based on the earliest arrivalDate.
- If provided without arrivalEndDate, returns all routings with arrivals from the specified arrivalStartDate.
- If provided with arrivalEndDate, returns all routings with arrivals within the specified date range, inclusive of both dates.
- If the same date is provided for both arrivalStartDate and arrivalEndDate, returns all routings with arrivals on that specific date.
- schema:
type: string
format: date
example: '2021-05-01'
in: query
name: arrivalEndDate
description: |
Limit the result based on the latest arrivalDate.
- If provided without arrivalStartDate, returns all routings with arrivals up to the specified arrivalEndDate.
- If provided with arrivalStartDate, returns all routings with arrivals within the specified date range, inclusive of both dates.
- If the same date is provided for both arrivalStartDate and arrivalEndDate, returns all routings with arrivals on that specific date.
- schema:
type: integer
example: 1
format: int32
minimum: 0
in: query
name: maxTranshipment
description: |
Specifies the maximum number of transhipments that the proposed routings can have in the response. By default, transhipments are allowed and the responses can have either direct routings or routings with transhipment. The default value of maximum transhipments is defined by the carrier for when the consumer does not provide a value. If the user sets the number of transhipments to 0, only direct routings can be returned in the response.
**Note:** According to the DCSA definition, a “transhipment” specifically refers to transferring containers or cargo from one vessel to another, focusing exclusively on ocean transport. This means that, under the current interpretation, only vessel-to-vessel transfers are counted as transhipments. Moves between road, rail, or barge and a vessel (i.e., inland legs) do not fall under this definition and, therefore, should not be counted as transhipments.
- schema:
type: string
enum:
- CY
- SD
- CFS
maxLength: 3
example: CY
in: query
name: receiptTypeAtOrigin
description: |
Indicates the type of service offered at Origin. **Carriers can choose to define a default value when the consumer does not provide it.**
- `CY` (Container yard (incl. rail ramp))
- `SD` (Store Door)
- `CFS` (Container Freight Station)
- schema:
type: string
enum:
- CY
- SD
- CFS
maxLength: 3
example: CY
in: query
name: deliveryTypeAtDestination
description: |
Indicates the type of service offered at Destination. **Carriers can choose to define a default value when the consumer does not provide it.**
- `CY` (Container yard (incl. rail ramp))
- `SD` (Store Door)
- `CFS` (Container Freight Station)
- schema:
type: string
default: DRY
example: REEFER
in: query
name: cargoType
description: |
This parameter can influence:
* the routing solutions returned
* the feasibility of individual transport legs
* the reported footprint values, when provided
Possible values:
- `DRY` (For DRY cargo)
- `REEFER` (Reefer cargo)
The default value is `DRY` in case this filter parameter is not used.
- schema:
type: integer
format: int32
default: 100
example: 100
minimum: 1
in: query
name: limit
description: Specifies the maximum number of `Point-to-Point` objects to return.
- schema:
type: string
maxLength: 1024
in: query
name: cursor
description: A server generated value to specify a specific point in a collection result, used for pagination.
example: fE9mZnNldHw9MTAmbGltaXQ9MTA
- $ref: '#/components/parameters/Api-Version-Major'
description: |
Provides the product offering of single or multiple estimated end-to-end route options for a shipment in the pre-booking phase. This includes point-to-point specification of all transport legs, estimated timings, estimated schedules and interdependencies between transport legs.
The list of solutions returned in the response can be tailored to a specific need by combining available query parameters.
The minimum required query parameters are `placeOfReceipt` and `placeOfDelivery`. If no further query parameters are used to tailor the response, the provider of the GET endpoint will return their best suggestions in the response.
The `GET /v1/point-to-point-routes` endpoint can be implemented independently of having implemented the `GET /v1/port-schedules` and `GET /v1/vessel-schedules` endpoints.
/v1/port-schedules:
get:
summary: Port Schedule
tags:
- Port Schedule
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PortSchedule'
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
Next-Page-Cursor:
schema:
type: string
maxLength: 1024
example: fE9mZnNldHw9MTAmbGltaXQ9MTA
description: |
The `Next-Page-Cursor` header contains a cursor value that points to the next page of results in a paginated API response.
When an initial `GET` endpoint request includes the query parameter `limit=...` the API provider limits the number of items in the root array of the response to the specified limit. If the response would contain more items than the specified limit, the API provider includes only the first set of limit items and appends the following response header:
`Next-Page-Cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA`, a string that acts as a reference for the next page of results. The `Next-Page-Cursor` value is used in a subsequent request to retrieve the next page by passing it as a value in the `cursor`-query parameter: `cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA`.
To retrieve the next page, the API consumer sends a `GET` request to the endpoint URL with `cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA` as query parameter along with the limit of items per page and any other query parameters used in the original request. Filter parameters may not be altered and MUST be preserved when requesting subsequent pages.
'400':
description: Bad Request
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
Example 1:
value:
httpMethod: GET
requestUri: 'https://dcsa.org/cs/v1/port-schedule'
statusCode: 400
statusCodeText: Bad Request
providerCorrelationReference: 4426d965-0dd8-4005-8c63-dc68b01c4962
errorDateTime: '2019-11-12T07:41:00+08:30'
errors:
- errorCode: 7005
property: port
value: SG
errorCodeText: invalidQuery
errorCodeMessage: Port does not exist
'500':
description: Internal Server Error
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
Example 1:
value:
httpMethod: GET
requestUri: 'https://dcsa.org/cs/v1/port-schedule'
statusCode: 500
statusCodeText: Internal Server Error
statusCodeMessage: Cannot process request.
providerCorrelationReference: 4426d965-0dd8-4005-8c63-dc68b01c4962
errorDateTime: '2019-11-12T07:41:00+08:30'
errors:
- errorCode: 7007
property: UNLocationCode
value: NA
errorCodeText: invalidQuery
errorCodeMessage: UNLocationCode does not exist
operationId: get-v1-port-schedules
description: |
Provides, for a required specific port and starting date, the set of all vessels arriving and departing from the port with the corresponding estimated timestamps.
The port must be identified by its UN Location Code.
The required query parameters are `UNLocationCode` and `date`.
If the requested port (identified with `UNLocationCode`) has multiple terminals (identified with `facilitySMDGCode`), the response will include a sorted list that provides all the arrivals and departures of the vessels for each terminal of the port (`UNLocationCode`).
The `GET /v1/port-schedules` endpoint can be implemented independently of having implemented the `GET /v1/point-to-point-routes` and `GET /v1/vessel-schedules` endpoints.
parameters:
- schema:
type: string
maxLength: 5
example: NLAMS
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
minLength: 5
in: query
name: UNLocationCode
description: The UN Location code specifying where the place is located. Specifying this filter will only return the set of all vessels arriving and departing from the port and its terminals.
required: true
- schema:
type: string
format: date
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
example: '2023-07-01'
in: query
name: date
description: The date since when the estimated arrival and departures of vessels in a given port is required.
required: true
- $ref: '#/components/parameters/Api-Version-Major'
- schema:
type: integer
format: int32
default: 100
example: 100
minimum: 1
in: query
name: limit
description: Specifies the maximum number of `Port Schedule` objects to return.
- schema:
type: string
example: fE9mZnNldHw9MTAmbGltaXQ9MTA
maxLength: 1024
in: query
name: cursor
description: A server generated value to specify a specific point in a collection result, used for pagination.
/v1/vessel-schedules:
get:
summary: Vessel Schedule
tags:
- Vessel Schedule
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ServiceSchedule'
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
Next-Page-Cursor:
schema:
type: string
maxLength: 1024
example: fE9mZnNldHw9MTAmbGltaXQ9MTA
description: |
The `Next-Page-Cursor` header contains a cursor value that points to the next page of results in a paginated API response.
When an initial `GET` endpoint request includes the query parameter `limit=...` the API provider limits the number of items in the root array of the response to the specified limit. If the response would contain more items than the specified limit, the API provider includes only the first set of limit items and appends the following response header:
`Next-Page-Cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA`, a string that acts as a reference for the next page of results. The `Next-Page-Cursor` value is used in a subsequent request to retrieve the next page by passing it as a value in the `cursor`-query parameter: `cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA`.
To retrieve the next page, the API consumer sends a `GET` request to the endpoint URL with `cursor=fE9mZnNldHw9MTAmbGltaXQ9MTA` as query parameter along with the limit of items per page and any other query parameters used in the original request. Filter parameters may not be altered and MUST be preserved when requesting subsequent pages.
'400':
description: Bad Request
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
Example 1:
value:
httpMethod: GET
requestUri: 'https://dcsa.org/cs/v1/vessel-schedule'
statusCode: 400
statusCodeText: Bad Request
providerCorrelationReference: 4426d965-0dd8-4005-8c63-dc68b01c4962
errorDateTime: '2019-11-12T07:41:00+08:30'
errors:
- errorCode: 7007
property: UNLocationCode
value: NA
errorCodeText: invalidQuery
errorCodeMessage: UNLocationCode does not exist
'500':
description: Internal Server Error
headers:
API-Version:
schema:
type: string
example: 1.0.2
description: |
SemVer used to indicate the version of the contract (API version) returned.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
Example 1:
value:
httpMethod: GET
requestUri: 'https://dcsa.org/cs/v1/vessel-schedule'
statusCode: 500
statusCodeText: Internal Server Error
statusCodeMessage: Cannot process request.
providerCorrelationReference: 4426d965-0dd8-4005-8c63-dc68b01c4962
errorDateTime: '2019-11-12T07:41:00+08:30'
errors:
- errorCode: 7007
property: UNLocationCode
value: NA
errorCodeText: invalidQuery
errorCodeMessage: UNLocationCode does not exist
operationId: get-v1-vessel-schedule
parameters:
- schema:
type: string
minLength: 7
maxLength: 8
pattern: ^\d{7,8}$
example: '9321483'
in: query
name: vesselIMONumber
description: The unique reference for a registered Vessel. The reference is the International Maritime Organisation (IMO) number, also sometimes known as the Lloyd's register code, which does not change during the lifetime of the vessel.
- schema:
type: string
maxLength: 50
pattern: ^\S(?:.*\S)?$
example: King of the Seas
in: query
name: vesselName
description: The name of a vessel. The result will only return schedules including the vessel with the specified name. Be aware that the vesselName is not unique and might match multiple vessels.
- schema:
type: string
maxLength: 11
example: FE1
in: query
name: carrierServiceCode
description: The carrier specific service code to filter by. The result will only return schedules including the service code.
- schema:
type: string
pattern: ^SR\d{5}[A-Z]$
maxLength: 8
minLength: 8
example: SR12345A
in: query
name: universalServiceReference
description: The Universal Service Reference (USR) as defined by DCSA to filter by.
- schema:
type: string
maxLength: 50
example: 2103S
in: query
name: carrierVoyageNumber
description: The carrier specific identifier of a Voyage - can be both `importVoyageNumber` and `exportVoyageNumber`. The result will only return schedules including the Ports where `carrierVoyageNumber` is either `carrierImportVoyageNumber` or `carrierExportVoyageNumber`.
- schema:
type: string
pattern: ^\d{2}[0-9A-Z]{2}[NEWSR]$
maxLength: 5
example: 2201N
in: query
name: universalVoyageReference
description: The Universal Reference of a Voyage - can be both `importUniversalVoyageReference` and `exportUniversalVoyageReference`. The result will only return schedules including the Ports where `universalVoyageReference` is either `importUniversalVoyageReference` or `exportUniversalVoyageReference`.
- schema:
type: string
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
minLength: 5
maxLength: 5
example: NLAMS
in: query
name: UNLocationCode
description: The UN Location Code specifying where a port is located. Specifying this filter will only return schedules including entire Voyages related to this particular UN Location Code.
- schema:
type: string
maxLength: 6
example: APM
in: query
name: facilitySMDGCode
description: The facilitySMDGCode specifying a specific facility (using SMDG Code). Be aware that the `facilitySMDGCode` does not contain a `UNLocationCode` - this must be specified in the `UNLocationCode` filter. Specifying this filter will only return schedules including entire Voyages related to this particular `facilitySMDGCode`. It is recommended to specify a value for this query parameter only if a value is provided for `UNLocationCode`.
- schema:
type: string
example: MAEU
maxLength: 10
in: query
name: vesselOperatorCarrierCode
description: The carrier who is in charge of the vessel operation based on either the SMDG or SCAC code lists.
- schema:
type: string
format: date
example: '2020-04-06'
in: query
name: startDate
description: |
The start date of the period for which schedule information is requested. If a date of any Timestamp (ATA, ETA or PTA) inside a PortCall matches a date on or after (≥) the `startDate` the entire Voyage (import- and export-Voyage) matching the PortCall will be included in the result. All matching is done towards local Date at the place of the port call.
If this filter is not provided, the default value is **3 months** prior to the request time.
- schema:
type: string
format: date
example: '2020-04-10'
in: query
name: endDate
description: |
The end date of the period for which schedule information is requested. If a date of any Timestamp (ATA, ETA or PTA) inside a PortCall matches a date on or before (≤) the `endDate` the entire Voyage(import- and export-Voyage) matching the PortCall will be included in the result. All matching is done towards local Date at the place of the port call.
If this filter is not provided, the default value is **6 months** after the request time.
- schema:
type: integer
format: int32
default: 100
example: 100
minimum: 1
in: query
name: limit
description: Specifies the maximum number of `Service Schedule` objects to return.
- schema:
type: string
example: fE9mZnNldHw9MTAmbGltaXQ9MTA
maxLength: 1024
in: query
name: cursor
description: A server generated value to specify a specific point in a collection result, used for pagination.
- $ref: '#/components/parameters/Api-Version-Major'
description: |
Provides, for a required specific service and/or voyage and/or vessel and/or location, the timetable of estimated departure and arrival times for each port call on the rotation of the vessel(s).
The list of schedules returned in the response can be tailored to specific needs by combining available query parameters.
A filter parameter or a combination of filter parameters MUST always be provided to call the endpoint. Examples of typical query parameters and expected payload returned in the response:
- a) `carrierServiceCode`: Get all vessels and their full voyages within a service
- b) `carrierServiceCode` **&** `carrierVoyageNumber`: Get a specific full voyage within a service
- c) `carrierServiceCode` **&** `vesselIMONumber`: Get a specific vessel's full voyages within a service.
- d) `vesselIMONumber`: Get all full voyages for a specific vessel across all the services in which it is involved.
- e) `UNLocationCode`: Get all vessels and their full voyages where the specific `UNLocationCode` is involved
- f) `UNLocationCode` **&** `facilitySMDGCode`: Get all vessels and their full voyages where the specific `UNLocationCode` and `facilitySMDGCode` is involved
Other combinations using `vesselName`, `universalServiceReference`, `universalVoyageReference`, `vesselOperatorCarrierCode`, `startDate`, `endDate` are possible.
The filter parameters `startDate` and `endDate` MUST always be used in combination with any of the other available parameters.
The resulting payload returned in the responses will always include **entire voyage(s) being matched**. This means that even though a filter only matches a single `Port` (`UNLocationCode`) in a `Voyage` or a single `Timestamp` within a `Port` in a `Voyage` - **the entire Voyage matched** is returned. If the `carrierImportVoyageNumber` of the `Port` differs from the `carrierExportVoyageNumber` of the `Port` then the **entire Voyage** for both these Voyage numbers are included. An example of this is when `&UNLocationCode=DEHAM` is used as a filter parameter. In this case **entire Voyages** would be listed where `DEHAM` is a `Port`.
Be aware that it is possible to specify filters that are mutually exclusive resulting in an empty response list. An example of this could be when both using `vesselIMONumber` and `vesselName` filters at the same time: `&vesselIMONumber=9321483&vesselName=King of the Seas`. If no `Vessel` exists where `vesselIMONumber` is **9321483** and `vesselName` is **King of the Seas** then the result will be an empty list.
If no `startDate` filter is provided, then **3 months** before the request date should be used as default. If no `endDate` filter is provided, then **6 months** after the request date should be used as default. The endpoint provider can customize these based on their business definitions and inform the consumers what to expect in a response when these filters are not used.
The `GET /v1/vessel-schedules` endpoint can be implemented independently of having implemented the `GET /v1/point-to-point-routes` and `GET /v1/port-schedules` endpoints.
**IMPORTANT**: This endpoint is for carriers to make available vessel schedules to BCO, LSP, and Solution Platforms, with a commercial purpose; this is out of the boundaries of their vessel schedules alignment with other carriers and terminals for operational purposes for which the Operational Vessel Schedules [API](https://app.swaggerhub.com/apis/dcsaorg/DCSA_OVS/3.0.0) is used between carriers, and carriers and terminals.
components:
schemas:
PlaceOfReceipt:
title: Place of Receipt
type: object
description: |
The Location specifying where the place of receipt is located.
required:
- facilityTypeCode
- location
- dateTime
properties:
facilityTypeCode:
description: |
The code to identify the specific type of facility. The code indicates which role the facility plays during the transportCall.
- `BORD` (Border)
- `CLOC` (Customer Location)
- `COFS` (Container Freight Station)
- `OFFD` (Off Dock Storage)
- `DEPO` (Depot)
- `INTE` (Inland Terminal)
- `POTE` (Port Terminal)
- `PBPL` (Pilot Boarding Place)
- `BRTH` (Berth)
- `RAMP` (Ramp)
- `WAYP` (Waypoint)
example: POTE
maxLength: 4
type: string
location:
$ref: '#/components/schemas/Location'
dateTime:
type: string
format: date-time
example: '2025-01-14T09:21:00+01:00'
description: The local date and time, when the event will take place.
PlaceOfDelivery:
title: Place of Delivery
type: object
description: |
The Location specifying where the place of delivery is located.
required:
- facilityTypeCode
- location
- dateTime
properties:
facilityTypeCode:
description: |
The code to identify the specific type of facility. The code indicates which role the facility plays during the transportCall.
- `BORD` (Border)
- `CLOC` (Customer Location)
- `COFS` (Container Freight Station)
- `OFFD` (Off Dock Storage)
- `DEPO` (Depot)
- `INTE` (Inland Terminal)
- `POTE` (Port Terminal)
- `PBPL` (Pilot Boarding Place)
- `BRTH` (Berth)
- `RAMP` (Ramp)
- `WAYP` (Waypoint)
example: POTE
maxLength: 4
type: string
location:
$ref: '#/components/schemas/Location'
dateTime:
type: string
format: date-time
example: '2025-01-14T09:21:00+01:00'
description: The local date and time, when the event will take place.
PlaceOfArrival:
title: Place of Arrival
type: object
description: |
The Location specifying where the place of arrival is located.
required:
- facilityTypeCode
- location
- dateTime
properties:
transportCallReference:
type: string
example: SR11111X-9321483-2107W-NLAMS-ACT-1-1
maxLength: 100
description: |
The unique reference for the arrival transport call. It's the vessel operator's responsibility to provide the Transport Call Reference, other parties are obliged to pick it up and use it. It can take the form of Port Call References as defined in OVS Definitions Document, or alternatively a reference as defined by the vessel operator.
**Note:** This property takes precedence over the `transportCallReference` in the Vessel-Transport or Barge-Transport objects. If both this property and a `transportCallReference` in the Vessel-Transport or Barge-Transport objects are provided- the `transportCallReference` in those objects must be ignored.
facilityTypeCode:
description: |
The code to identify the specific type of facility. The code indicates which role the facility plays during the transportCall.
- `BORD` (Border)
- `CLOC` (Customer Location)
- `COFS` (Container Freight Station)
- `OFFD` (Off Dock Storage)
- `DEPO` (Depot)
- `INTE` (Inland Terminal)
- `POTE` (Port Terminal)
- `PBPL` (Pilot Boarding Place)
- `BRTH` (Berth)
- `RAMP` (Ramp)
- `WAYP` (Waypoint)
example: POTE
maxLength: 4
type: string
location:
$ref: '#/components/schemas/Location'
dateTime:
type: string
format: date-time
example: '2025-01-14T09:21:00+01:00'
description: The local date and time, when the event will take place.
PlaceOfDeparture:
title: Place of Departure
type: object
description: |
The Location specifying where the place of departure is located.
required:
- facilityTypeCode
- location
- dateTime
properties:
transportCallReference:
type: string
example: SR11111X-9321483-2107W-NLAMS-ACT-1-1
maxLength: 100
description: |
The unique reference for the departure transport call. It's the vessel operator's responsibility to provide the Transport Call Reference, other parties are obliged to pick it up and use it. It can take the form of Port Call References as defined in OVS Definitions Document, or alternatively a reference as defined by the vessel operator.
**Note:** This property takes precedence over the `transportCallReference` in the Vessel-Transport or Barge-Transport objects. If both this property and a `transportCallReference` in the Vessel-Transport or Barge-Transport objects are provided- the `transportCallReference` in those objects must be ignored.
facilityTypeCode:
description: |
The code to identify the specific type of facility. The code indicates which role the facility plays during the transportCall.
- `BORD` (Border)
- `CLOC` (Customer Location)
- `COFS` (Container Freight Station)
- `OFFD` (Off Dock Storage)
- `DEPO` (Depot)
- `INTE` (Inland Terminal)
- `POTE` (Port Terminal)
- `PBPL` (Pilot Boarding Place)
- `BRTH` (Berth)
- `RAMP` (Ramp)
- `WAYP` (Waypoint)
example: POTE
maxLength: 4
type: string
location:
$ref: '#/components/schemas/Location'
dateTime:
type: string
format: date-time
example: '2025-01-14T09:21:00+01:00'
description: The local date and time, when the event will take place.
PointToPoint:
title: Point to Point
type: object
required:
- placeOfReceipt
- placeOfDelivery
- legs
properties:
placeOfReceipt:
$ref: '#/components/schemas/PlaceOfReceipt'
placeOfDelivery:
$ref: '#/components/schemas/PlaceOfDelivery'
receiptTypeAtOrigin:
type: string
maxLength: 3
description: |
Indicates the type of service offered at `Origin`. The options are:
- `CY` (Container yard (incl. rail ramp))
- `SD` (Store Door)
- `CFS` (Container Freight Station)
enum:
- CY
- SD
- CFS
example: CY
deliveryTypeAtDestination:
type: string
maxLength: 3
description: |
Indicates the type of service offered at `Destination`. The options are:
- `CY` (Container yard (incl. rail ramp))
- `SD` (Store Door)
- `CFS` (Container Freight Station)
enum:
- CY
- SD
- CFS
example: CY
cutOffTimes:
type: array
description: A list of cut-offs times provided by the carrier when available. A cut-off time indicates the latest date and time by which a task must be completed. For example, the latest date and time by which a container must be delivered to a terminal to be loaded on a vessel, or where certain documentation must be provided by the Shipper.
items:
$ref: '#/components/schemas/CutOffTime'
solutionNumber:
type: integer
format: int32
minimum: 1
example: 1
description: Solution number, starting with 1. Used to group and identify similar or same routings in the response as per the carrier commercial definitions.
routingReference:
type: string
pattern: ^\S(?:.*\S)?$
maxLength: 5000
description: |
A reference to be used when creating a **Booking** in the **Booking API**.
example: Route123
transitTime:
type: integer
description: The estimated total time in days that it takes a shipment to move from place of receipt to place of delivery. Transit time includes stop-over time during transhipments and waiting time at connection points, if applicable, thus can vary between the same locations.
format: int32
example: 10
solutionFootprint:
type: object
description: |
Estimated footprint emission calculation for the full routing solution.
properties:
co2:
type: number
format: double
description: |
CO<sub>2</sub> (Carbon Dioxide) emissions in metric tonnes (t).
example: 506.4
co2e:
type: number
format: double
description: |
CO<sub>2</sub>e (Carbon Dioxide equivalent) emissions in metric tonnes (t).
example: 520.7
sox:
type: number
format: double
description: |
SO<sub>x</sub> (Sulphur Oxide) emissions in kilograms (kg).
example: 12.4
nox:
type: number
format: double
description: |
NO<sub>x</sub> (Nitrogen Oxide) emissions in kilograms (kg).
example: 15.4
pm10:
type: number
format: double
description: |
PM<sub>10</sub> (Small Particle) emissions in kilograms (kg).
example: 0.8
legs:
type: array
minItems: 1
items:
$ref: '#/components/schemas/Leg'
PortSchedule:
title: Port Schedule
type: object
required:
- location
properties:
location:
$ref: '#/components/schemas/PortScheduleLocation'
vesselSchedules:
type: array
items:
$ref: '#/components/schemas/Schedule'
Schedule:
title: Schedule
type: object
required:
- servicePartners
- isDummyVessel
- timestamps
properties:
universalServiceReference:
type: string
example: SR12345A
pattern: ^SR\d{5}[A-Z]$
maxLength: 8
minLength: 8
description: |
A global unique service reference, as per DCSA standard, agreed by VSA partners for the service. The service reference must match the regular expression pattern: `SR\d{5}[A-Z]`. The letters `SR` followed by `5` digits, followed by a checksum-character as a capital letter from `A to Z`.
servicePartners:
type: array
minItems: 1
items:
$ref: '#/components/schemas/ServicePartnerSchedule'
vessel:
$ref: '#/components/schemas/Vessel'
isDummyVessel:
type: boolean
description: This property can be set to `true` when no vessel has been assigned, indicating that the `vesselIMONumber` does not exist.
universalImportVoyageReference:
type: string
description: |
A global unique voyage reference for the import Voyage, as per DCSA standard, agreed by VSA partners for the voyage.The voyage reference must match the regular expression pattern: `\d{2}[0-9A-Z]{2}[NEWSR]`
- `2 digits` for the year
- `2 alphanumeric characters` for the sequence number of the voyage
- `1 character` for the direction/haul (`N`orth, `E`ast, `W`est, `S`outh or `R`oundtrip).
pattern: ^\d{2}[0-9A-Z]{2}[NEWSR]$
example: 2103N
minLength: 5
maxLength: 5
universalExportVoyageReference:
type: string
description: |
A global unique voyage reference for the export Voyage, as per DCSA standard, agreed by VSA partners for the voyage.The voyage reference must match the regular expression pattern: `\d{2}[0-9A-Z]{2}[NEWSR]`
- `2 digits` for the year
- `2 alphanumeric characters` for the sequence number of the voyage
- `1 character` for the direction/haul (`N`orth, `E`ast, `W`est, `S`outh or `R`oundtrip).
pattern: ^\d{2}[0-9A-Z]{2}[NEWSR]$
example: 2103N
minLength: 5
maxLength: 5
timestamps:
type: array
minItems: 1
items:
$ref: '#/components/schemas/Timestamp'
cutOffTimes:
type: array
description: A list of cut-offs times provided by the carrier when available. A cut-off time indicates the latest date and time by which a task must be completed. For example, the latest date and time by which a container must be delivered to a terminal to be loaded on a vessel, or where certain documentation must be provided by the Shipper.
items:
$ref: '#/components/schemas/CutOffTime'
TransportCall:
title: Transport Call
type: object
description: |
A transportCall in the schedule. A transportCall can be either just a Port or further specified as a terminalCall.
required:
- transportCallReference
- carrierImportVoyageNumber
- timestamps
properties:
portVisitReference:
type: string
description: The unique reference that can be used to link different `transportCallReferences` to the same port visit. The reference is provided by the port to uniquely identify a port call.
maxLength: 50
example: NLRTM1234589
transportCallReference:
type: string
maxLength: 100
description: The unique reference for a transport call. It's the vessel operator's responsibility to provide the Transport Call Reference, other parties are obliged to pick it up and use it. It can take the form of Port Call References as defined in OVS Definitions Document, or alternatively a reference as defined by the vessel operator.
example: SR11111X-9321483-2107W-NLRTM-HPD2-1-1
carrierImportVoyageNumber:
type: string
maxLength: 50
pattern: ^\S(?:.*\S)?$
example: 2103N
description: The identifier of an import voyage. The carrier-specific identifier of the import Voyage.
carrierExportVoyageNumber:
type: string