Skip to main content
The Shippo Shipping Elements supports events that you can use to integrate with your website.

Events using shippo.on()

The Shipping Elements framework emits lifecycle and action events as the user is interacting with the widget. Event listeners can be added using the on() method as such:

Event List

noteUsing the shippo.off() method removes the listener for that callback event.

Event Parameters

Each event has unique parameters to the callback function, here are some examples:

LABEL_PURCHASED_SUCCESS

The LABEL_PURCHASED_SUCCESS event returns an array of transaction objects as the parameter to the callback function passed to the on() method:

ORDER_CREATED

The ORDER_CREATED event returns a shipment object with the order_id as the parameter to the callback function passed to the on() method:
The ORDERS_CREATED event sends an array of order objects (same as above) as the parameter to the callback function passed to the on() method.

Errors

The ERROR event returns an error object as the parameter to the call function passed to the on() method:
Last modified on July 16, 2026