delivery-experience

Cart Delivery Date Estimate

Changed on

Calculate the Estimated Delivery Date for a cart with multiple origins with inventory

post/api/v1/deliveryexperience/cartDeliveryEstimate

Request

Request body

partnerCartIdstring

Recommended. The partner system's identifier for this cart, recorded with the cart estimate for reporting. Not checked for uniqueness.

customerCountryCodestring required

The ISO 3166-1 country code (alpha-2) for the customer shipping address.

customerPostalCodestring required

A customerCountryCode-appropriate postal code for the customer shipping address.

requestDateOverridestring date-time

Overrides the requestDate to a specific date & time which the delivery estimate is calculated from. ISO 8601 format

shipDateOverridestring

The string representation of either an ISO-8601 date or a LocalDate: yyyy-mm-dd. Overrides the shipEstimateDate to a specific date & time.

productViewDeliveryEstimateIdsstring[]

List of product view delivery estimate IDs to include in the cart calculation

partnerReferenceIdentifierstring

Reference external identifier explicitly provided by the partner. Used for reporting purposes.

partnerReferenceIdentifier2string

Second reference external identifier explicitly provided by the partner. Used for reporting purposes.

shipmentTagsstring[]

Free-form list of shipment tags for the cart. Used for downstream reporting. Matches the shipmentTags field on the corresponding Carrier Selection API request. At most 20 tags, each up to 64 characters; blank entries are ignored.

Example request

{
  "customerCountryCode": "US",
  "customerPostalCode": "\"98101\"",
  "requestDateOverride": "2019-10-31T00:00:00Z",
  "shipDateOverride": "2019-10-31T00:00:00.000000Z",
  "cartShippingOptions": {
    "shippingLocationOptions": [
      {
        "shipOption": "Standard",
        "fromCountryCode": "US",
        "fromPostalCode": "\"98101\"",
        "originId": "\"origin-id-123\"",
        "estimateSource": "ShipiumCalculated",
        "timeInTransitSetting": "aggressive"
      }
    ]
  }
}

Response

Cart Delivery Estimates provided.

shipiumCartIdstring required

Unique identifier for this cart generated by Shipium

partnerCartIdstring required

Unique identifier for this cart from the partner system

customerCountryCodestring required

The ISO 3166-1 country code (alpha-2) for the customer shipping address.

customerPostalCodestring required

A customerCountryCode-appropriate postal code for the customer shipping address.

requestDateOverridestring date-time

Overrides the requestDate to a specific date & time which the delivery estimate is calculated from. ISO 8601 format

shipDateOverridestring

The string representation of either an ISO-8601 date or a LocalDate: yyyy-mm-dd. Overrides the shipEstimateDate to a specific date & time.

productViewDeliveryEstimateIdsstring[]

List of product view delivery estimate IDs included in the cart calculation

partnerReferenceIdentifierstring

Reference external identifier explicitly provided by the partner.

partnerReferenceIdentifier2string

Second reference external identifier explicitly provided by the partner.

shipmentTagsstring[]

Shipment tags echoed back from the request. Matches the shipmentTags field on the corresponding Carrier Selection API request and is used for downstream reporting.

Example response

{
  "customerCountryCode": "US",
  "customerPostalCode": "98101",
  "requestDateOverride": "2019-10-31T00:00:00Z",
  "shipDateOverride": "2019-10-31T00:00:00.000000Z",
  "originDeliveryEstimates": [
    {
      "deliveryEstimateId": "0b3d140a-525b-43a7-896c-cdc381580d61",
      "shipEstimateDate": "2019-10-31T00:00:00Z",
      "shipEstimateDateUTC": "2019-10-31T00:00:00Z",
      "deliveryEstimateDate": "2019-10-31T00:00:00Z",
      "deliveryEstimateDateUTC": "2019-10-31T00:00:00Z",
      "customerOrderCutoff": "2019-10-31T15:00:00-07:00",
      "customerOrderCutoffUTC": "2019-10-31T22:00:00Z",
      "estimateSource": "ShipiumCalculated",
      "estimatedTimeInTransitDays": 3,
      "shippingOrigin": {
        "countryCode": "US",
        "postalCode": "98101",
        "shipiumOriginId": "0b3d140a-525b-43a7-896c-cdc381580d62",
        "originId": "warehouse-west",
        "partnerOriginId": "warehouse-west",
        "originProcessingDays": 2.5
      },
      "shippingOptions": {
        "shipOption": "Standard",
        "fromCountryCode": "US",
        "fromPostalCode": "\"98101\"",
        "originId": "\"origin-id-123\"",
        "estimateSource": "ShipiumCalculated",
        "timeInTransitSetting": "aggressive"
      }
    }
  ]
}

Changes

    • breaking

      removed the enum value Unknown of the request property ///

    • breaking

      the request property's minLength was increased from 0 to 2

    • warning

      deleted the header request parameter X-DELEGATED-PARTNER-ID

    • warning

      the request property's maxLength was set to 2

    • info

      the request property became optional