多个装运日期的 UPS 费率 API 问题

UPS Rates API issue for multiple shipment dates

我正在使用 UPS 费率 API(JSON 基于选项 Shoptimeintransit)来获取提供的装运日期的可用送货日期。

https://www.ups.com/upsdeveloperkit/downloadresource?loc=en_CA

在 DeliveryTimeInformation 中,我正在设置取件信息。

{
  "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 > Pickup 部分只需要单个装运日期。

因此,一种可能是调用 API N 次并合并结果,这似乎不是一个好主意。

任何人都知道任何相关的 API 用于将取件日期作为列表和 return 所有可能的交货日期,提供数据的服务代码。

文档声明 Max Allowed: 1 DeliveryTimeInformation,所以没有。

您可以通过客户服务请求下一次 API 更新(每年 1 月和 7 月),但在此之前您必须提出 N 请求。