Site Logo

Webhooks Schema

The following webhook events are available through ShipEngine:

  • Tracking
  • Batch Completed
  • Rate Updated
  • Carrier Connected
  • Report Complete
  • Order Source Refresh Complete
  • Sales Order Imported (Beta)

Each webhook event returns a unique payload. Click through the links below to see the full webhooks schema for each event.

Tracking

Subscribe to this webhook to get updates on any tracking event.

Click to view the Tracking Webhook schema

The body of the tracking webhook request has the following attributes:

NameData TypeRequired?Description
resource_urlstringrequiredThe REST API URL used to retrieve the event object.
resource_typestringrequiredAPI_TRACK
dataObjectoptionalObject containing tracking information.
label_urlstringoptionalPopulated if tracking event is associated with a label created in ShipEngine. This is the label image associated with this tracking number.
tracking_numberstringrequiredTracking number provided by the carrier.
status_codestringrequiredMust contain one of the following values:
UN: Unknown
AC: Accepted
IT: In Transit
DE: Delivered
EX: Exception
AT: Delivery Attempt
NY: Not Yet in System
carrier_detail_codestringoptionalAdditional tracking details provided by the carrier.
status_descriptionstringoptionalStatus description of the tracked package.
Could include the following: Unknown, Accepted, In Transit, Delivered, Exception, Delivery Attempt, Not Yet in System
carrier_status_codestringrequiredStatus of tracked package provided by the carrier.
carrier_status_descriptionstringoptionalMore detailed description of tracked package returned from the carrier.
ship_datestringoptionalAn ISO 8601 string that represents date and time the tracked package was sent/returned from the carrier.
estimated_delivery_datestringoptionalAn ISO 8601 string that represents the estimated date of delivery or returned by carrier.
actual_delivery_datestringoptionalAn ISO 8601 string that represents the date of delivery or returned by carrier.
exception_descriptionstringoptionalAdditional description provided by the carrier when a package is in a state that may delay or prevent delivery.
eventsarrayrequiredThe events that have occurred during the lifetime of this tracking number.
occurred_atstringrequiredTimestamp for the carrier event.
carrier_occurred_atstringoptionalCarrier timestamp for the event. It is assumed to be the local time of where the event occurred. Not fully supported for all carriers.
descriptionstringoptionalA description of the event, for example: Shipment Received, Package Acceptance Pending, etc.
city_localitystringoptionalCity where shipment is being sent.
`state_province``stringoptionalState where shipment is being sent.
postal_codestringoptionalPostal code where the shipment is being sent.
country_codestringoptionalA two-letter ISO 3166-1 country code.
company_namestringoptionalReturns the value entered into the Company Name field.
signerstringoptionalInformation of the signer of shipment.
event_codestringoptionalTracking event code provided by the carrier.
event_descriptionstringoptionalThis is the carrier provided description. The carrier_status_description at the top level turns into this field when it is applied to an event.
carrier_detail_codestringoptionalAdditional tracking code that may be provided by the carrier.
status_codestringoptionalThis is the normalized event code provided by ShipEngine.
latitudenumberoptionalLatitude coordinate of tracking event.
longitudenumberoptionalLongitude coordinate of tracking event.

Batch Completed

Subscribe to this webhook to get updates for completed batches.

Click to view the Batch Completed webhook schema

The body of the Batch Completed webhook request has the following attributes:

NameData TypeRequired?Description
resource_urlstringrequiredThe REST API URL used to retrieve the event object.
resource_typestringrequiredAPI_BATCH

Shipment Rate Updated

Subscribe to this webhook to get updates when a shipment rate has been updated.

Click to view the Shipment Rate Updated webhook schema

The body of the Shipment Rate webhook request has the following attributes:

NameData TypeRequired?Description
resource_urlstringrequiredThe REST API URL used to retrieve the event object.
resource_typestringrequiredAPI_RATE

Carrier Connected

Subscribe to this webhook to get updates when a carrier is connected.

Click to view the Carrier Connected webhook schema

The body of the Carrier Connected webhook request has the following attributes:

NameData TypeRequired?Description
resource_urlstringrequiredThe REST API URL used to retrieve the event object.
resource_typestringrequiredAPI_CARRIER_CONNECTED

Report Complete

Subscribe to this webhook to get updates when a requested report is ready.

Click to view the Report Complete webhook schema

The body of the Report Complete webhook request has the following attributes:

NameData TypeRequired?Description
resource_urlstringrequiredThe REST API URL used to retrieve the event object.
resource_typestringrequiredAPI_REPORT_COMPLETE

Order Source Refresh Complete

Subscribe to this webhook to get updates when an order source has been refreshed.

Click to view the Order Source Refresh Complete webhook schema

The body of the Order Source Refresh Complete webhook request has the following attributes:

NameData TypeRequired?Description
resource_urlstringrequiredThe REST API URL used to retrieve the event object.
resource_typestringrequiredAPI_ORDER_SOURCE_REFRESH_COMPLETE

Sales Order Imported (Beta)

Subscribe to this webhook to get updated information for imported sales orders.

Click to view the Sales Order Imported (Beta) webhook schema
NameData TypeRequired?Description
resource_urlstringrequiredThe REST API URL used to retrieve the event object.
resource_typestringrequiredAPI_SALES_ORDERS_IMPORTED
dataarrayoptionalThe array containing the event data
sales_order_idstringrequiredThe ID of the sales order
external_order_idstringoptionalThe external ID of the order
external_order_numberstringoptionalThe external order number
order_sourceobjectoptionalObject containing information about the order source
order_source_idstringrequiredThe ID of the order source
order_source_nicknamestringrequiredThe nickname of the order source
order_source_codestringrequiredThe code of the order source
order_source_friendly_namestringrequiredThe friendly name of the order source
refresh_infoobjectoptionalObject containing information about the refresh status of the order source
statusenumrequiredThe status of the refresh
last_refresh_attemptstringrequiredThe date and time of the last refresh attempt
refresh_datestringrequiredThe date and time of the last successful refresh
activebooleanrequiredIndicates if the order source is active
connection_idstringoptionalIdentifier for the store connection authorization
sales_order_statusobjectoptionalObject containing the payment and fulfillment status of the sales order
payment_statusenumrequiredThe payment status of the sales order
fulfillment_statusenumrequiredThe fulfillment status of the sales order
is_cancelledbooleanrequiredIndicates if the sales order is cancelled
order_datestringrequiredThe date and time of the order
created_atstringrequiredThe date and time the order was created
modified_atstringrequiredThe date and time the order was last modified
payment_detailsobjectoptionalObject containing the payment details for the sales order
subtotalobjectoptionalObject containing information about the subtotal amount
currencyenumoptionalThe currency of the subtotal amount
amountfloatoptionalThe subtotal amount
estimated_shippingobjectoptionalObject containing information about the estimated shipping amount
currencyenumoptionalThe currency of the estimated shipping amount
amountfloatoptionalThe estimated shipping amount
estimated_taxobjectoptionalObject containing information about the estimated tax amount
currencyenumoptionalThe currency of the estimated tax amount
amountfloatoptionalThe estimated tax amount
grand_totalobjectoptionalObject containing information about the grand total amount
currencyenumoptionalThe currency of the grand total amount
amountfloatoptionalThe grand total amount
customerobjectoptionalObject containing customer information
namestringoptionalThe name of the customer
phonestringoptionalThe phone number of the customer
emailstringoptionalThe email address of the customer
bill_toobjectoptionalObject containing billing information
emailstringoptionalThe email address for billing
addressobjectoptionalObject containing address details for billing
namestringoptionalThe name associated with the billing address
phonestringoptionalThe phone number associated with the billing address
company_namestringoptionalThe company name associated with the billing address
address_line1stringoptionalThe first line of the billing address
address_line2stringoptionalThe second line of the billing address
address_line3stringoptionalThe third line of the billing address
city_localitystringoptionalThe city or locality of the billing address
state_provincestringoptionalThe state or province of the billing address
postal_codestringoptionalThe postal code of the billing address
country_codestringoptionalThe country code of the billing address
address_residential_indicatorstringoptionalIndicates if the billing address is residential. Will be Yes or No.
ship_toobjectoptionalObject containing shipping information
namestringoptionalThe name of the recipient
phonestringoptionalThe phone number of the recipient
address_line1stringoptionalThe first line of the shipping address
city_localitystringoptionalThe city or locality of the shipping address
state_provincestringoptionalThe state or province of the shipping address
postal_codestringoptionalThe postal code of the shipping address
country_codestringoptionalThe country code of the shipping address
address_residential_indicatorstringoptionalIndicates if the shipping address is residential. Will be Yes or No.
sales_order_itemsarrayoptionalAn array containing the sales order items
sales_order_item_idstringoptionalThe ID of the sales order item
external_order_item_idstringoptionalMarketplace's identifier for the order item
line_item_detailsobjectoptionalObject containing details about the line item
namestringoptionalThe name of the line item
skustringoptionalThe SKU of the line item
asinstringoptionalAmazon Standard Identification Number (ASIN) provided by order source
weightobjectoptionalObject containing information about the weight of the line item
valuefloatoptionalThe weight value
unitenumoptionalThe unit of weight
ship_toobjectoptionalObject containing shipping information for the line item
namestringoptionalThe name of the recipient
phonestringoptionalThe phone number of the recipient
address_line1stringoptionalThe first line of the shipping address
city_localitystringoptionalThe city or locality of the shipping address
state_provincestringoptionalThe state or province of the shipping address
postal_codestringoptionalThe postal code of the shipping address
country_codestringoptionalThe country code of the shipping address
address_residential_indicatorenumoptionalIndicates if the shipping address is residential. Will be Yes or No.
requested_shipping_optionsobjectoptionalObject containing requested shipping options for the line item
shipping_servicestringoptionalThe requested shipping service
ship_datestringoptionalThe requested ship date
price_summaryobjectoptionalObject containing price summary information for the line item
unit_priceobjectoptionalObject containing information about the unit price
currencyenumoptionalThe currency of the unit price
amountfloatoptionalThe unit price
estimated_taxobjectoptionalObject containing information about the estimated tax amount
currencyenumoptionalThe currency of the estimated tax amount
amountfloatoptionalThe estimated tax amount
estimated_shippingstringoptionalThe estimated shipping amount
totalobjectoptionalObject containing information about the total amount
currencyenumoptionalThe currency of the total amount
amountfloatoptionalThe total amount
quantityintoptionalThe quantity of the line item
is_giftbooleanoptionalIndicates if the line item is a gift