Cart Checkout Delivery Promise API

Get started

To use the Cart Checkout Delivery Promise API, you must first configure your account. Guidance can be found in the Delivery Promise documentation. This document provides instructions for using the API.

Retrieve an estimated delivery date (EDD) for your cart checkout pages with the Cart Checkout Delivery Promise API

The Shipium Cart Checkout Delivery Promise API is designed to be flexible to fit your organization’s business strategy and technical capabilities. All API calls assume you're using one of the authentication mechanisms detailed in our authentication documentation. The endpoint for all Cart Checkout Delivery Promise API calls is included in the table below.

API type API endpoint
POST https://api.shipium.com/api/v1/deliveryexperience/cartDeliveryEstimate

Request and response fields for API calls

The following tables provide required, conditional, and optional fields for calling the Cart Checkout Delivery Promise API. You can find additional support in the Cart Delivery Date Estimate API Reference.

Required request fields

Request field Details
partnerCartId Type: String
Description: A unique identifier for this request
customerCountryCode Type: String (enumeration)
Format: Limited to 2 characters and ISO 3166 standards
Description: Shipment's destination country
customerPostalCode Type: String
Description: Shipment's destination country appropriate postal code

Conditional request fields

Request field Details
cartShippingOptions .shippingLocationOptions .fromCountryCode Type: String
Format: Limited to 2 characters and ISO 3166 standards Condition: Either the fromCountryCode and fromPostalCode or the originId must be provided.
Description: Shipment's origin country
cartShippingOptions .shippingLocationOptions .fromPostalCode Type: String
Condition: Either the fromCountryCode and fromPostalCode or the originId must be provided.
Description: Shipment's origin country appropriate postal code
cartShippingOptions .shippingLocationOptions .originId Type: String
Example:origin-id-123
Condition: Either the fromCountryCode and fromPostalCode or the originId must be provided.
Description: A unique identifier for the origin, whether one your organization assigned (partnerProvided) or a Shipium ID

Optional request fields

Request field Details
requestDateOverride Type: String (date-time)
Format: Limited to the ISO 8601 standard Example:2019-10-31T00:00:00Z
Description: Dictate the base calculation of when the request happened. This field allows you to specify the request as though it had happened on a different date and/or time.
shipDateOverride Type: String
Format: Either the ISO 8601 standard date or a local date (yyyy-mm-dd)
Description: Dictate the date that the origin will ship the item.
productViewDeliveryEstimateIds Type: Array of strings
Example:0b3d140a-525b-43a7-896c-cdc381580d61
Description: An array of identifiers that were returned in the response from a call to the Product View API
cartShippingOptions.shippingLocationOptions Type: Array
Description: An array of possible shipping locations with available inventory; either the fromCountryCode and fromPostalCode or the originId can be provided.
cartShippingOptions.shippingLocationOptions .shipOption Type: String (enumeration)
Values:standard, same_day, next_day, two_day, three_day
Description: Retrieve the estimate for a different ship option; the default value is standard.
cartShippingOptions.shippingLocationOptions .estimateSource Type: String (enumeration)
Values:ShipiumCalculated, PartnerProvided, CarrierProvided, Unknown
Description: The source used to generate the estimate
cartShippingOptions.shippingLocationOptions .deliveryBehaviorOverrides Type: Object
Description: Override your organization's account-level weekend and holiday delivery behavior for this shipping location. These overrides apply to the shipOption specified in the same shippingLocationOptions object. Because the Cart Checkout API accepts multiple shipping location options, you can specify different overrides for different ship options within a single request — for example, enabling Saturday delivery for next-day shipping while using account defaults for standard shipping. When provided, these settings take precedence over your default configuration. Each field within the object is optional and can be set independently. If omitted, your account-level settings apply.
cartShippingOptions.shippingLocationOptions .deliveryBehaviorOverrides .saturdayDeliveryBehavior Type: String (enumeration)
Values:ALLOW, NON_DELIVERY_DAY, NON_TRANSIT_NON_DELIVERY_DAY
Description: Controls how Saturdays affect delivery estimates. ALLOW treats Saturday as a regular transit and delivery day. NON_DELIVERY_DAY allows transit but no final delivery; if the calculated delivery date falls on Saturday, it shifts to the next available delivery day. NON_TRANSIT_NON_DELIVERY_DAY excludes Saturday from transit calculations entirely — no transit movement or delivery occurs. When provided, this overrides your organization's configuration in the Shipium platform for Saturday deliveries.
cartShippingOptions.shippingLocationOptions .deliveryBehaviorOverrides .sundayDeliveryBehavior Type: String (enumeration)
Values:ALLOW, NON_DELIVERY_DAY, NON_TRANSIT_NON_DELIVERY_DAY
Description: Controls how Sundays affect delivery estimates. ALLOW treats Sunday as a regular transit and delivery day. NON_DELIVERY_DAY allows transit but no final delivery; if the calculated delivery date falls on Sunday, it shifts to the next available delivery day. NON_TRANSIT_NON_DELIVERY_DAY excludes Sunday from transit calculations entirely — no transit movement or delivery occurs. When provided, this overrides your organization's configuration in the Shipium platform for Sunday deliveries.
cartShippingOptions.shippingLocationOptions .deliveryBehaviorOverrides .holidayDeliveryBehavior Type: String (enumeration)
Values:ALLOW, NON_DELIVERY_DAY, NON_TRANSIT_NON_DELIVERY_DAY
Description: Controls how holidays affect delivery estimates. ALLOW treats the holiday as a regular transit and delivery day. NON_DELIVERY_DAY allows transit but no final delivery; if the calculated delivery date falls on the holiday, it shifts to the next available delivery day. NON_TRANSIT_NON_DELIVERY_DAY excludes the holiday from transit calculations entirely — no transit movement or delivery occurs. When provided, this overrides your organization's configuration in the Shipium platform for holiday deliveries.
partnerReferenceIdentifier Type: String
Description: An optional identifier your organization provides, used for reporting and cross-product correlation across Shipium APIs. Pass the same value you used in your Product View call to correlate this order across the full API chain. Continue passing this value in downstream Fulfillment Engine and Carrier Selection calls. This value is not passed to carriers. See Link API Calls Across Shipium Products for the full cross-product linking guide.

