ShipStation Webhook Integration Guide

Recently WP EasyCart integrated with ShipStation and found that their Webhook API documentation was seriously lacking (or just impossible to find?). We wanted to post this information in case other developers were having the same issue we came across.

First, the webhook information does not come back as a POST or GET variable as it seems in their docs. Instead you should capture this data via the body of the output:

$json = file_get_contents( 'php://input' );
$obj = json_decode( $json );

Second, this information is not actually about your shipment, this is an endpoint to call to get data on the recently shipped item. You can grab this data via a call like:

$endpoint = $obj->resource_url;
$response = $this->get_response( $endpoint, array( ) );
$obj_response = json_decode( $response );

Your get response function should be a simple CURL call.

Third, the response will be a shipment response and will look like:


















I hope this information can help out developers that may be integrating with ShipStation and their webhook system.

If you are a store owner, we recommend using our ShipStation integration! Its already setup for you and allows you to make shipping easier than ever.