Class SmartRateService

java.lang.Object
com.easypost.service.SmartRateService

public class SmartRateService extends Object
  • Method Details

    • recommendShipDate

      public RecommendShipDateForZipPairResult recommendShipDate(Map<String,Object> params) throws EasyPostException
      Retrieve a recommended ship date for an existing Shipment via the Precision Shipping API, based on a specific desired delivery date.
      Parameters:
      params - Parameters to include on the API call.
      Returns:
      EstimatedDeliveryDate object.
      Throws:
      EasyPostException - When the request fails.
    • estimateDeliveryDate

      public EstimateDeliveryDateForZipPairResult estimateDeliveryDate(Map<String,Object> params) throws EasyPostException
      Retrieve the estimated delivery date of each carrier-service level combination via the Smart Deliver By API, based on a specific ship date and origin-destination postal code pair.
      Parameters:
      params - Parameters to include on the API call.
      Returns:
      EstimatedDeliveryDate object.
      Throws:
      EasyPostException - When the request fails.