> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/ecommerce/trackstar.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Trackstar

Trackstar connects to warehouse systems through one service. Manage orders, products, inventory, inbound shipments and returns.

![Trackstar logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-17c3dbfcc24c2bbceaf007274b2eb09d99574fbc%2Ftrackstar.png?alt=media)

|                    |                                                                            |
| ------------------ | -------------------------------------------------------------------------- |
| **Category**       | [E-commerce](https://docs.fastn.ai/connectors/catalog/ecommerce.md)        |
| **Website**        | [trackstarhq.com](https://trackstarhq.com)                                 |
| **Authentication** | API key                                                                    |
| **Slug**           | `trackstar`                                                                |
| **On fastn.ai**    | [Embed Trackstar in your product](https://fastn.ai/integrations/trackstar) |

## Setup

Your customers enter their API key for Trackstar when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Trackstar from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Trackstar**.
2. Select **Connect** on the Trackstar card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Trackstar's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Adjust Inventory Item</td><td><code>adjustInventoryItem</code></td><td>Adjust (increase or decrease) the inventory quantity for the specified inventory item at a warehouse.</td></tr><tr><td>Cancel Order</td><td><code>cancelOrder</code></td><td>Cancels an order by its order_id.</td></tr><tr><td>Cancel Return</td><td><code>cancelReturn</code></td><td>Cancels a return by its return_id.</td></tr><tr><td>Create Inbound Shipment</td><td><code>createInboundShipment</code></td><td>Creates an Inbound Shipment (ASN). Use the integrations endpoint to discover integration-specific fields.</td></tr><tr><td>Create Kit Product</td><td><code>createKitProduct</code></td><td>Creates a Kit (bundle) Product made up of component products.</td></tr><tr><td>Create Link Token</td><td><code>createLinkToken</code></td><td>Creates a temporary link token to initiate Trackstar Link. Requires only the API key.</td></tr><tr><td>Create Magic Link</td><td><code>createMagicLink</code></td><td>Create a Magic Link letting an end user connect their integration via a hosted link.</td></tr><tr><td>Create Order</td><td><code>createOrder</code></td><td>Creates an outbound Order. Use the integrations endpoint to discover integration-specific fields. Body uses the unified base schema. Fields depend on the warehouse system: call Get Integration Write Info for the exact fields your integration accepts. Only the fields you send are passed to Trackstar; any other field from write-info is passed through as well.</td></tr><tr><td>Create Order File</td><td><code>createOrderFile</code></td><td>Attach a file (e.g. label or document) to the specified order.</td></tr><tr><td>Create Product</td><td><code>createProduct</code></td><td>Creates a Product. Use the integrations endpoint for integration-specific fields.</td></tr></tbody></table>

<details>

<summary>View 57 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Return</td><td><code>createReturn</code></td><td>Creates a Return. Use the integrations endpoint to discover integration-specific fields.</td></tr><tr><td>Create Webhook</td><td><code>createWebhook</code></td><td>Register a Trackstar webhook so Fastn is notified when WMS/cart events occur. with url and the event_types to subscribe to.</td></tr><tr><td>Delete Connection</td><td><code>deleteConnection</code></td><td>Deletes the connection associated with the provided access token.</td></tr><tr><td>Delete Magic Link</td><td><code>deleteMagicLink</code></td><td>Delete a Magic Link by its ID.</td></tr><tr><td>Delete Webhook</td><td><code>deleteWebhook</code></td><td>Deletes a registered Trackstar webhook by id so events stop being delivered.</td></tr><tr><td>Exchange Auth Code</td><td><code>exchangeAuthCode</code></td><td>Exchanges a temporary auth code from the Link flow for a permanent access token and connection details.</td></tr><tr><td>Generate Sandbox</td><td><code>generateSandbox</code></td><td>Generates a sandbox connection with mocked-out data for testing. Reuses the same connection ID each time and RESETS any existing sandbox for that integration type.</td></tr><tr><td>Get All Bills</td><td><code>getBills</code></td><td>Returns all Bills (billing records) for the WMS connection.</td></tr><tr><td>Get All Inbound Shipment Suppliers</td><td><code>getInboundShipmentSuppliers</code></td><td>Returns all Inbound Shipment Suppliers for the WMS connection.</td></tr><tr><td>Get All Inbound Shipments</td><td><code>getInboundShipments</code></td><td>Returns all Inbound Shipments (ASNs) for the WMS connection with filtering and pagination.</td></tr><tr><td>Get All Inventory Items</td><td><code>getInventory</code></td><td>Returns all Inventory items for the WMS connection with filtering and pagination.</td></tr><tr><td>Get All Order Channels</td><td><code>getOrderChannels</code></td><td>Returns all Order Channels for the WMS connection.</td></tr><tr><td>Get All Orders</td><td><code>getOrders</code></td><td>Returns all outbound Orders for the WMS connection with filtering and pagination.</td></tr><tr><td>Get All Products</td><td><code>getProducts</code></td><td>Returns all Products for the WMS connection with filtering and pagination. Use sku for one exact SKU, or sku_in for a comma-separated list of up to 100 SKUs in one call.</td></tr><tr><td>Get All Returns</td><td><code>getReturns</code></td><td>Returns all Returns for the WMS connection with filtering and pagination.</td></tr><tr><td>Get All Shipping Methods</td><td><code>getShippingMethods</code></td><td>Returns all Shipping Methods for the WMS connection.</td></tr><tr><td>Get All Warehouse Customers</td><td><code>getWarehouseCustomers</code></td><td>Returns all Warehouse Customers for the WMS connection.</td></tr><tr><td>Get All Warehouse Locations</td><td><code>getWarehouseLocations</code></td><td>Returns all Warehouse Locations for the specified warehouse.</td></tr><tr><td>Get All Warehouses</td><td><code>getWarehouses</code></td><td>Returns all Warehouses for the WMS connection.</td></tr><tr><td>Get All Webhooks</td><td><code>getWebhooks</code></td><td>Returns all registered Trackstar webhooks for the connection.</td></tr><tr><td>Get Bill</td><td><code>getBill</code></td><td>Returns a single Bill by its bill_id.</td></tr><tr><td>Get Connection</td><td><code>getConnection</code></td><td>Returns the specified connection by connection_id, including sync status.</td></tr><tr><td>Get Connections</td><td><code>getConnections</code></td><td>Returns connected integrations for your organization.</td></tr><tr><td>Get Inbound Shipment</td><td><code>getInboundShipment</code></td><td>Returns a single Inbound Shipment by its ID.</td></tr><tr><td>Get Integration Info</td><td><code>getIntegration</code></td><td>Returns information about the data provided by a single integration.</td></tr><tr><td>Get Integration Write Info</td><td><code>getIntegrationWriteInfo</code></td><td>Returns the OpenAPI 3.1.0 spec for all write operations supported by an integration, including required/optional/integration-specific fields.</td></tr><tr><td>Get Integrations Info</td><td><code>getIntegrations</code></td><td>Returns information about the data and capabilities provided by each supported integration of one type (wms, freight, cart, carrier or erp).</td></tr><tr><td>Get Inventory Item</td><td><code>getInventoryItem</code></td><td>Returns a single Inventory Item by its inventory_id.</td></tr><tr><td>Get Inventory Ledger</td><td><code>getInventoryLedger</code></td><td>Returns the Inventory Ledger (history of inventory changes) for the WMS connection.</td></tr><tr><td>Get Magic Link</td><td><code>getMagicLink</code></td><td>Get a Magic Link by its ID.</td></tr><tr><td>Get Magic Links</td><td><code>getMagicLinks</code></td><td>Returns a list of all Magic Links for your organization.</td></tr><tr><td>Get Order</td><td><code>getOrder</code></td><td>Returns a single Order by its order_id.</td></tr><tr><td>Get Order Packs</td><td><code>getOrderPacks</code></td><td>Returns the packs for the specified order.</td></tr><tr><td>Get Product</td><td><code>getProduct</code></td><td>Returns a single Product by its product_id.</td></tr><tr><td>Get Return</td><td><code>getReturn</code></td><td>Returns a single Return by its return_id.</td></tr><tr><td>Get Shipping Method</td><td><code>getShippingMethod</code></td><td>Returns a single Shipping Method by its ID.</td></tr><tr><td>Get Warehouse</td><td><code>getWarehouse</code></td><td>Returns a single Warehouse by its warehouse_id.</td></tr><tr><td>Get Warehouse Customer</td><td><code>getWarehouseCustomer</code></td><td>Returns a single Warehouse Customer by its ID.</td></tr><tr><td>Get Warehouse Location</td><td><code>getWarehouseLocation</code></td><td>Returns a single Warehouse Location by warehouse_id and location_id.</td></tr><tr><td>Get Webhook</td><td><code>getWebhook</code></td><td>Returns a single registered Trackstar webhook by id.</td></tr><tr><td>Passthrough Request</td><td><code>passthroughRequest</code></td><td>Sends a raw request directly to the connected integration when no unified Trackstar endpoint covers it. Trackstar handles authentication with the integration; the response is the integration's native format, not Trackstar's unified schema. Returns status_code, headers and body from the integration.</td></tr><tr><td>Receive Inbound Shipment</td><td><code>receiveInboundShipment</code></td><td>Receives an inbound shipment, recording received line items at a warehouse location.</td></tr><tr><td>Ship Order</td><td><code>shipOrder</code></td><td>Marks an order as fulfilled and passes the shipment and package tracking information.</td></tr><tr><td>Sync Connection</td><td><code>syncConnection</code></td><td>Manually trigger a sync for the connection associated with the access token.</td></tr><tr><td>Toggle Connection Schedule</td><td><code>toggleConnectionSchedule</code></td><td>Pause or unpause the sync schedule for the connection associated with the access token.</td></tr><tr><td>Update Connection</td><td><code>updateConnection</code></td><td>Manually update properties of the connection for the provided access token.</td></tr><tr><td>Update Inbound Shipment</td><td><code>updateInboundShipment</code></td><td>Updates an Inbound Shipment by ID using the unified schema.</td></tr><tr><td>Update Inbound Shipment Trackstar Tags</td><td><code>updateInboundShipmentTags</code></td><td>Update the trackstar_tags for the specified inbound shipment.</td></tr><tr><td>Update Inventory Trackstar Tags</td><td><code>updateInventoryTags</code></td><td>Update the trackstar_tags for the specified inventory item.</td></tr><tr><td>Update Kit Product</td><td><code>updateKitProduct</code></td><td>Updates a Kit (bundle) Product by ID.</td></tr><tr><td>Update Order</td><td><code>updateOrder</code></td><td>Updates an Order by ID using the unified base schema. Fields depend on the warehouse system: call Get Integration Write Info for the exact fields your integration accepts. Only the fields you send are passed to Trackstar; any other field from write-info is passed through as well.</td></tr><tr><td>Update Order Trackstar Tags</td><td><code>updateOrderTags</code></td><td>Update the trackstar_tags for the specified order.</td></tr><tr><td>Update Product</td><td><code>updateProduct</code></td><td>Updates a Product by ID. Only sku is required.</td></tr><tr><td>Update Product Trackstar Tags</td><td><code>updateProductTags</code></td><td>Update the trackstar_tags for the specified product.</td></tr><tr><td>Update Return</td><td><code>updateReturn</code></td><td>Updates a Return by ID using the unified schema.</td></tr><tr><td>Update Return Trackstar Tags</td><td><code>updateReturnTags</code></td><td>Update the trackstar_tags for the specified return.</td></tr><tr><td>Update Warehouse Trackstar Tags</td><td><code>updateWarehouseTags</code></td><td>Update the trackstar_tags for the specified warehouse.</td></tr></tbody></table>

</details>

## Events

Start a workflow when one of these happens, with an [app event trigger](https://docs.fastn.ai/build/integrations/triggers.md).

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Bill Created</td><td><code>bill.created</code></td><td>When a Bill is created.</td></tr><tr><td>Bill Updated</td><td><code>bill.updated</code></td><td>When a Bill is updated.</td></tr><tr><td>Carrier Invoice Line Item Created</td><td><code>carrier_invoice_line_item.created</code></td><td>When a Carrier Invoice Line Item is created.</td></tr><tr><td>Carrier Invoice Line Item Updated</td><td><code>carrier_invoice_line_item.updated</code></td><td>When a Carrier Invoice Line Item is updated.</td></tr><tr><td>Cart Order Created</td><td><code>cart_order.created</code></td><td>When a Cart Order is created.</td></tr><tr><td>Cart Order Shipment Created</td><td><code>cart_order_shipment.created</code></td><td>When a shipment is created for a cart order.</td></tr><tr><td>Cart Order Updated</td><td><code>cart_order.updated</code></td><td>When a Cart Order is updated.</td></tr><tr><td>Cart Product Created</td><td><code>cart_product.created</code></td><td>When a Cart Product is created.</td></tr><tr><td>Cart Product Updated</td><td><code>cart_product.updated</code></td><td>When a Cart Product is updated.</td></tr><tr><td>Cart Warehouse Created</td><td><code>cart_warehouse.created</code></td><td>When a Cart Warehouse is created.</td></tr></tbody></table>

<details>

<summary>View 42 more events</summary>

<table><thead><tr><th width="240">Event</th><th width="260">Id</th><th>When it fires</th></tr></thead><tbody><tr><td>Cart Warehouse Updated</td><td><code>cart_warehouse.updated</code></td><td>When a Cart Warehouse is updated.</td></tr><tr><td>Connection Created</td><td><code>connection.created</code></td><td>When a Connection is created.</td></tr><tr><td>Connection Deleted</td><td><code>connection.deleted</code></td><td>When a Connection is deleted.</td></tr><tr><td>Connection Error Created</td><td><code>connection_error.created</code></td><td>When a Connection Error is created.</td></tr><tr><td>Connection Error Deleted</td><td><code>connection_error.deleted</code></td><td>When a Connection Error is resolved.</td></tr><tr><td>Connection Error Updated</td><td><code>connection_error.updated</code></td><td>When a Connection Error is updated.</td></tr><tr><td>Connection Historical Sync Completed</td><td><code>connection.historical-sync-completed</code></td><td>Triggered when historical sync for a resource (orders, inventory, etc.) completes.</td></tr><tr><td>Connection Updated</td><td><code>connection.updated</code></td><td>The WMS connection status or sync state changed.</td></tr><tr><td>Freight Shipment Created</td><td><code>freight_shipment.created</code></td><td>When a Freight Shipment is created.</td></tr><tr><td>Freight Shipment Updated</td><td><code>freight_shipment.updated</code></td><td>When a Freight Shipment is updated.</td></tr><tr><td>Inbound Shipment Created</td><td><code>inbound_shipment.created</code></td><td>When an Inbound Shipment is created.</td></tr><tr><td>Inbound Shipment Created</td><td><code>inbound_shipment.created</code></td><td>A new inbound shipment (purchase order / ASN) was created.</td></tr><tr><td>Inbound Shipment Receipt Created</td><td><code>inbound_shipment_receipt.created</code></td><td>When a receipt is created for the inbound shipment.</td></tr><tr><td>Inbound Shipment Updated</td><td><code>inbound_shipment.updated</code></td><td>When an Inbound Shipment is updated.</td></tr><tr><td>Inbound Shipment Updated</td><td><code>inbound_shipment.updated</code></td><td>An inbound shipment was updated or received.</td></tr><tr><td>Inventory Created</td><td><code>inventory.created</code></td><td>When an Inventory Item is created.</td></tr><tr><td>Inventory Ledger Created</td><td><code>inventory_ledger.created</code></td><td>When an Inventory Ledger entry is created.</td></tr><tr><td>Inventory Ledger Updated</td><td><code>inventory_ledger.updated</code></td><td>When an Inventory Ledger entry is updated.</td></tr><tr><td>Inventory Updated</td><td><code>inventory.updated</code></td><td>When an Inventory Item is updated.</td></tr><tr><td>Inventory Updated</td><td><code>inventory.updated</code></td><td>Inventory levels for one or more SKUs changed.</td></tr><tr><td>Order Created</td><td><code>order.created</code></td><td>When an outbound Order is created.</td></tr><tr><td>Order Created</td><td><code>order.created</code></td><td>A new outbound order was created in the WMS.</td></tr><tr><td>Order Shipment Created</td><td><code>order_shipment.created</code></td><td>When a shipment is created for an order.</td></tr><tr><td>Order Updated</td><td><code>order.updated</code></td><td>When an outbound Order is updated.</td></tr><tr><td>Order Updated</td><td><code>order.updated</code></td><td>An existing outbound order was updated (status, fulfillment, tags).</td></tr><tr><td>Product Created</td><td><code>product.created</code></td><td>When a Product (Kit) is created.</td></tr><tr><td>Product Created</td><td><code>product.created</code></td><td>A new product was created in the WMS.</td></tr><tr><td>Product Updated</td><td><code>product.updated</code></td><td>When a Product (Kit) is updated.</td></tr><tr><td>Product Updated</td><td><code>product.updated</code></td><td>An existing product was updated.</td></tr><tr><td>Return Created</td><td><code>return.created</code></td><td>When a Return is created.</td></tr><tr><td>Return Created</td><td><code>return.created</code></td><td>A new return was created.</td></tr><tr><td>Return Updated</td><td><code>return.updated</code></td><td>When a Return is updated.</td></tr><tr><td>Return Updated</td><td><code>return.updated</code></td><td>An existing return was updated.</td></tr><tr><td>Shipment Created</td><td><code>shipment.created</code></td><td>A shipment was created for an order.</td></tr><tr><td>Shipping Method Created</td><td><code>shipping_method.created</code></td><td>When a Shipping Method is created.</td></tr><tr><td>Shipping Method Updated</td><td><code>shipping_method.updated</code></td><td>When a Shipping Method is updated.</td></tr><tr><td>Warehouse Created</td><td><code>warehouse.created</code></td><td>When a Warehouse is created.</td></tr><tr><td>Warehouse Customer Created</td><td><code>warehouse_customer.created</code></td><td>When a Warehouse Customer is created.</td></tr><tr><td>Warehouse Customer Updated</td><td><code>warehouse_customer.updated</code></td><td>When a Warehouse Customer is updated.</td></tr><tr><td>Warehouse Location Created</td><td><code>warehouse_location.created</code></td><td>When a Warehouse Location is created.</td></tr><tr><td>Warehouse Location Updated</td><td><code>warehouse_location.updated</code></td><td>When a Warehouse Location is updated.</td></tr><tr><td>Warehouse Updated</td><td><code>warehouse.updated</code></td><td>When a Warehouse is updated.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/ecommerce/trackstar.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
