This forum is no longer active, and the posting feature has been disabled.

Please visit our new Community page to continue the ShipStation Community discussions at https://help.shipstation.com/hc/en-us/community/topics

This new Community page is integrated directly with our help center and knowledge base, which will provide better access to help resources and a direct post-to-support ticket pipeline for any users that need official technical support!

Please note: All topics are available to view for all, but you must be logged into your ShipStation account to post community forum content or comment on posts.

Retrieving Unvoided Shipments Count

I am trying to retrieve a count of how many unvoided shipments were created today via the ShipWorks API.

I have been able to obtain a count of how many shipments were created today but this count includes "voided" shipments. I know I could iterate through each order and filter out the voided shipments, but I would like to know if there is a better approach.

An overview of what I am doing: I am building a stat board that displays shipping stats and goals. I figure the API was the best way to retrieve the data needed for the stat board. I am completely new to ShipStation, so let me know if there is a different way of achieving this goal.

My current code is below...


$filters = array("shipDateStart"=>date("Y-m-d 00:00:00"), "pageSize"=>"1");
$result = $shipStation->getShipments($filters);
$shipmentCount = $result->total;
Tagged:
Sign In or Register to comment.