This guide covers the end-to-end workflow for managing orders from cart platforms (e.g. Shopify, Amazon, Etsy) using the Trackstar Cart API.Documentation Index
Fetch the complete documentation index at: https://docs.trackstarhq.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The cart order fulfillment workflow typically involves:- Syncing your product catalog
- Pulling in orders as they arrive
- Pushing back shipment and tracking information after fulfillment
- Adjusting inventory levels in the cart platform
1. Sync Products
Use the Get Products endpoint to pull the product catalog from your customer’s cart platform.2. Pull Orders
Use the Get Orders endpoint to pull orders as they come in. You can filter by date to get only recent orders. For real-time notifications, subscribe to thecart-order.created webhook event.
Order Statuses
| Status | Definition |
|---|---|
open | Order has been placed. |
confirmed | Order has been confirmed by the cart system. |
processing | Order is being processed by the warehouse. |
partially_fulfilled | Order has been partially fulfilled. |
fulfilled | Order has been fulfilled and shipped. |
backordered | Order cannot be fulfilled due to lack of inventory. |
exception | There is an issue with the order. |
cancelled | Order has been cancelled. |
3. Create Order Shipment
After fulfilling an order, use the Create Shipment endpoint to push tracking information back to the cart platform.4. Adjust Inventory
Use the Adjust Inventory endpoint to update inventory levels in the cart platform. This is useful for syncing stock changes that happen outside the cart (e.g. warehouse adjustments, returns processing). Theadjustment_type field controls how the quantity value is applied:
"increase"— add to the current stock level"decrease"— subtract from the current stock level"exact"— set the stock level to this exact quantity
Inventory can only be adjusted on variant products, not parent products. Use the
parent_product_id field to identify variants (see Step 1).Real-Time Updates
Use webhooks to get notified in real time:| Event | Description |
|---|---|
cart-order.created | A new order has been placed. |
cart-order.updated | An order has been updated (status change, etc.). |
cart-order.shipment.created | A shipment has been created for an order. |
cart-product.created | A new product has been added to the catalog. |
cart-product.updated | A product has been updated (price, inventory, etc.). |