This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpostman_collection.json
564 lines (564 loc) · 42.7 KB
/
postman_collection.json
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
{
"info": {
"_postman_id": "54461537-ab0f-4b98-a9f3-05bcb1fd6f57",
"name": "EBL Interoperability",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "18186286"
},
"item": [
{
"name": "unofficial",
"item": [
{
"name": "Create transport document",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 201\", function () {\r",
" pm.response.to.have.status(201);\r",
"});\r",
"\r",
"pm.test(\"Content-Type is present\", function () {\r",
" pm.response.to.be.header(\"Content-Type\", \"text/plain;charset=UTF-8\");\r",
"});\r",
"\r",
"let transportDocumentId = pm.response.text();\r",
"pm.collectionVariables.set(\"TRANSPORT_DOCUMENT_ID\", transportDocumentId);\r",
"\r",
"let baseUrl = pm.collectionVariables.get(\"BASE_URL\")+\"/\"+pm.collectionVariables.get(\"MAJOR_VERSION\");\r",
"\r",
"pm.test(\"Redirect location is correct\", function () {\r",
" pm.response.to.have.header(\"Location\");\r",
" pm.response.to.be.header(\"Location\", \"https://\"+baseUrl+\"/unofficial/transport-documents/\"+transportDocumentId);\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"transportDocumentReference\": \"DCSA-TD-123\",\r\n \"transportDocumentCreatedDateTime\": \"2022-08-26T07:41:00+08:30\",\r\n \"transportDocumentUpdatedDateTime\": \"2022-08-26T08:41:00+08:30\",\r\n \"issueDate\": \"2022-08-26\",\r\n \"shippedOnBoardDate\": \"2022-08-25\",\r\n \"receivedForShipmentDate\": \"2022-07-10\",\r\n \"numberOfOriginals\": 3,\r\n \"carrierCode\": \"MSK\",\r\n \"carrierCodeListProvider\": \"SMDG\",\r\n \"issuingParty\": {\r\n \"partyName\": \"Henrik\",\r\n \"address\": {\r\n \"name\": \"Maersk HeadQuarters\",\r\n \"street\": \"Esplanaden\",\r\n \"streetNumber\": \"50\",\r\n \"postcode\": \"DK-1263\",\r\n \"city\": \"Copenhagen\",\r\n \"country\": \"Denmark\"\r\n },\r\n \"partyContactDetails\": [\r\n {\r\n \"name\": \"Maersk\",\r\n \"phone\": \"+4533633363\",\r\n \"email\": \"[email protected]\",\r\n \"url\": \"https://www.maersk.com\"\r\n }\r\n ]\r\n },\r\n \"numberOfRiderPages\": 20,\r\n \"termsAndConditions\": \"No liability to damage caused to goods\",\r\n \"receiptTypeAtOrigin\": \"CY\",\r\n \"deliveryTypeAtDestination\": \"CY\",\r\n \"cargoMovementTypeAtOrigin\": \"FCL\",\r\n \"cargoMovementTypeAtDestination\": \"FCL\",\r\n \"serviceContractReference\": \"DCSA-SCR-123\",\r\n \"vesselName\": \"Emma Maersk\",\r\n \"carrierExportVoyageNumber\": \"2209E\",\r\n \"universalExportVoyageReference\": \"2209E\",\r\n \"declaredValue\": 1231000,\r\n \"declaredValueCurrency\": \"DKK\",\r\n \"transports\": [\r\n {\r\n \"transportPlanStage\": \"PRC\",\r\n \"transportPlanStageSequenceNumber\": 1,\r\n \"loadLocation\": {\r\n \"locationName\": \"Tesla Gigafactory\",\r\n \"address\": {\r\n \"name\": \"Tesla\",\r\n \"street\": \"Tesla Road\",\r\n \"streetNumber\": \"1\",\r\n \"postcode\": \"TX 78725\",\r\n \"city\": \"Austin\",\r\n \"stateRegion\": \"Texas\",\r\n \"country\": \"USA\"\r\n }\r\n },\r\n \"dischargeLocation\": {\r\n \"locationName\": \"Houston Port, BAYPORT TERMINAL\",\r\n \"UNLocationCode\": \"USHOU\",\r\n \"facilityCode\": \"BPTM\",\r\n \"facilityCodeListProvider\": \"SMDG\"\r\n },\r\n \"plannedDepartureDate\": \"2022-08-25\",\r\n \"plannedArrivalDate\": \"2022-08-30\",\r\n \"modeOfTransport\": \"VESSEL\",\r\n \"vesselName\": \"Emma Maersk\",\r\n\t\t\t\"vesselIMONumber\": \"9321483\",\r\n \"carrierImportVoyageNumber\": \"2209E\",\r\n\t\t\t\"universalImportVoyageReference\": \"2209E\",\r\n\t\t\t\"carrierExportVoyageNumber\": \"2209E\",\r\n\t\t\t\"universalExportVoyageReference\": \"2209E\",\r\n\t\t\t\"isUnderShippersResponsibility\": false\r\n }\r\n ],\r\n \"shipmentLocations\": [\r\n {\r\n\t\t\t\"location\": {\r\n\t\t\t\t\"locationName\": \"Tesla Gigafactory\",\r\n\t\t\t\t\"address\": {\r\n\t\t\t\t\t\"name\": \"Tesla\",\r\n\t\t\t\t\t\"street\": \"Tesla Road\",\r\n\t\t\t\t\t\"streetNumber\": \"1\",\r\n\t\t\t\t\t\"postcode\": \"TX 78725\",\r\n\t\t\t\t\t\"city\": \"Austin\",\r\n\t\t\t\t\t\"stateRegion\": \"Texas\",\r\n\t\t\t\t\t\"country\": \"USA\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"shipmentLocationTypeCode\": \"PRE\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"location\": {\r\n\t\t\t\t\"locationName\": \"Houston Port, BAYPORT TERMINAL\",\r\n\t\t\t\t\"UNLocationCode\": \"USHOU\",\r\n\t\t\t\t\"facilityCode\": \"BPTM\",\r\n\t\t\t\t\"facilityCodeListProvider\": \"SMDG\"\r\n\t\t\t},\r\n\t\t\t\"shipmentLocationTypeCode\": \"POL\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"location\": {\r\n\t\t\t\t\"locationName\": \"Rotterdam, Rotterdam Container Terminal RCT Maasvlakte\",\r\n\t\t\t\t\"UNLocationCode\": \"NLRTM\",\r\n\t\t\t\t\"facilityCode\": \"KRM\",\r\n\t\t\t\t\"facilityCodeListProvider\": \"SMDG\"\r\n\t\t\t},\r\n\t\t\t\"shipmentLocationTypeCode\": \"POD\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"location\": {\r\n\t\t\t\t\"address\": {\r\n\t\t\t\t\t\"name\": \"Henrik H Larsen\",\r\n\t\t\t\t\t\"street\": \"Frem\",\r\n\t\t\t\t\t\"streetNumber\": \"29\",\r\n\t\t\t\t\t\"postcode\": \"DK 2800\",\r\n\t\t\t\t\t\"city\": \"Kgs. Lyngby\",\r\n\t\t\t\t\t\"country\": \"Denmark\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"shipmentLocationTypeCode\": \"PDE\"\r\n\t\t}\r\n ],\r\n\t\"invoicePayableAt\": {\r\n\t\t\"locationName\": \"DCSA HeadQuarters\",\r\n\t\t\"address\": {\r\n\t\t\t\"name\": \"DCSA\",\r\n\t\t\t\"street\": \"Strawinskylaan\",\r\n\t\t\t\"streetNumber\": \"4117\",\r\n\t\t\t\"postCode\": \"1077 ZX\",\r\n\t\t\t\"city\": \"Amsterdam\",\r\n\t\t\t\"country\": \"Netherlands\"\r\n\t\t}\r\n\t},\r\n\t\"placeOfIssue\": {\r\n\t\t\"locationName\": \"DCSA HeadQuarters\",\r\n\t\t\"address\": {\r\n\t\t\t\"name\": \"DCSA\",\r\n\t\t\t\"street\": \"Strawinskylaan\",\r\n\t\t\t\"streetNumber\": \"4117\",\r\n\t\t\t\"postCode\": \"1077 ZX\",\r\n\t\t\t\"city\": \"Amsterdam\",\r\n\t\t\t\"country\": \"Netherlands\"\r\n\t\t}\r\n\t},\r\n \"shippingInstruction\": {\r\n \"shippingInstructionReference\": \"DCSA-SI-123\",\r\n \"documentStatus\": \"ISSU\",\r\n \"shippingInstructionCreatedDateTime\": \"2022-07-06T10:15:34\",\r\n \"shippingInstructionUpdatedDateTime\": \"2022-07-07T12:35:12\",\r\n\t\t\"transportDocumentTypeCode\": \"BOL\",\r\n \"isShippedOnBoardType\": true,\r\n \"isElectronic\": true,\r\n \"isToOrder\": false,\r\n\t\t\"documentParties\": [\r\n\t\t\t{\r\n\t\t\t\t\"party\": {\r\n\t\t\t\t\t\"partyName\": \"Tesla\",\r\n\t\t\t\t\t\"address\": {\r\n\t\t\t\t\t\t\"name\": \"Tesla\",\r\n\t\t\t\t\t\t\"street\": \"Tesla Road\",\r\n\t\t\t\t\t\t\"streetNumber\": \"1\",\r\n\t\t\t\t\t\t\"postcode\": \"TX 78725\",\r\n\t\t\t\t\t\t\"city\": \"Austin\",\r\n\t\t\t\t\t\t\"stateRegion\": \"Texas\",\r\n\t\t\t\t\t\t\"country\": \"USA\"\r\n\t\t\t\t\t},\r\n \"partyContactDetails\": [\r\n {\r\n \"name\": \"Tesla\",\r\n \"phone\": \"+18885183752\",\r\n \"email\": \"[email protected]\",\r\n \"url\": \"https://www.tesla.com\"\r\n }\r\n ]\r\n\t\t\t\t},\r\n\t\t\t\t\"partyFunction\": \"OS\",\r\n\t\t\t\t\"displayedAddress\": [\r\n\t\t\t\t\t\"Tesla\",\r\n\t\t\t\t\t\"Tesla Road 1\",\r\n\t\t\t\t\t\"TX 78725\",\r\n\t\t\t\t\t\"Austion, Texas\",\r\n\t\t\t\t\t\"USA\"\r\n\t\t\t\t],\r\n \"isToBeNotified\": true\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"party\": {\r\n\t\t\t\t\t\"partyName\": \"Henrik\",\r\n\t\t\t\t\t\"address\": {\r\n\t\t\t\t\t\t\"name\": \"Henrik H Larsen\",\r\n\t\t\t\t\t\t\"street\": \"Frem\",\r\n\t\t\t\t\t\t\"streetNumber\": \"29\",\r\n\t\t\t\t\t\t\"postcode\": \"2800\",\r\n\t\t\t\t\t\t\"city\": \"Kgs. Lyngby\",\r\n\t\t\t\t\t\t\"country\": \"Denmark\"\r\n\t\t\t\t\t},\r\n \"partyContactDetails\": [\r\n {\r\n \"name\": \"Henrik\",\r\n \"phone\": \"+45 33364660\",\r\n \"email\": \"[email protected]\",\r\n \"url\": \"https://www.dcsa.org\"\r\n }\r\n ]\r\n\t\t\t\t},\r\n\t\t\t\t\"partyFunction\": \"CN\",\r\n\t\t\t\t\"displayedAddress\": [\r\n\t\t\t\t\t\"Henrik Larsen\",\r\n\t\t\t\t\t\"Frem 29\",\r\n\t\t\t\t\t\"DK-2800 Kgs. Lyngby\",\r\n\t\t\t\t\t\"Denmark\"\r\n\t\t\t\t],\r\n \"isToBeNotified\": true\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\t\"party\": {\r\n\t\t\t\t\t\"partyName\": \"Henrik\",\r\n\t\t\t\t\t\"address\": {\r\n\t\t\t\t\t\t\"name\": \"Henrik H Larsen\",\r\n\t\t\t\t\t\t\"street\": \"Frem\",\r\n\t\t\t\t\t\t\"streetNumber\": \"29\",\r\n\t\t\t\t\t\t\"postcode\": \"2800\",\r\n\t\t\t\t\t\t\"city\": \"Kgs. Lyngby\",\r\n\t\t\t\t\t\t\"country\": \"Denmark\"\r\n\t\t\t\t\t},\r\n \"partyContactDetails\": [\r\n {\r\n \"name\": \"Henrik\",\r\n \"phone\": \"+45 33364660\",\r\n \"email\": \"[email protected]\",\r\n \"url\": \"https://www.dcsa.org\"\r\n }\r\n ]\r\n\t\t\t\t},\r\n\t\t\t\t\"partyFunction\": \"N1\",\r\n\t\t\t\t\"displayedAddress\": [\r\n\t\t\t\t\t\"Henrik Larsen\",\r\n\t\t\t\t\t\"Frem 29\",\r\n\t\t\t\t\t\"DK-2800 Kgs. Lyngby\",\r\n\t\t\t\t\t\"Denmark\"\r\n\t\t\t\t],\r\n \"isToBeNotified\": true\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"utilizedTransportEquipments\": [\r\n\t\t\t{\r\n\t\t\t\t\"equipment\": {\r\n\t\t\t\t\t\"equipmentReference\": \"MRKU9455730\",\r\n\t\t\t\t\t\"ISOEquipmentCode\": \"22G1\"\r\n\t\t\t\t},\r\n\t\t\t\t\"cargoGrossWeightUnit\": \"KGM\",\r\n\t\t\t\t\"cargoGrossWeight\": 4380,\r\n\t\t\t\t\"emptyIndicatorCode\": \"LADEN\",\r\n \"isShipperOwned\": false,\r\n\t\t\t\t\"seals\": [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\"sealNumber\": \"DCSA-SEAL-123\",\r\n \"sealType\": \"KLP\"\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t],\r\n\t\t\"consignmentItems\": [\r\n\t\t\t{\r\n\t\t\t\t\"carrierBookingReference\": \"DCSA-BKG-123\",\r\n\t\t\t\t\"weight\": 2200,\r\n\t\t\t\t\"volume\": 15,\r\n\t\t\t\t\"weightUnit\": \"KGM\",\r\n\t\t\t\t\"volumeUnit\": \"MTQ\",\r\n\t\t\t\t\"descriptionOfGoods\": \"Tesla Roadster model 2023\",\r\n\t\t\t\t\"HSCode\": \"87033290\",\r\n\t\t\t\t\"cargoItems\": [\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\"cargoLineItems\": [\r\n\t\t\t\t\t\t\t{\r\n \"cargoLineItemID\": \"DCSA-CL-123\",\r\n\t\t\t\t\t\t\t\t\"shippingMarks\": \"DCSA-SM-123\"\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t],\r\n \"weight\": 43800,\r\n \"weightUnit\": \"KGM\",\r\n\t\t\t\t \"volumeUnit\": \"MTQ\",\r\n \"packageCode\": \"pkl\",\r\n\t\t\t\t\t\t\"equipmentReference\": \"MRKU9455730\",\r\n\t\t\t\t\t\t\"numberOfPackages\": 1,\r\n \"packageNameOnBL\": \"tesla-roadster\"\r\n\t\t\t\t\t}\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t]\r\n\t},\r\n \"charges\": [\r\n {\r\n \"chargeType\": \"string\",\r\n \"currencyAmount\": 1012.12,\r\n \"currencyCode\": \"DKK\",\r\n \"paymentTermCode\": \"PRE\",\r\n \"calculationBasis\": \"Per day\",\r\n \"unitPrice\": 3456.6,\r\n \"quantity\": 34.4\r\n }\r\n ],\r\n \"carrierClauses\": [\r\n {\r\n \"clauseContent\": \"No clauses\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://{{BASE_URL}}/{{MAJOR_VERSION}}/unofficial/transport-documents",
"protocol": "https",
"host": [
"{{BASE_URL}}"
],
"path": [
"{{MAJOR_VERSION}}",
"unofficial",
"transport-documents"
]
}
},
"response": []
},
{
"name": "Get transport document",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"Content-Type is present\", function () {\r",
" pm.response.to.be.header(\"Content-Type\", \"application/json\");\r",
"});\r",
"\r",
""
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"accept": true
}
},
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "https://{{BASE_URL}}/{{MAJOR_VERSION}}/unofficial/transport-documents/{{TRANSPORT_DOCUMENT_ID}}",
"protocol": "https",
"host": [
"{{BASE_URL}}"
],
"path": [
"{{MAJOR_VERSION}}",
"unofficial",
"transport-documents",
"{{TRANSPORT_DOCUMENT_ID}}"
]
}
},
"response": []
},
{
"name": "Get JWKS",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"Content-Type is present\", function () {\r",
" pm.response.to.be.header(\"Content-Type\", \"application/json\");\r",
"});\r",
"\r",
"let jwksResponse = pm.response.json();\r",
"\r",
"\r",
"pm.test('Number of keys in JWKS = ' + jwksResponse.keys.length, function () {\r",
" pm.expect(jwksResponse.keys.length).to.greaterThan(0);\r",
"});\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://{{BASE_URL}}/{{MAJOR_VERSION}}/.well-known/jwks.json",
"protocol": "https",
"host": [
"{{BASE_URL}}"
],
"path": [
"{{MAJOR_VERSION}}",
".well-known",
"jwks.json"
]
}
},
"response": []
},
{
"name": "Create local transaction",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 201\", function () {\r",
" pm.response.to.have.status(201);\r",
"});\r",
"\r",
"pm.test(\"Content-Type is present\", function () {\r",
" pm.response.to.be.header(\"Content-Type\", \"text/plain;charset=UTF-8\");\r",
"});\r",
"\r",
"let transactionId = pm.response.text();\r",
"let baseUrl = pm.collectionVariables.get(\"BASE_URL\")+\"/\"+pm.collectionVariables.get(\"MAJOR_VERSION\");\r",
"\r",
"pm.test(\"Redirect location is correct\", function () {\r",
" pm.response.to.have.header(\"Location\");\r",
" pm.response.to.be.header(\"Location\", \"https://\"+baseUrl+\"/unofficial/transactions/local/\"+transactionId);\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"instruction\": \"ISSU\",\r\n \"comments\": \"The B/L has been issued.\",\r\n \"isToOrder\": true,\r\n \"transferee\": \"bar\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://{{BASE_URL}}/{{MAJOR_VERSION}}/unofficial/transactions/local/{{TRANSPORT_DOCUMENT_ID}}",
"protocol": "https",
"host": [
"{{BASE_URL}}"
],
"path": [
"{{MAJOR_VERSION}}",
"unofficial",
"transactions",
"local",
"{{TRANSPORT_DOCUMENT_ID}}"
]
}
},
"response": []
},
{
"name": "Export transport document - expect invalid signature",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Content-Type is present\", function () {\r",
" pm.response.to.be.header(\"Content-Type\", \"application/json\");\r",
"});\r",
"\r",
"//Postman Mock services can only respond with static responses, therefore the mock cannot return a valid signature\r",
"pm.test(\"Status code is 500\", function () {\r",
" pm.response.to.have.status(500);\r",
"});\r",
"\r",
"let errorResponse = pm.response.json();\r",
"\r",
"\r",
"pm.test('Error message is Signature not valid', function () {\r",
" pm.expect(errorResponse.errors[0].message).to.equals(\"Signature not valid\");\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "\"[email protected]\"",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://{{BASE_URL}}/{{MAJOR_VERSION}}/unofficial/transport-documents/{{TRANSPORT_DOCUMENT_ID}}/export",
"protocol": "https",
"host": [
"{{BASE_URL}}"
],
"path": [
"{{MAJOR_VERSION}}",
"unofficial",
"transport-documents",
"{{TRANSPORT_DOCUMENT_ID}}",
"export"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
},
{
"name": "Mock Send Transferblock",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"transferDocument\": \"2d2b87eb4182a68031b595fbaa3af9b649944c54a6d075add7e77045b7c8ee5b\",\r\n \"endorcementChain\": {\r\n \"eblEnvelopeHash\": \"e367ab5f59fd30b871f3ffb0eabdd4c765d15be62c198bb4caafd20fc589373c\",\r\n \"eblEnvelope\": {\r\n \"previousEblEnvelopeHash\": null,\r\n \"documentHash\": \"2d2b87eb4182a68031b595fbaa3af9b649944c54a6d075add7e77045b7c8ee5b\",\r\n \"transactions\": [\r\n {\r\n \"instruction\": \"ISSU\",\r\n \"comments\": \"The B/L has been issued.\",\r\n \"timestamp\": 1659428989899,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"bar\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659514787154,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659520072821,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659520210311,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659520748346,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659521066815,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659521493901,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659521848600,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659528039268,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659529378165,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659602603393,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659618042929,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659618050092,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: \\\"[email protected]\\\"\",\r\n \"timestamp\": 1659618057132,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"\\\"[email protected]\\\"\"\r\n },\r\n {\r\n \"instruction\": \"TRNS\",\r\n \"comments\": \"The B/L exported to: [email protected]\",\r\n \"timestamp\": 1659690124869,\r\n \"isToOrder\": true,\r\n \"platformHost\": \"localhost:8443\",\r\n \"transferee\": \"[email protected]\"\r\n }\r\n ]\r\n },\r\n \"signature\": \"eyJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdLCJhbGciOiJSUzI1NiJ9..3drv46CjNYhaZ97qRKErJBH0d8SzgRuWcH0hvOYmoOvmYGEl_csXQ-aYCfabJYRrcb4RCFZCLbpq9ixKFUfcHRUeG93QSOOyvq32vW_zYiRMXKEKpGkb7Gwd82bzxVHHvpp6c3iijJwyzEy2b-u5KnnKRpjYgYZak9Kx_OMlSe92hYiXq6Id19sn-wraFW1E3d_m7ryxY54nqtQgbH8_I8cEb6R-aMzwgh_qloKhLlZswDTU2VU3qilKiPMr50DUq1qDr3fYUijovcFhXfltgWt_6LbjeYX-7ceonyVvDcoHABIivKqsHq7HvfPv89O7Y0gzpvEuN-lJGkgPYWANZg\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://89861789-f173-452b-9123-a6c35ded4760.mock.pstmn.io/v1/transferblocks",
"protocol": "https",
"host": [
"89861789-f173-452b-9123-a6c35ded4760",
"mock",
"pstmn",
"io"
],
"path": [
"v1",
"transferblocks"
]
}
},
"response": [
{
"name": "Mock Send Transferblock response",
"originalRequest": {
"method": "PUT",
"header": [],
"url": {
"raw": "https://localhost/v1/transferblock",
"protocol": "https",
"host": [
"localhost"
],
"path": [
"v1",
"transferblock"
]
}
},
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": "",
"type": "text"
},
{
"key": "API-VERSION",
"value": "0.0.1",
"description": "",
"type": "text"
}
],
"cookie": [],
"body": "\"eyJhbGciOiJSUzI1NiIsImtpZCI6ImZ1eERKcmV1bS1FWFF4dzJFdVA4NHZwS2E3cW5NdF9Cb1VzRjVyTmNvN2MifQ.dGhpcyBpcyBhIHRlc3QgbWVzc2FnZQ.nI85d4jseqXOR3hXkyLT2uajlXCsW88nAoEwec13I1tUyt6xwbgQz4jVQ2tdKbSlLcwrVmetlbz9Moy-DRno3X3cJmW9Y9TtyVMuygP0p_BQy1TVd766O1VRpiTp_tB1Eb93Fnj0RvpUZ_ddp9YKQjdxpAYi23Rbnz33A-x3uWp-Nk6y7sy3THlw5ZwbhuBWtp7yeaNGwVL9RUegyHwojGQp3YIVzFVXomUkj-JAg8UvOE6xdd7XSZaM_Sf7ZJlyTQQxyqZ1ui-zCwVHu0zdNEbEzAm_SfgxlPUaO8nEWSmAGo29aGO8HiU2_mbVMU1lCL00LyAEoAaDFnmbnEOoWw\""
}
]
},
{
"name": "Send Transferblock",
"event": [
{
"listen": "test",
"script": {
"exec": [
"const jwksUrl = \"https://\" + pm.collectionVariables.get(\"BASE_URL\") + \"/\" + pm.collectionVariables.get(\"MAJOR_VERSION\") + pm.collectionVariables.get(\"JWKS_URL_PATH\");\r",
"const jsrsasignUrl = pm.collectionVariables.get(\"JSRSASIGN_URL\"); \r",
"\r",
"pm.test(\"Status code is 200\", function () {\r",
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"pm.test(\"Content-Type is present\", function () {\r",
" pm.response.to.be.header(\"Content-Type\", \"application/json\");\r",
"});\r",
"\r",
"let transferblockResponse = pm.response.text();\r",
"let requestEnvelopeHash = JSON.parse(pm.request.body.raw).endorsementChain[0].envelopeHash;\r",
"\r",
"if(pm.collectionVariables.get(\"jsrsassign-js\") && pm.collectionVariables.get(\"JWK\")) {\r",
" verifySignature();\r",
"} else {\r",
" loadDependencies();\r",
"}\r",
"\r",
"//Postman handles async operations different then Javascript so custom functions are needed to handle sequential requests\r",
"//More information: https://community.postman.com/t/async-operations/24314\r",
"function _series (tasks, cb, currOperation = 0, results = []) {\r",
" // Bail-out condition\r",
" if (currOperation === tasks.length) {\r",
" return cb(null, results);\r",
" }\r",
"\r",
" if (typeof tasks[currOperation] !== 'function') {\r",
" return cb(new Error('asyncSeries: Please provide a function'));\r",
" }\r",
"\r",
" tasks[currOperation]((err, res) => {\r",
" if (err) {\r",
" return cb(err);\r",
" }\r",
"\r",
" results.push(res);\r",
"\r",
" // Recursively call the next task in series till we're done executing all the operations\r",
" return _series(tasks, cb, currOperation + 1, results);\r",
" });\r",
"}\r",
"\r",
"function asyncSeries (tasks, cb = () => {}) {\r",
" return _series(tasks, cb);\r",
"}\r",
"\r",
"function loadDependencies() {\r",
" asyncSeries([\r",
" (cb) => pm.sendRequest(jsrsasignUrl, (err, res) => {\r",
" // console.log(res.json().delay);\r",
" pm.collectionVariables.set('jsrsassign-js', res.text());\r",
" cb(err, res);\r",
" }),\r",
" (cb) => pm.sendRequest(jwksUrl, (err, res) => {\r",
" // console.log(res.json().delay);\r",
" pm.collectionVariables.set(\"JWK\", res.json().keys[0]);\r",
" cb(err, res);\r",
" })\r",
" ], (err, res) => {\r",
" console.log('Dependencies loaded, performing signature tests...');\r",
" verifySignature();\r",
" });\r",
"}\r",
"\r",
"function verifySignature() {\r",
" var exports = {}; //needed as a stub for the jsrsassign NPM library\r",
" eval(pm.collectionVariables.get(\"jsrsassign-js\"));\r",
" \r",
" let jwk = pm.collectionVariables.get(\"JWK\");\r",
" let pubkey = KEYUTIL.getKey(jwk);\r",
" let isValid = KJUR.jws.JWS.verify(transferblockResponse, pubkey, {alg: ['RS256']});\r",
"\r",
" pm.test(\"Signature of response is valid\", function(){\r",
" pm.expect(isValid).to.be.true;\r",
" });\r",
"\r",
" let jwsPayload = KJUR.jws.JWS.parse(transferblockResponse).payloadPP;\r",
" pm.test(\"JWS payload contains envelopeHash\", function() {\r",
" pm.expect(requestEnvelopeHash).to.eql(jwsPayload);\r",
" });\r",
" \r",
"}\r",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": " {\r\n \"document\": {\r\n \"transportDocumentReference\": \"string\",\r\n \"transportDocumentCreatedDateTime\": \"2019-11-12T07:41:00+08:30\",\r\n \"transportDocumentUpdatedDateTime\": \"2019-11-12T07:41:00+08:30\",\r\n \"issueDate\": \"2020-12-12\",\r\n \"shippedOnBoardDate\": \"2020-12-12\",\r\n \"receivedForShipmentDate\": \"2020-12-12\",\r\n \"numberOfOriginals\": 4,\r\n \"carrierCode\": \"MMCU\",\r\n \"carrierCodeListProvider\": \"NMFTA\",\r\n \"issuingParty\": {\r\n \"partyName\": \"Asseco Denmark\",\r\n \"taxReference1\": \"CVR-25645774\",\r\n \"taxReference2\": \"CVR-25645774\",\r\n \"publicKey\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkFzaW\",\r\n \"address\": {\r\n \"name\": \"Henrik\",\r\n \"street\": \"Kronprincessegade\",\r\n \"streetNumber\": \"54\",\r\n \"floor\": \"5. sal\",\r\n \"postCode\": \"1306\",\r\n \"city\": \"København\",\r\n \"stateRegion\": \"N/A\",\r\n \"country\": \"Denmark\"\r\n },\r\n \"partyContactDetails\": [\r\n {\r\n \"name\": \"Henrik\",\r\n \"phone\": \"+45 33364660\",\r\n \"email\": \"[email protected]\",\r\n \"url\": \"https://www.dcsa.org\"\r\n }\r\n ],\r\n \"identifyingCodes\": [\r\n {\r\n \"DCSAResponsibleAgencyCode\": \"SMDG\",\r\n \"partyCode\": \"MSK\",\r\n \"codeListName\": \"LCL\"\r\n }\r\n ]\r\n },\r\n \"numberOfRiderPages\": 2,\r\n \"termsAndConditions\": \"string\",\r\n \"receiptTypeAtOrigin\": \"CY\",\r\n \"deliveryTypeAtDestination\": \"CY\",\r\n \"cargoMovementTypeAtOrigin\": \"FCL\",\r\n \"cargoMovementTypeAtDestination\": \"FCL\",\r\n \"serviceContractReference\": \"string\",\r\n \"vesselName\": \"King of the Seas\",\r\n \"carrierExportVoyageNumber\": \"2103S\",\r\n \"universalExportVoyageReference\": \"2103N\",\r\n \"declaredValue\": 1231.1,\r\n \"declaredValueCurrency\": \"DKK\",\r\n \"transports\": [\r\n {\r\n \"transportPlanStage\": \"PRC\",\r\n \"transportPlanStageSequenceNumber\": 5,\r\n \"loadLocation\": {\r\n \"locationName\": \"Shanghai Shengdong International Container Terminal\",\r\n \"UNLocationCode\": \"CNSGH\",\r\n \"facilityCode\": \"SHENG\",\r\n \"facilityCodeListProvider\": \"SMDG\"\r\n },\r\n \"dischargeLocation\": {\r\n \"locationName\": \"Transnet Port Terminals Cape Town\",\r\n \"UNLocationCode\": \"ZACPT\",\r\n \"facilityCode\": \"TNCT\",\r\n \"facilityCodeListProvider\": \"SMDG\"\r\n },\r\n \"plannedDepartureDate\": \"2022-08-16\",\r\n \"plannedArrivalDate\": \"2022-08-16\",\r\n \"modeOfTransport\": \"VESSEL\",\r\n \"vesselName\": \"King of the Seas\",\r\n \"vesselIMONumber\": \"9321483\",\r\n \"carrierImportVoyageNumber\": \"2103N\",\r\n \"universalImportVoyageReference\": \"2103N\",\r\n \"carrierExportVoyageNumber\": \"2103S\",\r\n \"universalExportVoyageReference\": \"2103N\",\r\n \"isUnderShippersResponsibility\": false\r\n }\r\n ],\r\n \"shipmentLocations\": [\r\n {\r\n \"location\": {\r\n \"locationName\": \"CMP Container Terminal Copenhagen\",\r\n \"UNLocationCode\": \"DKCPH\",\r\n \"facilityCode\": \"CMPDK\",\r\n \"facilityCodeListProvider\": \"SMDG\"\r\n },\r\n \"displayedName\": \"string\",\r\n \"shipmentLocationTypeCode\": \"PRE\",\r\n \"eventDateTime\": \"2021-11-03T10:23:00+01:00\"\r\n }\r\n ],\r\n \"invoicePayableAt\": {\r\n \"locationName\": \"Eiffel Tower\",\r\n \"UNLocationCode\": \"FRPAR\"\r\n },\r\n \"placeOfIssue\": {\r\n \"locationName\": \"DCSA Headquarters\",\r\n \"UNLocationCode\": \"NLAMS\"\r\n },\r\n \"shippingInstruction\": {\r\n \"shippingInstructionReference\": \"e0559d83-00e2-438e-afd9-fdd610c1a008\",\r\n \"documentStatus\": \"RECE\",\r\n \"shippingInstructionCreatedDateTime\": \"2019-11-12T07:41:00+08:30\",\r\n \"shippingInstructionUpdatedDateTime\": \"2019-11-12T07:41:00+08:30\",\r\n \"amendToTransportDocument\": \"string\",\r\n \"transportDocumentTypeCode\": \"SWB\",\r\n \"isShippedOnBoardType\": true,\r\n \"numberOfCopies\": 2,\r\n \"numberOfOriginals\": 4,\r\n \"isElectronic\": true,\r\n \"isToOrder\": false,\r\n \"areChargesDisplayedOnOriginals\": true,\r\n \"areChargesDisplayedOnCopies\": true,\r\n \"displayedNameForPlaceOfReceipt\": \"string\",\r\n \"displayedNameForPortOfLoad\": \"string\",\r\n \"displayedNameForPortOfDischarge\": \"string\",\r\n \"displayedNameForPlaceOfDelivery\": \"string\",\r\n \"carrierBookingReference\": \"ABC709951\",\r\n \"placeOfIssue\": {\r\n \"locationName\": \"DCSA Headquarters\",\r\n \"UNLocationCode\": \"NLAMS\"\r\n },\r\n \"consignmentItems\": [\r\n {\r\n \"carrierBookingReference\": \"ABC709951\",\r\n \"weight\": 13000.3,\r\n \"volume\": 12,\r\n \"weightUnit\": \"KGM\",\r\n \"volumeUnit\": \"MTQ\",\r\n \"descriptionOfGoods\": \"string\",\r\n \"HSCode\": \"string\",\r\n \"cargoItems\": [\r\n {\r\n \"cargoLineItems\": [\r\n {\r\n \"cargoLineItemID\": \"string\",\r\n \"shippingMarks\": \"string\"\r\n }\r\n ],\r\n \"equipmentReference\": \"APZU4812090\",\r\n \"weight\": 13000.3,\r\n \"volume\": 12,\r\n \"weightUnit\": \"KGM\",\r\n \"volumeUnit\": \"MTQ\",\r\n \"numberOfPackages\": 18,\r\n \"packageCode\": \"5H4\",\r\n \"packageNameOnBL\": \"Bags\"\r\n }\r\n ],\r\n \"references\": [\r\n {\r\n \"referenceType\": \"FF\",\r\n \"referenceValue\": \"string\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"utilizedTransportEquipments\": [\r\n {\r\n \"equipment\": {\r\n \"equipmentReference\": \"APZU4812090\",\r\n \"ISOEquipmentCode\": \"22GP\",\r\n \"tareWeight\": 12000,\r\n \"weightUnit\": \"KGM\"\r\n },\r\n \"cargoGrossWeight\": 12000,\r\n \"cargoGrossWeightUnit\": \"KGM\",\r\n \"cargoGrossVolume\": 120,\r\n \"cargoGrossVolumeUnit\": \"MTQ\",\r\n \"numberOfPackages\": 18,\r\n \"isShipperOwned\": true,\r\n \"activeReeferSettings\": {\r\n \"temperatureMin\": -18.1,\r\n \"temperatureMax\": 64.3,\r\n \"temperatureUnit\": \"CEL\",\r\n \"humidityMin\": 80,\r\n \"humidityMax\": 100,\r\n \"ventilationMin\": 266,\r\n \"ventilationMax\": 296\r\n },\r\n \"seals\": [\r\n {\r\n \"sealNumber\": \"string\",\r\n \"sealSource\": \"CUS\",\r\n \"sealType\": \"WIR\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"documentParties\": [\r\n {\r\n \"party\": {\r\n \"partyName\": \"Asseco Denmark\",\r\n \"taxReference1\": \"CVR-25645774\",\r\n \"taxReference2\": \"CVR-25645774\",\r\n \"publicKey\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IkFzaW\",\r\n \"address\": {\r\n \"name\": \"Henrik\",\r\n \"street\": \"Kronprincessegade\",\r\n \"streetNumber\": \"54\",\r\n \"floor\": \"5. sal\",\r\n \"postCode\": \"1306\",\r\n \"city\": \"København\",\r\n \"stateRegion\": \"N/A\",\r\n \"country\": \"Denmark\"\r\n },\r\n \"partyContactDetails\": [\r\n {\r\n \"name\": \"Henrik\",\r\n \"phone\": \"+45 33364660\",\r\n \"email\": \"[email protected]\",\r\n \"url\": \"https://www.dcsa.org\"\r\n }\r\n ],\r\n \"identifyingCodes\": [\r\n {\r\n \"DCSAResponsibleAgencyCode\": \"SMDG\",\r\n \"partyCode\": \"MSK\",\r\n \"codeListName\": \"LCL\"\r\n }\r\n ]\r\n },\r\n \"partyFunction\": \"DDS\",\r\n \"displayedAddress\": [\r\n \"Kronprincessegade 54\"\r\n ],\r\n \"isToBeNotified\": true\r\n }\r\n ],\r\n \"references\": [\r\n {\r\n \"referenceType\": \"FF\",\r\n \"referenceValue\": \"string\"\r\n }\r\n ]\r\n },\r\n \"charges\": [\r\n {\r\n \"chargeType\": \"string\",\r\n \"currencyAmount\": 1012.12,\r\n \"currencyCode\": \"DKK\",\r\n \"paymentTermCode\": \"PRE\",\r\n \"calculationBasis\": \"Per day\",\r\n \"unitPrice\": 3456.6,\r\n \"quantity\": 34.4\r\n }\r\n ],\r\n \"carrierClauses\": [\r\n {\r\n \"clauseContent\": \"string\"\r\n }\r\n ]\r\n },\r\n \"endorsementChain\": [\r\n {\r\n \"envelopeHash\": \"20a0257b313ae08417e07f6555c4ec829a512c083f3ead16b41158018a22abe9\",\r\n \"signature\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IlVhRVdLNmt2ZkRITzNZT2NwUGl2M1RCT2JQTzk2SFZhR2U0czFhUUxBZU0ifQ.eyJkb2N1bWVudEhhc2giOiJmZDg2OGM4MmU5OTc3N2I0NzJhMTY3NzM5MGQ5NTRkYmIwMTMxY2IzYjBmNTVjOGVmNTE5Njk4NTY0MTBkMzhlIiwicHJldmlvdXNFbnZlbG9wZUhhc2giOm51bGwsInRyYW5zYWN0aW9ucyI6W3siaW5zdHJ1Y3Rpb24iOiJJU1NVIiwiY29tbWVudHMiOiJUaGUgQi9MIGhhcyBiZWVuIGlzc3VlZC4iLCJ0aW1lc3RhbXAiOjE2NTgzODUxNjYzMDI0NDIyMDAsImlzVG9PcmRlciI6dHJ1ZSwicGxhdGZvcm1Ib3N0IjoibG9jYWxob3N0Ojg0NDMiLCJ0cmFuc2ZlcmVlIjoiNDM1NDk4NTAyNDhAbG9jYWxob3N0Ojg0NDMifV19.aybAB3RUg_UM2WcvoE4s807Kf7BhSALZq1EvF9f_AUP6ZZgOP4cFS0rlLHSVrobKlF_Og-w0K_M9SPAQS6UnY0hht6pwHTHmoxPmWoQ-ARhnsThjhB3ZYhDbrroJnYPkQAjCmKXPrhNi2z9Fn4GvaI6iRjfJMQchSWQtAEjhqSLNaHtRwec65CDYEZ6OTHX7uP5g3WZtCfmswRGrkcCLosveSxsFpezjjOfTEo2NCCtO0tAxtNtus4GsF8QIMrM6QknJ4909ZrVonvtMUoRffFoUqgemfaFggK5XriLgn2OdSn8ZBhRn_ZqVojuf26mXrVm12C9jSQPPfPGy-myrOQ\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://{{BASE_URL}}/{{MAJOR_VERSION}}/transferblocks",
"protocol": "https",
"host": [
"{{BASE_URL}}"
],
"path": [
"{{MAJOR_VERSION}}",
"transferblocks"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"API Version is present\", function () {",
" pm.response.to.be.header(\"API-Version\", \"0.0.1\");",
"});"
]
}
}
],
"variable": [
{
"key": "TRANSPORT_DOCUMENT_ID",
"value": "<none>",
"type": "string"
},
{
"key": "BASE_URL",
"value": "localhost:8443",
"type": "string"
},
{
"key": "WORKING_VERSION",
"value": "0.0.1",
"type": "string"
},
{
"key": "MAJOR_VERSION",
"value": "v1",
"type": "string"
},
{
"key": "JWKS_URL_PATH",
"value": "/unofficial/.well-known/jwks.json",
"type": "string"
},
{
"key": "JSRSASIGN_URL",
"value": "https://raw.githubusercontent.com/kjur/jsrsasign/master/npm/lib/jsrsasign.js",
"type": "string"
},
{
"key": "jsrsassign-js",
"value": ""
},
{
"key": "JWK",
"value": ""
}
]
}