Class SmartRateService
Class representing a set of SmartRate-related functionality.
Inherited Members
Namespace: EasyPost.Services
Assembly: EasyPost.dll
Syntax
public class SmartRateService : EasyPostService, IEasyPostService
  Methods
| Improve this Doc View SourceEstimateDeliveryDate(EstimateDeliveryDateForZipPair, CancellationToken)
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. Unlike the RetrieveEstimatedDeliveryDate(String, String, CancellationToken) method, this method does not require a Shipment ID.
Declaration
public async Task<EstimateDeliveryDateForZipPairResult> EstimateDeliveryDate(EstimateDeliveryDateForZipPair parameters, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| EstimateDeliveryDateForZipPair | parameters | The EstimateDeliveryDateForZipPair parameters to include on the API call.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<EstimateDeliveryDateForZipPairResult> | An EstimateDeliveryDateForZipPairResult object.  | 
      
RecommendShipDate(RecommendShipDateForZipPair, CancellationToken)
Retrieve a recommended ship date for each carrier-service level combination via the Smart Deliver On API, based on a specific desired delivery date and origin-destination postal code pair. Unlike the RecommendShipDate(String, String, CancellationToken) method, this method does not require a Shipment ID.
Declaration
public async Task<RecommendShipDateForZipPairResult> RecommendShipDate(RecommendShipDateForZipPair parameters, CancellationToken cancellationToken = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| RecommendShipDateForZipPair | parameters | The RecommendShipDateForZipPair parameters to include on the API call.  | 
      
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<RecommendShipDateForZipPairResult> | A RecommendShipDateForZipPairResult object.  |