Response attributes

The Cart Checkout Delivery Promise response attributes are defined in the following table.

Response attribute Description
shipiumCartId Unique Shipium-generated ID related to the request and response
deliveryEstimateId Unique Shipium-generated ID related to the response
shipEstimateDate A valid date in ISO 8601 format representing the estimated ship date to a customer configured in the call parameters (e.g., 2023-10-31T00:00:00Z)
shipEstimateDateUTC A valid date in ISO 8601 format with UTC timezone representing the estimated ship date to a customer configured in the call parameters (e.g., 2023-10-31T00:00:00Z)
deliveryEstimateDate Shipium's estimated delivery date (EDD) in the local timezone of the delivery postal code (customerPostalCode)
deliveryEstimateDateUTC A valid date in ISO 8601 format with UTC timezone representing the estimated delivery date to a customer configured in the call parameters (e.g., 2023-10-31T00:00:00Z)
estimateSource The time in transit (TNT) calculation method that was used when calculating this EDD
estimatedTimeInTransitDays An integer value of the time in transit (TNT) in days

Shipium assumptions for the Cart Checkout Delivery Promise API

The shipment will ship from the closest origin to the customer based on distance.

The shipment will ship based on the timestamp of the request plus the configured click-to-ship time and the configured schedule at the origin.

Standard Ground

Retrieve an EDD for a shipment at cart checkout (primary use case)

Example cURL call

curl --request POST
  --url https://api.shipium.com/api/v1/deliveryexperience/cartDeliveryEstimate
  --header 'accept: application/json'
  --header $AUTHSTRING
  --header 'content-type: application/json'
  --data 'INSERT REQUEST BODY FROM BELOW'

Example request body

{
  "partnerCartId": "74b6e652-8db2-4441-9cf6-85a18a15ca88",
  "customerCountryCode": "US",
  "customerPostalCode": "98101",
  "productViewDeliveryEstimateIds": ["0b3d140a-525b-43a7-896c-cdc381580d61"],
  "cartShippingOptions": {
    "shippingLocationOptions": [
      {
        "fromCountryCode": "US",
        "fromPostalCode": "98101",
        "estimateSource": "ShipiumGenerated"
      }
      ]
    },
  "partnerReferenceIdentifier": "ORD-2026-12345"
}

Example response

{
   "shipiumCartId": "66401470-aedc-4a03-9509-a8383e650a4d",
   "partnerCartId": "74b6e652-8db2-4441-9cf6-85a18a15ca88",
   "customerCountryCode": "US",
   "customerPostalCode": "98101",
   "productViewDeliveryEstimateIds": ["0b3d140a-525b-43a7-896c-cdc381580d61"],
   "originDeliveryEstimates":[
      {
         "deliveryEstimateId": "0b3d140a-525b-43a7-896c-cdc381580d61",
         "deliveryEstimateDate": "2019-10-31T00:00:00Z",
         "deliveryEstimateDateUTC": "2019-10-31T00:00:00Z",
         "estimateSource": "ShipiumGenerated",
         "estimatedTimeInTransitDays": 3,
         "shippingOrigin": {
            "countryCode": "US",
            "postalCode": "98101",
            "shipiumOriginId": "0b3d140a-525b-43a7-896c-cdc381580d62",
            "originProcessingDays": 2.5
         },
         "cartShippingOptions":{
            "shippingLocation": {
               "fromCountryCode": "US",
               "fromPostalCode": "98101",
               "estimateSource": "ShipiumGenerated"
            }
         }
      }
   ],
   "partnerReferenceIdentifier": "ORD-2026-12345"
}

Augmentations to the EDD request (additional use cases)

Your organization may choose to augment your EDD request by including any of the following optional fields, which will generally enhance the accuracy of our EDD calculation.