---
schema_version: "1"
id: b9507e8fbe9f340b427fdcbfe261ac17c11497f3466685390e7afead2414630e
title: ExtendedCommerceDelivery Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_ExtendedCommerceDelivery_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ExtendedCommerceDelivery_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f16c242e1be498d88353810bb31a5bd17624d7c347e4e6ba9e6c1bc67a259d82
description: Access information about delivery estimation.This method is for ExtendedCommerceDelivery. It is static.Forecast an expected delivery date and time based on delivery estimation settings and the selected shipping carrier method. Provide information on when a package is expected to be shipped and delivered.
---
# ExtendedCommerceDelivery Class

Access information about delivery estimation.

## Namespace

[ConnectApi](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_connect_api.htm "The ConnectApi namespace (also called Connect in Apex) provides classes for accessing the same data available in Connect REST API. Use Connect in Apex to create custom experiences in Salesforce.")

## ExtendedCommerceDelivery Methods

This method is for ExtendedCommerceDelivery. It is static.

- **[estimateDeliveryDate(estimateDeliveryDateInput, externalReference)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_ExtendedCommerceDelivery_static_methods.htm#apex_ConnectAPI_ExtendedCommerceDelivery_estimateDeliveryDate_1)**  
    Forecast an expected delivery date and time based on delivery estimation settings and the selected shipping carrier method. Provide information on when a package is expected to be shipped and delivered.

### estimateDeliveryDate(estimateDeliveryDateInput, externalReference)

Forecast an expected delivery date and time based on delivery estimation settings and the selected shipping carrier method. Provide information on when a package is expected to be shipped and delivered.

#### API Version

63.0

#### Available to Guest Users

63.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.EstimateDeliveryDateOutputRepresentation estimateDeliveryDate(ConnectApi.EstimateDeliveryDateInputRepresentation estimateDeliveryDateInput, String externalReference)

#### Parameters

estimateDeliveryDateInput

Type: Datetime

[ConnectApi.EstimateDeliveryDateInputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_estimate_delivery_date.htm "Delivery date estimation information.")

Estimated delivery date.

externalReference

Type: String

Delivery estimation setup external reference ID.

#### Return Value

Type: [ConnectApi.EstimateDeliveryDateOutputRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_estimate_delivery_date_output.htm "Estimated delivery dates.")