帮助中心
3.2 运价结果查询接口

# 1. 接口描述

  • 该接口可根据批次号(运小沓-运价查询Key)查询客户的运价结果数据

# 2. 请求URL

  • https://openapi.1datatech.net/freight/api/task/result_query

# 3. 请求方式

  • POST
  • Content-Type :application/json

# 4. 请求头

参数 说明
accessToken 调用接口的凭证,通过获取Token 接口获得
nonce 签名时生成的随机数
timestamp 签名时生成的时间戳
sign 接口签名

# 5. 请求入参

参数名 必选 类型 说明
batchNo string 批次号即运小沓-运价查询key
pageNum int 页码 ,不传默认为1
pageSize int 每页查询的数量,不传默认为100,最大支持500

# 6. 请求入参示例

{
    "batchNo":"2d12db81d47c4ea0bdda2f688d284cbc",
    "pageNum":1,
    "pageSize":20
}
1
2
3
4
5

# 7. 返回报文

参数名 类型 说明
batchNo string 批次号即运小沓-运价key
total long 总条数
resultData array 查询结果
taskId int 任务ID
shipCompany string 船司
polPort string 起运港(船公司)
orginPolPortCd string 订阅传入起运港
polPortCd string 起运港五字码 (壹沓标准五字码)
polPortName string 起运港名称 (壹沓标准五字码对应港口名称)
podPort string 目的港(船公司)
podPortCd string 目的港五字码 (壹沓标准五字码)
podPortName string 目的港名称 (壹沓标准五字码对应港口名称)
orginPodPortCd string 订阅传入目的港
shipName string 船名
lineCode string 航线代码
voyage string 航次
tripTime string 航程(天)
boxType string 箱型
departureTime string 启运港预计开航时间
departureWeek string 启运港预计开航时间是星期几
arrivalTime string 目的港到达时间
arrivalWeek string 目的港到达时间是星期几
travelWay string 直达/中转
transitNumber string 中转次数
transitPort string 中转港名称,多个以","分隔(该字段为兼容老客户遗留,建议使用transitPortList字段)
totalCost string 总价
currency string 总价币种
havePosition string 是否有舱位, 0: 没有, 1: 有舱位
refreshTime string 数据更新时间,格式:yyyy-MM-dd HH:mm:ss)
transitPortList array 中转港明细
transitPort string 中转港名称
transitPortCode string 中转港港口代码
data1PortName string 中转港对应壹沓港口名称
shipName string 船名
voyage string 航次
lineCode string 航线代码
costList array 费用详情
costCategory string 费用类别:海运费,出口附加费,进口附加费,运费附加费,超重费其他等
costDetail string 费用描述
unit string 单位:箱\票
price string 价格
currency string 币种
demurrageList array 滞箱滞港费
costCategory string 费用类别
costDetail string 费用明细
unit string 单位:箱\票
price string 价格
currency string 币种
dayNum int 天数

# 8. 返回报文示例

# 无数据返回示例

{
    "code": 200,
    "message": null,
    "data": null
}

1
2
3
4
5
6

# 有数据返回示例


