我正在整合FedEx运输API以使用Java生成标签.一切都很好,但除了这个问题.在为FedEx Freight设置LabelFormatType到COMMON2D或LABEL_DATA_ONLY时,我收到以下错误,即FEDEX_FREIGHT_ECONOMY和FEDEX_FREIGHT_PRIORITY.
<Code>6022</Code>
<Message>Barcode Height missing from Custom Barcode Entry</Message>
我确实尝试在下面的字段中添加条形码高度,但它不起作用
RequestedShipment -> ShippingDocumentSpecification -> CustomShipmentDocumentDetail -> CustomContent -> BarcodeEntries -> BarHeight
RequestedShipment -> ShippingDocumentSpecification -> CustomPackageDocumentDetail -> CustomContent -> BarcodeEntries -> BarHeight
RequestedShipment -> ShippingDocumentSpecification -> FreightAddressLabelDetail -> CustomContent -> BarcodeEntries -> BarHeight
RequestedShipment -> LabelSpecification -> CustomerSpecifiedDetail -> CustomContent -> BarcodeEntries -> BarHeight
注意:该代码适用于其他两个LabelFormatTypei.e FEDEX_FREIGHT_STRAIGHT_BILL_OF_LADING和VICS_BILL_OF_LADING以及其他ServiceTypes.
我还没找到任何解决方案.
请告诉我我错过了什么?
解决方法:
你是对的,你需要使用这两种标签格式类型.对于LTL Freight货件发货请求,使用COMMON2D或LABEL_DATA_ONLY时可以返回“自定义条码输入中缺少条形码高度”.根据FedEx支持,FedEx LTL出货量需要提单(BOL),并且唯一可用的LabelFormatTypes是FEDEX_FREIGHT_STRAIGHT_BILL_OF_LADING或VICS_BILL_OF_LADING,其中VICS =自愿的行业间商业标准.
此标签以PDF格式返回,此外您还可以请求ZPL格式的FedEx地址标签.