Json 针对多个装运日期的UPS费率API问题
我正在使用UPS费率API(基于JSON的选项Shoptimeintransit)获取所提供装运日期的可用交货日期 在DeliveryTimeInformation中,我正在设置取货信息Json 针对多个装运日期的UPS费率API问题,json,api,ups,Json,Api,Ups,我正在使用UPS费率API(基于JSON的选项Shoptimeintransit)获取所提供装运日期的可用交货日期 在DeliveryTimeInformation中,我正在设置取货信息 { "Security": { "UsernameToken": { "Username": "xxxxxxx", "Password": "xxxxxxx" }, "UPSServiceAccessToken": { "AccessLicens
{
"Security": {
"UsernameToken": {
"Username": "xxxxxxx",
"Password": "xxxxxxx"
},
"UPSServiceAccessToken": {
"AccessLicenseNumber": "xxxxxxxxxxx"
}
},
"RateRequest": {
"Request": {
"RequestOption": "Shoptimeintransit",
"TransactionReference": {
"CustomerContext": "Your Customer Context"
}
},
"CustomerClassification": {
"Code": "00"
},
"PickupType": {
"Code": "06"
},
"Shipment": {
"DeliveryTimeInformation": {
"PackageBillType": "07",
"Pickup": {
"Date": "20170925",
"Time": "1140"
}
},
"Shipper": {
"ShipperNumber": "xxxxxxx",
"Address": {
"City": "Kansas City",
"StateProvinceCode": "MO",
"CountryCode": "US",
"PostalCode": "xxxx"
}
},
"ShipTo": {
"Address": {
"City": "Redwood",
"StateProvinceCode": "CA",
"CountryCode": "US",
"PostalCode": "xxxx"
}
},
"ShipFrom": {
"Address": {
"City": "Kansas City",
"StateProvinceCode": "MO",
"CountryCode": "US",
"PostalCode": "xxxx"
}
},
"Package": {
"PackagingType": {
"Code": "02"
},
"Dimensions": {
"UnitOfMeasurement": {
"Code": "IN"
},
"Length": "5",
"Width": "4",
"Height": "3"
},
"PackageWeight": {
"UnitOfMeasurement": {
"Code": "LBS"
},
"Weight": "1"
}
},
"NumOfPieces": "3",
"ShipmentRatingOptions": {
"NegotiatedRatesIndicator": ""
}
}
}
}
问题是,我需要下N个发货日期的可用发货日期,但API在DeliveryTimeInformation>Pick部分仅获取单个发货日期
所以,一种可能是调用API N次并合并结果,这似乎不是一个好主意
任何人都知道任何相关的API,这些API用于将取货日期作为列表,并返回所有可能的交货日期、所提供数据的服务代码。文档状态
Max Allowed:1
用于DeliveryTimeInformation
,因此没有
您可以通过客户服务部申请下次API更新(每年1月和7月),但在此之前,您必须发出
N
请求。谢谢,Martin,我也这样做了。我认为他们应该为日期范围选项提供一些API。