{
    "msg": "操作成功",
    "code": 200,
    "data": {
        "batchNo": "2d12db81d47c4ea0bdda2f688d284cbc",
        "total": "5",
        "resultData": [
            {
                "taskId": "26968",
                "shipCompany": "MSK",
                "polPort": "Gemlik, Turkey",
                "polPortCd": "TRGEM",
                "polPortName": "GEMLIK,Turkey(TRGEM)",
                "podPort": "Mexico City, Mexico",
                "podPortCd": "MXMEX",
                "podPortName": "MEXICO CITY,MEXICO(MXMEX)",
                "originalPolPortCd": "GEMLIK,Turkey(TRGEM)",
                "originalPodPortCd": "MEXICO CITY,MEXICO(MXMEX)",
                "shipName": "TOMRIZ A",
                "lineCode": null,
                "voyage": "313S",
                "tripTime": "54",
                "boxType": "40HQ",
                "weight": 18000,
                "departureTime": "2023-03-31 00:00:00",
                "departureWeek": "周五",
                "arrivalTime": "2023-05-24 00:00:00",
                "arrivalWeek": "周三",
                "travelWay": null,
                "transitNumber": null,
                "transitPort": null,
                "transitPortList": null,
                "totalCost": "3782.00",
                "currency": "USD",
                "havePosition": 1,
                "refreshTime": "2023-02-28 14:30:57",
                "runDate": "2023-02-28 00:00:00",
                "expireDate": "2023-03-02 00:00:00",
                "remark": null,
                "costList": [
                    {
                        "costCategory": "海运费",
                        "costDetail": null,
                        "unit": "箱",
                        "price": "3165.00",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Amendment Fee",
                        "unit": "",
                        "price": "50",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Cancellation Fee",
                        "unit": "",
                        "price": "130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "No Show Fee",
                        "unit": "",
                        "price": "260",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Compensation Fee",
                        "unit": "",
                        "price": "-130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Documentation fee - Destination",
                        "unit": "",
                        "price": "90.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Peak Season Surcharge",
                        "unit": "",
                        "price": "125.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Environmental Fuel Fee",
                        "unit": "",
                        "price": "152.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Container Protect Essential",
                        "unit": "",
                        "price": "25.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "出口附加费",
                        "costDetail": "Terminal Handling Service - Origin",
                        "unit": "",
                        "price": "340.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Inland Haulage Import",
                        "unit": "",
                        "price": "620.0",
                        "currency": "USD"
                    }
                ],
                "demurrageList": [
                    {
                        "costCategory": "Detention",
                        "costDetail": "DISCHARGE",
                        "price": "",
                        "unit": "",
                        "currency": "",
                        "dayNum": 7
                    }
                ]
            },
            {
                "taskId": "26968",
                "shipCompany": "MSK",
                "polPort": "Gemlik, Turkey",
                "polPortCd": "TRGEM",
                "polPortName": "GEMLIK,Turkey(TRGEM)",
                "podPort": "Mexico City, Mexico",
                "podPortCd": "MXMEX",
                "podPortName": "MEXICO CITY,MEXICO(MXMEX)",
                "originalPolPortCd": "GEMLIK,Turkey(TRGEM)",
                "originalPodPortCd": "MEXICO CITY,MEXICO(MXMEX)",
                "shipName": "TOMRIZ A",
                "lineCode": null,
                "voyage": "314S",
                "tripTime": "47",
                "boxType": "40HQ",
                "weight": 18000,
                "departureTime": "2023-04-07 00:00:00",
                "departureWeek": "周五",
                "arrivalTime": "2023-05-24 00:00:00",
                "arrivalWeek": "周三",
                "travelWay": null,
                "transitNumber": null,
                "transitPort": null,
                "transitPortList": null,
                "totalCost": "3500.00",
                "currency": "USD",
                "havePosition": 1,
                "refreshTime": "2023-02-28 14:30:57",
                "runDate": "2023-02-28 00:00:00",
                "expireDate": "2023-03-02 00:00:00",
                "remark": null,
                "costList": [
                    {
                        "costCategory": "海运费",
                        "costDetail": null,
                        "unit": "箱",
                        "price": "2883.00",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Amendment Fee",
                        "unit": "",
                        "price": "50",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Cancellation Fee",
                        "unit": "",
                        "price": "130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "No Show Fee",
                        "unit": "",
                        "price": "260",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Compensation Fee",
                        "unit": "",
                        "price": "-130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Documentation fee - Destination",
                        "unit": "",
                        "price": "90.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Peak Season Surcharge",
                        "unit": "",
                        "price": "125.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Environmental Fuel Fee",
                        "unit": "",
                        "price": "152.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Container Protect Essential",
                        "unit": "",
                        "price": "25.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "出口附加费",
                        "costDetail": "Terminal Handling Service - Origin",
                        "unit": "",
                        "price": "340.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Inland Haulage Import",
                        "unit": "",
                        "price": "620.0",
                        "currency": "USD"
                    }
                ],
                "demurrageList": [
                    {
                        "costCategory": "Detention",
                        "costDetail": "DISCHARGE",
                        "price": "",
                        "unit": "",
                        "currency": "",
                        "dayNum": 7
                    }
                ]
            },
            {
                "taskId": "26968",
                "shipCompany": "MSK",
                "polPort": "Gemlik, Turkey",
                "polPortCd": "TRGEM",
                "polPortName": "GEMLIK,Turkey(TRGEM)",
                "podPort": "Mexico City, Mexico",
                "podPortCd": "MXMEX",
                "podPortName": "MEXICO CITY,MEXICO(MXMEX)",
                "originalPolPortCd": "GEMLIK,Turkey(TRGEM)",
                "originalPodPortCd": "MEXICO CITY,MEXICO(MXMEX)",
                "shipName": "TOMRIZ A",
                "lineCode": null,
                "voyage": "311S",
                "tripTime": "43",
                "boxType": "40HQ",
                "weight": 18000,
                "departureTime": "2023-03-17 00:00:00",
                "departureWeek": "周五",
                "arrivalTime": "2023-04-29 00:00:00",
                "arrivalWeek": "周六",
                "travelWay": null,
                "transitNumber": null,
                "transitPort": null,
                "transitPortList": null,
                "totalCost": "4128.00",
                "currency": "USD",
                "havePosition": 1,
                "refreshTime": "2023-02-28 14:30:57",
                "runDate": "2023-02-28 00:00:00",
                "expireDate": "2023-03-02 00:00:00",
                "remark": null,
                "costList": [
                    {
                        "costCategory": "海运费",
                        "costDetail": null,
                        "unit": "箱",
                        "price": "3511.00",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Amendment Fee",
                        "unit": "",
                        "price": "50",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Cancellation Fee",
                        "unit": "",
                        "price": "130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "No Show Fee",
                        "unit": "",
                        "price": "260",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Compensation Fee",
                        "unit": "",
                        "price": "-130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Documentation fee - Destination",
                        "unit": "",
                        "price": "90.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Peak Season Surcharge",
                        "unit": "",
                        "price": "125.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Environmental Fuel Fee",
                        "unit": "",
                        "price": "152.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Container Protect Essential",
                        "unit": "",
                        "price": "25.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "出口附加费",
                        "costDetail": "Terminal Handling Service - Origin",
                        "unit": "",
                        "price": "340.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Inland Haulage Import",
                        "unit": "",
                        "price": "620.0",
                        "currency": "USD"
                    }
                ],
                "demurrageList": [
                    {
                        "costCategory": "Detention",
                        "costDetail": "DISCHARGE",
                        "price": "",
                        "unit": "",
                        "currency": "",
                        "dayNum": 7
                    }
                ]
            },
            {
                "taskId": "26968",
                "shipCompany": "MSK",
                "polPort": "Gemlik, Turkey",
                "polPortCd": "TRGEM",
                "polPortName": "GEMLIK,Turkey(TRGEM)",
                "podPort": "Mexico City, Mexico",
                "podPortCd": "MXMEX",
                "podPortName": "MEXICO CITY,MEXICO(MXMEX)",
                "originalPolPortCd": "GEMLIK,Turkey(TRGEM)",
                "originalPodPortCd": "MEXICO CITY,MEXICO(MXMEX)",
                "shipName": "TOMRIZ A",
                "lineCode": null,
                "voyage": "312S",
                "tripTime": "50",
                "boxType": "40HQ",
                "weight": 18000,
                "departureTime": "2023-03-24 00:00:00",
                "departureWeek": "周五",
                "arrivalTime": "2023-05-13 00:00:00",
                "arrivalWeek": "周六",
                "travelWay": null,
                "transitNumber": null,
                "transitPort": null,
                "transitPortList": null,
                "totalCost": "3857.00",
                "currency": "USD",
                "havePosition": 1,
                "refreshTime": "2023-02-28 14:30:57",
                "runDate": "2023-02-28 00:00:00",
                "expireDate": "2023-03-02 00:00:00",
                "remark": null,
                "costList": [
                    {
                        "costCategory": "海运费",
                        "costDetail": null,
                        "unit": "箱",
                        "price": "3240.00",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Amendment Fee",
                        "unit": "",
                        "price": "50",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Cancellation Fee",
                        "unit": "",
                        "price": "130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "No Show Fee",
                        "unit": "",
                        "price": "260",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Compensation Fee",
                        "unit": "",
                        "price": "-130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Documentation fee - Destination",
                        "unit": "",
                        "price": "90.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Peak Season Surcharge",
                        "unit": "",
                        "price": "125.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Environmental Fuel Fee",
                        "unit": "",
                        "price": "152.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Container Protect Essential",
                        "unit": "",
                        "price": "25.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "出口附加费",
                        "costDetail": "Terminal Handling Service - Origin",
                        "unit": "",
                        "price": "340.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Inland Haulage Import",
                        "unit": "",
                        "price": "620.0",
                        "currency": "USD"
                    }
                ],
                "demurrageList": [
                    {
                        "costCategory": "Detention",
                        "costDetail": "DISCHARGE",
                        "price": "",
                        "unit": "",
                        "currency": "",
                        "dayNum": 7
                    }
                ]
            },
            {
                "taskId": "26968",
                "shipCompany": "MSK",
                "polPort": "Gemlik, Turkey",
                "polPortCd": "TRGEM",
                "polPortName": "GEMLIK,Turkey(TRGEM)",
                "podPort": "Mexico City, Mexico",
                "podPortCd": "MXMEX",
                "podPortName": "MEXICO CITY,MEXICO(MXMEX)",
                "originalPolPortCd": "GEMLIK,Turkey(TRGEM)",
                "originalPodPortCd": "MEXICO CITY,MEXICO(MXMEX)",
                "shipName": "TOMRIZ A",
                "lineCode": null,
                "voyage": "30B4",
                "tripTime": "47",
                "boxType": "40HQ",
                "weight": 18000,
                "departureTime": "2023-03-03 00:00:00",
                "departureWeek": "周五",
                "arrivalTime": "2023-04-19 00:00:00",
                "arrivalWeek": "周三",
                "travelWay": null,
                "transitNumber": null,
                "transitPort": null,
                "transitPortList": null,
                "totalCost": "4567.00",
                "currency": "USD",
                "havePosition": 1,
                "refreshTime": "2023-02-28 14:30:57",
                "runDate": "2023-02-28 00:00:00",
                "expireDate": "2023-03-02 00:00:00",
                "remark": null,
                "costList": [
                    {
                        "costCategory": "海运费",
                        "costDetail": null,
                        "unit": "箱",
                        "price": "3950.00",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Amendment Fee",
                        "unit": "",
                        "price": "50",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Cancellation Fee",
                        "unit": "",
                        "price": "130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "No Show Fee",
                        "unit": "",
                        "price": "260",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "其它",
                        "costDetail": "Compensation Fee",
                        "unit": "",
                        "price": "-130",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Documentation fee - Destination",
                        "unit": "",
                        "price": "90.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Peak Season Surcharge",
                        "unit": "",
                        "price": "125.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "运费附加费",
                        "costDetail": "Environmental Fuel Fee",
                        "unit": "",
                        "price": "152.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Container Protect Essential",
                        "unit": "",
                        "price": "25.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "出口附加费",
                        "costDetail": "Terminal Handling Service - Origin",
                        "unit": "",
                        "price": "340.0",
                        "currency": "USD"
                    },
                    {
                        "costCategory": "进口附加费",
                        "costDetail": "Inland Haulage Import",
                        "unit": "",
                        "price": "620.0",
                        "currency": "USD"
                    }
                ],
                "demurrageList": [
                    {
                        "costCategory": "Detention",
                        "costDetail": "DISCHARGE",
                        "price": "",
                        "unit": "",
                        "currency": "",
                        "dayNum": 7
                    }
                ]
            }
        ]
    },
    "message": "操作成功"
}
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
最近更新时间: { "value": "2023-07-28", "effect": true }