WMS API Reference
- Inventory
- Products
- Orders
- Inbound Shipments
- Shipping Methods
- Returns
- Billing
- Warehouses
- Warehouse Customers
Create a Kit Product
Get the required, optional, and integration specific fields by calling the integrations endpoint.
curl --request POST \
--url https://production.trackstarhq.com/wms/kits \
--header 'Content-Type: application/json' \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '{
"sku": "sku",
"name": "name",
"gtin": "gtin",
"measurements": {
"length": 1.5,
"width": 1.5,
"height": 1.5,
"unit": "in",
"weight": 2.5,
"weight_unit": "lb"
},
"inventory_items": [
{
"inventory_item_id": "inventory_item_id",
"sku": "sku",
"unit_quantity": 1
}
],
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
]
}'
{
"data": {
"id": "product_id",
"warehouse_customer_id": "warehouse_customer_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"name": "name",
"sku": "sku",
"gtin": "gtin",
"unit_price": 10.99,
"inventory_items": [
{
"inventory_item_id": "id1",
"sku": "sku1",
"unit_quantity": 1
},
{
"inventory_item_id": "id2",
"sku": "sku2",
"unit_quantity": 1
}
],
"is_kit": true,
"active": true,
"supplier": "supplier",
"supplier_object": {},
"country_of_origin": "USA",
"harmonized_code": "123456",
"supplier_products": [
{
"supplier_id": "id1",
"supplier_name": "name1",
"external_id": "ext_id1",
"unit_cost": 1
},
{
"supplier_id": "id2",
"supplier_name": "name2",
"external_id": "ext_id2",
"unit_cost": 2.5
}
],
"external_system_url": "https://example.com/product/123",
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
]
},
"id": "id",
"unused_fields": [
""
]
}
Headers
Your organization-level Trackstar API key.
"<x-trackstar-api-key>"
Your user's access token for a specific integration (ShipHero, Extensiv, etc).
"<x-trackstar-access-token>"
Body
sku
"sku"
name
"name"
The Global Trade Item Number of the product. i.e. UPC, EAN, or ISBN.
"gtin"
1.5
1.5
1.5
The unit of measurement for the size of the product.
cm
, in
"in"
2.5
The unit of measurement for the weight of the product.
kg
, oz
, lb
"lb"
A list of custom tags associated with the kits. A tag can be either a string or a dictionary with one key-value pair. e.g. ['tag1', 'tag2', {'key1': 'value1'}]
["tag1", "tag2", { "tag3": "value3" }]
Response
The unique ID of the product.
"product_id"
The ID of the merchant/tenant/customer that owns the product. Can be passed into the Warehouse Customer endpoint for more details.
"warehouse_customer_id"
The date the product was created.
"2022-01-01T00:00:00Z"
The date the product was last updated.
"2022-01-02T05:05:05Z"
name
"name"
sku
"sku"
The Global Trade Item Number of the product. i.e. UPC, EAN, or ISBN.
"gtin"
The price of the product.
10.99
A list of inventory items associated with the product.
ID of the inventory item. Can be passed into the Inventory endpoint for more details.
"inv_id"
""
The number of units of the inventory item in the product.
0
[
{
"inventory_item_id": "id1",
"sku": "sku1",
"unit_quantity": 1
},
{
"inventory_item_id": "id2",
"sku": "sku2",
"unit_quantity": 1
}
]
true
Whether the product is active.
true
Deprecated in favor of supplier_object.
"supplier"
The country of origin of the product.
"USA"
The harmonized HS code of the product.
"123456"
A list of supplier products associated with the product.
ID of the supplier.
"sup_id"
Name of the supplier.
"sup_name"
The external ID of the product from the supplier.
"ext_id"
The cost of the product from the supplier.
"unit_cost"
[
{
"supplier_id": "id1",
"supplier_name": "name1",
"external_id": "ext_id1",
"unit_cost": 1
},
{
"supplier_id": "id2",
"supplier_name": "name2",
"external_id": "ext_id2",
"unit_cost": 2.5
}
]
URL link to the product in the external system (WMS/Freight etc).
"https://example.com/product/123"
A list of custom tags associated with the product. A tag can be either a string or a dictionary with one key-value pair. e.g. ['tag1', 'tag2', {'key1': 'value1'}]
["tag1", "tag2", { "tag3": "value3" }]
The ID of the object that has been created or modified
"id"
Unused fields
curl --request POST \
--url https://production.trackstarhq.com/wms/kits \
--header 'Content-Type: application/json' \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '{
"sku": "sku",
"name": "name",
"gtin": "gtin",
"measurements": {
"length": 1.5,
"width": 1.5,
"height": 1.5,
"unit": "in",
"weight": 2.5,
"weight_unit": "lb"
},
"inventory_items": [
{
"inventory_item_id": "inventory_item_id",
"sku": "sku",
"unit_quantity": 1
}
],
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
]
}'
{
"data": {
"id": "product_id",
"warehouse_customer_id": "warehouse_customer_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"name": "name",
"sku": "sku",
"gtin": "gtin",
"unit_price": 10.99,
"inventory_items": [
{
"inventory_item_id": "id1",
"sku": "sku1",
"unit_quantity": 1
},
{
"inventory_item_id": "id2",
"sku": "sku2",
"unit_quantity": 1
}
],
"is_kit": true,
"active": true,
"supplier": "supplier",
"supplier_object": {},
"country_of_origin": "USA",
"harmonized_code": "123456",
"supplier_products": [
{
"supplier_id": "id1",
"supplier_name": "name1",
"external_id": "ext_id1",
"unit_cost": 1
},
{
"supplier_id": "id2",
"supplier_name": "name2",
"external_id": "ext_id2",
"unit_cost": 2.5
}
],
"external_system_url": "https://example.com/product/123",
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
]
},
"id": "id",
"unused_fields": [
""
]
}