Skip to content

Developer Resources

ShipHero GraphQL Public API

ShipHero’s public API provides access to platform data and operations for custom integrations. It is built on GraphQL, allowing clients to request exactly the fields they need for each workflow.

Quick Access

Need help with your integration? Visit our Troubleshooting guide for common issues and solutions.

Latest Changes

Added out_of_date to Bill, on both bill and bills. It tells you whether a draft bill needs to be recalculated because its billing profile changed after the bill was created. Only the 3PL that issued the bill sees it; for anyone else it is null. Bills that are not drafts return false. Added the customer_account_id and out_of_date filters to bills. See List Bills.

Updated the ad_hoc_charges query for 3PL accounts to list charges without knowing their IDs. ids is now optional, and you can filter by bill_id, customer_account_id or an occurred_at range with date_from and date_to. Without ids, at least one filter is required. Added amount and customer_account_id to AdHocCharge. See the request and response examples.

Changed the behavior of ad_hoc_charges for existing integrations:

  • Charges fetched by ids without sort now come back newest first, by occurred_at descending. They used to come back in creation order.
  • sort is now applied. It used to be ignored on this query. It accepts occurred_at, name or bill_id, and any other value, for example -id, now returns an error.
  • The user now needs the billing.manage.read permission, in addition to the view:billing scope. Account owners are not affected.
  • The query now returns charges created from an ad hoc rate on a billing profile. These cannot be edited with bill_update_ad_hoc_charge, which returns Invalid charge id for them. Only custom charges can be updated.
  • A charge that still points to a deleted bill is no longer returned, including when fetched by ID.

Added the billing_profiles query for 3PL accounts to list their billing profiles, with the customers assigned to each one and the number of rates per category. Filter by customer_account_id or name, include archived billing profiles with include_archived, and sort by name or last_changed_at. It requires the view:billing scope. See the request and response examples.

Added dangerous_goods_code to Product and LineItem. It returns the DangerousGoodsCode classification configured for the product, with its id, legacy_id and name, or null when none is configured. On line items it reflects the product’s current setting, not a snapshot taken when the order was created. See the Product and Order examples.

Added last_login to User and AuthenticatedUser. It returns the stored last login timestamp as an ISO-8601 datetime, or null when none is stored. Users can set this value, so it may be missing or stale. In addition, the account_pin argument of the user query now rejects non-null values: use id or email instead. See the User example.

Changed wholesale_order_create to validate staging_location_id before the order is created. The location must be one your account can access and a staging location that is empty and not in use. When the line items specify a warehouse_id, it must also be in that warehouse. A value that fails returns an error and no order is created. See the Wholesale Order Create example.

Changed shipment_create and shipment_create_shipping_label to validate the label URLs in CreateLabelResourceInput. pdf_location, paper_pdf_location, thermal_pdf_location and image_location must be http or https URLs that include a host, with no embedded credentials, quotes, whitespace or control characters. pdf_location accepts up to 8,192 characters and the other three up to 255; image_location also accepts a JSON list of image URLs within those 255 characters. See the Shipment example.

Deprecated inventory_subtract in favor of inventory_remove. Both take the same input and return the same output, so switching only means renaming the mutation. inventory_subtract keeps working for existing integrations. See the Inventory example.

Added the experimental cheapest_profiles query for listing the RateShop+ profiles of your account, with their assigned clients and their shipping methods grouped by carrier. See Cheapest Profiles Query.

Added inbound_shipment_delete to soft-delete inbound shipments in PENDING_ARRIVAL or ARRIVED status. See the Inbound Shipments flow.

Added updated_at to WholesaleOrder. It returns the last update of the wholesale order record in UTC, the same timestamp that updated_from and updated_to on wholesale_orders filter on. Changes confined to related records, such as the underlying order, line items or shipping details, may not move it. For the underlying order’s timestamp, select order.updated_at. See Filter by update time.

Changed bill_update to look bills up only within the authenticated account before checking their status. A bill that doesn’t exist, or that belongs to another account, now returns Bill not found with code 9 regardless of its status. An id that matched no bill used to return Unexpected Error with code 22. Status transitions and their errors for your own bills are unchanged. This applies to bill_update only. See Billing errors.