Skip to main content

ShipHero API Endpoints

The ShipHero GraphQL API operations the integration calls for products, kits, sales orders, inventory, and shipments.

Portal Info

ShipHero is administered through the ShipHero web application at https://app.shiphero.com (developer users are managed under My Account > Developer Users), and users and their permissions are managed on the Users & Roles page at https://shipping.shiphero.com/users/. API access and developer documentation are available at the ShipHero Developer site.

API Endpoints

ShipHero exposes a GraphQL public API. The integration sends every product, kit, order, inventory, and shipment operation to a single GraphQL endpoint, distinguished by the GraphQL operation (query or mutation) in the request body:

POST [Base URL]/graphql

The Base URL is the ShipHero public API URL configured on the subscription (for example, https://public-api.shiphero.com). Each operation below is sent to that one endpoint; the operation name identifies what it does.

Rate Limits and Pagination

ShipHero limits API use by credits and by request count. Each account has a pool of 4,004 credits that refills at 60 credits per second; every operation reserves credits according to its estimated complexity, and an operation that needs more than the pool can never run. ShipHero also allows at most 7,000 requests in any five-minute period and returns HTTP 429 when that is exceeded. List queries use cursor pagination and return at most 100 records per page by default. See ShipHero's Getting Started guide (Throttling & Quotas). The subscription's throttle fields keep the integration within these limits; see the ShipHero Connections and Settings article.

Table of Contents

  • Sales Order Endpoints

  • Product Endpoints

  • Product Kit Endpoints

  • Warehouse Product (Inventory) Endpoints

  • Shipment Endpoints

  • Webhook Endpoints

  • Authorization Endpoint

Sales Order Endpoints

Create an Order (POST)

POST [Base URL]/graphql
  • Operation: order_create (mutation)

  • Key fields: order number, shop name, shipping and billing address, and line items (SKU, quantity, price). Returns the new ShipHero order identifier.

Update an Order (POST)

POST [Base URL]/graphql
  • Operation: order_update (mutation)

  • Key fields: the ShipHero order identifier and the order header fields to update.

Add Order Line Items (POST)

POST [Base URL]/graphql
  • Operation: order_add_line_items (mutation)

  • Key fields: the order identifier and the line items to add (SKU, quantity, price). Line items are sent in batches for large orders.

Update Order Line Items (POST)

POST [Base URL]/graphql
  • Operation: order_update_line_items (mutation)

  • Key fields: the order identifier and the line items to update.

Get an Order (POST)

POST [Base URL]/graphql
  • Operation: order (query)

  • Key fields: retrieves an order and its line items by identifier, used to locate and link existing orders.

Find an Order by Order Number (POST)

POST [Base URL]/graphql
  • Operation: orders (query)

  • Key fields: finds an existing ShipHero order by its order number, so that a transaction that is not yet linked is matched to that order instead of creating a duplicate.

Product Endpoints

Create a Product (POST)

POST [Base URL]/graphql
  • Operation: product_create (mutation)

  • Key fields: SKU, name, barcode, dimensions, and warehouse product details (price, value, customs value, warehouse). Product variants are created as products.

Update a Product (POST)

POST [Base URL]/graphql
  • Operation: product_update (mutation)

  • Key fields: SKU (used to identify the product) and the product fields to update.

Get a Product by SKU (POST)

POST [Base URL]/graphql
  • Operation: product (query)

  • Key fields: finds a product by SKU, or by its ShipHero identifier, used to match and link products before creating orders, kits, or inventory.

Product Kit Endpoints

Build a Kit (POST)

POST [Base URL]/graphql
  • Operation: kit_build (mutation)

  • Key fields: the kit product's SKU and its component products (SKU and quantity).

Remove Kit Components (POST)

POST [Base URL]/graphql
  • Operation: kit_remove_components (mutation)

  • Key fields: the kit product's SKU and the components to remove. Used to rebuild a kit's components on each transfer.

Get a Kit (POST)

POST [Base URL]/graphql
  • Operation: product (query)

  • Key fields: retrieves a kit product and its components by ShipHero identifier.

Warehouse Product (Inventory) Endpoints

Get Warehouse Product Inventory (POST)

POST [Base URL]/graphql
  • Operation: warehouse_products (query)

  • Key fields: retrieves a product's or variant's on-hand, available, allocated, backorder, and non-sellable quantities by warehouse.

Update Warehouse Product (POST)

POST [Base URL]/graphql
  • Operation: warehouse_product_update (mutation)

  • Key fields: the warehouse product's price, value, customs value, and warehouse identifier.

Get Inventory Changes (POST)

POST [Base URL]/graphql
  • Operation: inventory_changes (query)

  • Key fields: lists the SKUs and warehouses whose inventory changed between two dates. The variant-inventory poll uses it to find the variants to transfer, one time window at a time.

Shipment Endpoints

Get a Shipment (POST)

POST [Base URL]/graphql
  • Operation: shipment (query)

  • Key fields: retrieves a shipment by identifier, with its shipping label details — tracking number, carrier, cost, and shipped line items — and the order it belongs to.

Webhook Endpoints

When an inbound scope is turned on or off under Inbound Data Flows, the integration registers or removes the matching ShipHero webhook.

List Webhooks (POST)

POST [Base URL]/graphql
  • Operation: webhooks (query)

  • Key fields: lists the webhooks registered on the ShipHero account (name, URL, and shop), used to find an existing webhook before creating or removing one.

Create a Webhook (POST)

POST [Base URL]/graphql
  • Operation: webhook_create (mutation)

  • Key fields: the webhook name (for example, Inventory Update or Shipment Update) and the iPaaS.com URL that receives it.

Delete a Webhook (POST)

POST [Base URL]/graphql
  • Operation: webhook_delete (mutation)

  • Key fields: the name of the webhook to remove.

Authorization Endpoint

ShipHero uses token-based authentication. The subscriber generates an access token and a refresh token in the ShipHero web app and enters them in the subscription. The integration sends the access token as a Bearer token with each GraphQL request. When the access token is about to expire, or ShipHero rejects it with HTTP 401, the integration exchanges the refresh token for a new access token at the refresh endpoint and keeps any new refresh token ShipHero returns:

POST [Base URL]/auth/refresh

When a connection is established, the integration checks the token with a lightweight account query to POST [Base URL]/graphql.

ShipHero is retiring the username and password exchange (POST [Base URL]/auth/token). The integration only calls it for older subscriptions that still have a username and password and no usable token.

For details on API access and authentication, see the ShipHero Developer documentation and ShipHero's How to Obtain API Access and Refresh Tokens.

Related Documents

Did this answer your question?