ShipperHQ generates a significant amount of detail about each shipment for which it generates shipping rates and options each time an application calls the Rates API. Once the ShipperHQ account associated with the rating call has the Shipping Insights Advanced Feature enabled, ShipperHQ stores these shipment details for later retrieval with the Insights API.
When using the ShipperHQ native integrations with Magento 2, BigCommerce, or Shopify, enabling the Shipping Insights Advanced Feature will automatically store shipment information when a customer completes a checkout. For other platforms or custom integrations, you have to use the
PlaceOrder mutation of the Labels API to capture a successful checkout and store shipment information. In either case, the Order Number is attached to the shipment information when stored and is used to look up for this shipment information using the Insights API.
- The Rates API receive a rate request
- ShipperHQ generates rates and options and returns them
- When the customer completes checkout, a call to
PlaceOrdercauses ShipperHQ to capture this quote as an order with a unique identifier (Order Number)
- Order and shipment details are then available via the Insights API
The Insights API is a read-only API that returns shipment details for shipments rated with the Rates API.
|Given an order number, retrieves shipment information for that order.|
Implementation of the related
PlaceOrder mutation of the Labels API may be required to use Shipping Insights. However, this is only the case if you are not using the native ShipperHQ apps/plugins/extensions on Magento/Adobe Commerce, BigCommerce, Shopify, SalesForce B2C Commerce Cloud, WooCommerce, Zoey - complete list here). When using the native ShipperHQ integration with any of these platforms, the PlaceOrder function occurs automatically, so you can use the Insights API without implementing PlaceOrder yourself.