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 the bill_export_create mutation for 3PL accounts to request the export files of a bill they issued: the category summary, the cost summary and the charges list, chosen with file_types. The files are generated in the background; read the bill’s bill_exports with bill or bills until the export is completed and has a file_url. An export of a file type that is already in progress is returned instead of starting a new one. It requires the view:billing scope and the billing update permission, and costs 5 credits. Added file_type and created_at to BillExports. file_type is null for older exports that did not record one. See Export a Bill.
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
idswithoutsortnow come back newest first, byoccurred_atdescending. They used to come back in creation order. sortis now applied. It used to be ignored on this query. It acceptsoccurred_at,nameorbill_id, and any other value, for example-id, now returns an error.- The user now needs the
billing.manage.readpermission, in addition to theview:billingscope. 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 returnsInvalid charge idfor 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 ship_date to purchase_order_create and purchase_order_update. On purchase_order_update, set clear_ship_date to true to clear it.
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.
