ShipEngine Delivery Predictions API
Predict delivery dates for carrier and service combinations on a lane, using ShipStation's delivery prediction model instead of the estimate quoted by the carrier.
Predict delivery dates for carrier and service combinations on a lane, using ShipStation's delivery prediction model instead of the estimate quoted by the carrier.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/shipengine:shipengine-delivery-predictions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Shipengine Delivery Predictions API
version: 1.1.202604070904
contact:
name: ShipEngine Sales & Support
email: sales@shipengine.com
url: https://www.shipengine.com/contact/
x-phone: 1-512-856-5379
license:
name: Proprietary
url: https://www.shipengine.com/terms-of-service/
termsOfService: https://www.shipengine.com/terms-of-service/
x-logo:
url: https://shipengine.github.io/img/shipengine-logo-square.png
backgroundColor: '#FFFFFF'
altText: ShipEngine logo
description: 'Operations tagged delivery_predictions across 2 of this provider''s published API definitions: shipengine-openapi-docs-bundle.yaml, shipengine-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.shipengine.com
security:
- api_key: []
tags:
- name: delivery_predictions
description: Predict delivery dates for carrier and service combinations on a lane, using ShipStation's delivery prediction model instead of the estimate quoted by the carrier.
x-displayName: Delivery Predictions
paths:
/v1/delivery_predictions:
summary: Delivery predictions
post:
operationId: create_delivery_predictions
summary: Predict delivery dates
description: 'Predict delivery dates for one or more carrier and service combinations on a single lane, using ShipStation''s delivery prediction model rather than the estimate quoted by the carrier.
The prediction stands on its own: this endpoint does not price the shipment, create a shipment or a label, and nothing it returns is stored. Send the origin and destination once and list every carrier and service combination you want predicted for that lane.
A requested combination comes back as an entry in `delivery_predictions` or as an entry in `warnings`, never both. A combination the model has no coverage for becomes a warning, so a response where nothing is supported is still a `200` with an empty `delivery_predictions` array. A combination the model returns nothing usable for is in neither array. Combinations are matched by `carrier_code` and `service_code` rather than by position, and are returned as the model reports them rather than echoed back.
There is no limit you need to manage on your side: a request with more combinations than the model accepts in one call is split across several calls automatically, and none are dropped.'
tags:
- delivery_predictions
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/delivery_predictions_request_body'
example:
from_country_code: US
from_postal_code: '78701'
to_country_code: US
to_postal_code: '90210'
ship_date: '2026-07-01'
delivery_options:
- carrier_details:
carrier_code: ups
service_code: ups_ground
- carrier_details:
carrier_code: fedex
service_code: fedex_express_saver
responses:
'200':
description: The predictions for the requested lane, and a warning for every combination that could not be predicted.
content:
application/json:
schema:
$ref: '#/components/schemas/delivery_predictions_response_body'
example:
delivery_predictions:
- ship_date: '2026-07-01'
delivery_date: '2026-07-04'
confidence_level: high
carrier_details:
carrier_code: ups
service_code: ups_ground
warnings:
- carrier_details:
carrier_code: fedex
service_code: fedex_express_saver
message: Carrier and service combination is unsupported.
'400':
$ref: '#/components/responses/400_error_response'
'500':
$ref: '#/components/responses/500_error_response'
servers:
- url: https://api.shipengine.com
components:
responses:
400_error_response:
description: The request contained errors.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response_body'
500_error_response:
description: 'An error occurred on ShipStation API''s side.
> This error will automatically be reported to our engineers.
'
content:
application/json:
schema:
$ref: '#/components/schemas/error_response_body'
schemas:
delivery_prediction_warning:
title: delivery_prediction_warning
type: object
description: A requested carrier and service combination that no prediction could be made for.
additionalProperties: false
properties:
carrier_details:
allOf:
- $ref: '#/components/schemas/delivery_prediction_carrier_details'
description: The carrier and service the warning is about.
message:
type: string
readOnly: true
example: Carrier and service combination is unsupported.
description: Why no prediction was returned for this combination.
error_response_body:
title: error_response_body
type: object
description: An error response body
required:
- request_id
- errors
additionalProperties: false
properties:
request_id:
allOf:
- $ref: '#/components/schemas/uuid'
description: 'A UUID that uniquely identifies the request id.
This can be given to the support team to help debug non-trivial issues that may occur
'
errors:
type: array
readOnly: true
items:
$ref: '#/components/schemas/error'
description: The errors associated with the failed API call
delivery_prediction_carrier_details:
title: delivery_prediction_carrier_details
type: object
description: The carrier and service a delivery prediction or warning belongs to.
additionalProperties: false
required:
- carrier_code
- service_code
properties:
carrier_code:
type: string
example: ups
description: The carrier code, in lowercase.
service_code:
type: string
example: ups_ground
description: The carrier service code, in lowercase.
carrier_code:
title: carrier_code
type: string
pattern: ^[a-z0-9]+(_[a-z0-9]+)*$
example: dhl_express
description: 'A shipping carrier, such as `fedex`, `dhl_express`, `stamps_com`, etc.
'
error_code:
title: error_code
type: string
example: invalid_field_value
enum:
- auto_fund_not_supported
- batch_cannot_be_modified
- bring_your_own_label_not_supported
- carrier_conflict
- carrier_disconnected
- carrier_not_connected
- carrier_not_supported
- confirmation_not_supported
- default_warehouse_cannot_be_deleted
- field_conflict
- field_value_required
- forbidden
- identifier_conflict
- identifiers_must_match
- insufficient_funds
- invalid_address
- invalid_billing_plan
- invalid_field_value
- invalid_identifier
- invalid_status
- invalid_string_length
- label_images_not_supported
- meter_failure
- multiple_sales_orders
- order_source_not_active
- rate_limit_exceeded
- refresh_not_supported
- request_body_required
- return_label_not_supported
- sales_order_link_required
- settings_not_supported
- subscription_inactive
- terms_not_accepted
- tracking_not_supported
- trial_expired
- unauthorized
- unknown
- unspecified
- verification_failure
- warehouse_conflict
- webhook_event_type_conflict
- customs_items_required
- incompatible_paired_labels
- invalid_charge_event
- invalid_object
- no_rates_returned
- file_not_found
- shipping_rule_not_found
- service_not_determined
- funding_source_registration_in_progress
- insurance_failure
- funding_source_missing_configuration
- funding_source_error
- freight_connection_inactive
- freight_provider_id_required
- freight_provider_already_connected
- freight_shipment_not_found
- freight_tracking_not_available
- freight_tracking_not_found
- freight_shipment_not_batchable
description: The error code specified for the failed API Call
uuid:
title: uuid
type: string
format: uuid
minLength: 36
maxLength: 36
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
example: aa3d8e8e-462b-4476-9618-72db7f7b7009
description: A UUID (a.k.a. GUID) that uniquely identifies a resource
delivery_predictions_response_body:
title: delivery_predictions_response_body
type: object
description: 'The delivery predictions for the requested lane.
A requested carrier and service combination is never in both arrays: it is either a prediction or a warning. A combination the model returns nothing usable for is in neither, so match on `carrier_details` and treat an absent combination as no prediction being available rather than as an error. When none of the requested combinations is supported, `delivery_predictions` is empty and every combination appears in `warnings`.
'
additionalProperties: false
properties:
delivery_predictions:
type: array
items:
$ref: '#/components/schemas/delivery_prediction_result'
description: One prediction per supported carrier and service combination.
warnings:
type: array
items:
$ref: '#/components/schemas/delivery_prediction_warning'
description: One entry per requested combination that no prediction could be made for.
se_id:
title: se_id
type: string
minLength: 1
maxLength: 25
pattern: ^se(-[a-z0-9]+)+$
example: se-28529731
description: A string that uniquely identifies a ShipEngine resource, such as a carrier, label, shipment, etc.
error:
title: error
type: object
description: 'The error structure that gets returned with almost all failed API calls
'
required:
- error_source
- error_type
- error_code
- message
additionalProperties: false
properties:
error_source:
$ref: '#/components/schemas/error_source'
error_type:
$ref: '#/components/schemas/error_type'
error_code:
$ref: '#/components/schemas/error_code'
message:
type: string
readOnly: true
example: Body of request cannot be null.
minLength: 1
description: An error message associated with the failed API call
carrier_id:
readOnly: true
allOf:
- $ref: '#/components/schemas/se_id'
description: A string that uniquely identifies the carrier that generated the error.
carrier_code:
readOnly: true
allOf:
- $ref: '#/components/schemas/carrier_code'
description: 'The name of the shipping carrier that generated the error, such as `fedex`, `dhl_express`, `stamps_com`, etc.
'
field_name:
type: string
readOnly: true
example: shipment.ship_to.phone_number
description: The name of the field that caused the error
delivery_prediction_result:
title: delivery_prediction_result
type: object
description: A predicted delivery date for one carrier and service combination.
additionalProperties: false
properties:
ship_date:
type: string
format: date
readOnly: true
example: '2026-07-01'
description: The ship date the prediction was calculated for.
delivery_date:
type:
- string
- 'null'
format: date
readOnly: true
example: '2026-07-04'
description: The predicted delivery date.
confidence_level:
type: string
readOnly: true
enum:
- high
- low
example: high
description: 'How much historical data the prediction rests on.
- `high` — the prediction is based on historical data for this carrier service.
- `low` — little or no historical data was available for this service, so the prediction is based on similar services.
'
carrier_details:
allOf:
- $ref: '#/components/schemas/delivery_prediction_carrier_details'
description: The carrier and service this prediction is for.
delivery_predictions_request_body:
title: delivery_predictions_request_body
type: object
description: The lane and the carrier and service combinations to predict delivery dates for.
additionalProperties: false
required:
- from_country_code
- from_postal_code
- to_country_code
- to_postal_code
- delivery_options
properties:
from_country_code:
type: string
example: US
description: The ISO 3166-1 alpha-2 country code of the origin.
from_postal_code:
type: string
example: '78701'
description: The postal code of the origin.
to_country_code:
type: string
example: US
description: The ISO 3166-1 alpha-2 country code of the destination.
to_postal_code:
type: string
example: '90210'
description: The postal code of the destination.
ship_date:
type: string
format: date
example: '2026-07-01'
description: The date the shipment leaves the origin. Defaults to today when omitted. A date in the past is rejected.
delivery_options:
type: array
minItems: 1
items:
$ref: '#/components/schemas/delivery_prediction_option'
description: The carrier and service combinations to predict for. A combination listed more than once is predicted once.
error_source:
title: error_source
type: string
example: shipengine
enum:
- carrier
- order_source
- shipengine
description: 'The source of the error, as indicated by the name this informs us if the API call failed because of the
carrier, the order source, or the ShipEngine API itself.
'
error_type:
title: error_type
type: string
example: validation
enum:
- account_status
- business_rules
- validation
- security
- system
- integrations
- funding_sources
description: 'The type of error
'
delivery_prediction_option:
title: delivery_prediction_option
type: object
description: A carrier and service combination to predict a delivery date for.
additionalProperties: false
required:
- carrier_details
properties:
carrier_details:
allOf:
- $ref: '#/components/schemas/delivery_prediction_carrier_details'
description: The carrier and service to predict for.
securitySchemes:
api_key:
type: apiKey
name: API-Key
in: header
description: 'To authenticate yourself to ShipEngine, you need to include an `API-Key` header in each API call. If you don''t include a key when making an API request, or if you use an incorrect or expired key, then ShipEngine will respond with a `401 Unauthorized` error.
Learn more about API keys in our [authentication guide](https://docs.shipstation.com/apis/shipengine/docs/guides/auth).
'
x-refined-from:
- shipengine-openapi-docs-bundle.yaml
- shipengine-openapi.yml