curl --request POST \
--url https://production.trackstarhq.com/wms/inbound-shipments \
--header 'Content-Type: application/json' \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '
{
"supplier_object": {
"supplier_id": "supplier_id"
},
"purchase_order_number": "po_number_123",
"expected_arrival_date": "2022-10-10T01:02:03Z",
"warehouse_id": "warehouse_id123",
"tracking_number": "tracking_number",
"line_items": [
{
"sku": null,
"expected_quantity": 0
}
],
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
]
}
'import requests
url = "https://production.trackstarhq.com/wms/inbound-shipments"
payload = {
"supplier_object": { "supplier_id": "supplier_id" },
"purchase_order_number": "po_number_123",
"expected_arrival_date": "2022-10-10T01:02:03Z",
"warehouse_id": "warehouse_id123",
"tracking_number": "tracking_number",
"line_items": [
{
"sku": None,
"expected_quantity": 0
}
],
"trackstar_tags": ["tag1", "tag2", { "tag3": "value3" }]
}
headers = {
"x-trackstar-api-key": "<x-trackstar-api-key>",
"x-trackstar-access-token": "<x-trackstar-access-token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-trackstar-api-key': '<x-trackstar-api-key>',
'x-trackstar-access-token': '<x-trackstar-access-token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
supplier_object: {supplier_id: 'supplier_id'},
purchase_order_number: 'po_number_123',
expected_arrival_date: '2022-10-10T01:02:03Z',
warehouse_id: 'warehouse_id123',
tracking_number: 'tracking_number',
line_items: [{sku: null, expected_quantity: 0}],
trackstar_tags: ['tag1', 'tag2', {tag3: 'value3'}]
})
};
fetch('https://production.trackstarhq.com/wms/inbound-shipments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.trackstarhq.com/wms/inbound-shipments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'supplier_object' => [
'supplier_id' => 'supplier_id'
],
'purchase_order_number' => 'po_number_123',
'expected_arrival_date' => '2022-10-10T01:02:03Z',
'warehouse_id' => 'warehouse_id123',
'tracking_number' => 'tracking_number',
'line_items' => [
[
'sku' => null,
'expected_quantity' => 0
]
],
'trackstar_tags' => [
'tag1',
'tag2',
[
'tag3' => 'value3'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-trackstar-access-token: <x-trackstar-access-token>",
"x-trackstar-api-key: <x-trackstar-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.trackstarhq.com/wms/inbound-shipments"
payload := strings.NewReader("{\n \"supplier_object\": {\n \"supplier_id\": \"supplier_id\"\n },\n \"purchase_order_number\": \"po_number_123\",\n \"expected_arrival_date\": \"2022-10-10T01:02:03Z\",\n \"warehouse_id\": \"warehouse_id123\",\n \"tracking_number\": \"tracking_number\",\n \"line_items\": [\n {\n \"sku\": null,\n \"expected_quantity\": 0\n }\n ],\n \"trackstar_tags\": [\n \"tag1\",\n \"tag2\",\n {\n \"tag3\": \"value3\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-trackstar-api-key", "<x-trackstar-api-key>")
req.Header.Add("x-trackstar-access-token", "<x-trackstar-access-token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production.trackstarhq.com/wms/inbound-shipments")
.header("x-trackstar-api-key", "<x-trackstar-api-key>")
.header("x-trackstar-access-token", "<x-trackstar-access-token>")
.header("Content-Type", "application/json")
.body("{\n \"supplier_object\": {\n \"supplier_id\": \"supplier_id\"\n },\n \"purchase_order_number\": \"po_number_123\",\n \"expected_arrival_date\": \"2022-10-10T01:02:03Z\",\n \"warehouse_id\": \"warehouse_id123\",\n \"tracking_number\": \"tracking_number\",\n \"line_items\": [\n {\n \"sku\": null,\n \"expected_quantity\": 0\n }\n ],\n \"trackstar_tags\": [\n \"tag1\",\n \"tag2\",\n {\n \"tag3\": \"value3\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.trackstarhq.com/wms/inbound-shipments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-trackstar-api-key"] = '<x-trackstar-api-key>'
request["x-trackstar-access-token"] = '<x-trackstar-access-token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supplier_object\": {\n \"supplier_id\": \"supplier_id\"\n },\n \"purchase_order_number\": \"po_number_123\",\n \"expected_arrival_date\": \"2022-10-10T01:02:03Z\",\n \"warehouse_id\": \"warehouse_id123\",\n \"tracking_number\": \"tracking_number\",\n \"line_items\": [\n {\n \"sku\": null,\n \"expected_quantity\": 0\n }\n ],\n \"trackstar_tags\": [\n \"tag1\",\n \"tag2\",\n {\n \"tag3\": \"value3\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "id",
"unused_fields": [
"<string>"
],
"data": {
"id": "inbound_id",
"warehouse_customer_id": "warehouse_customer_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"purchase_order_number": "po_number_123",
"status": "open",
"raw_status": "raw_status",
"supplier_object": {
"supplier_id": "supplier_id",
"supplier_name": "supplier_name"
},
"expected_arrival_date": "2022-10-10T01:02:03Z",
"warehouse_id": "warehouse_id123",
"line_items": [
{
"inventory_item_id": "item_id",
"sku": "sku",
"expected_quantity": 2,
"received_quantity": 1,
"unit_cost": 1,
"external_id": "external_sku"
}
],
"receipts": [],
"ship_from_address": {
"address1": "123 Main St",
"address2": "Apt 2",
"address3": "Floor 3",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "United States"
},
"tracking_numbers": [
"tracking_number_1",
"tracking_number_2"
],
"notes": [
"note_1",
"note_2"
],
"external_system_url": "https://example.com/inboundshipment/123",
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
],
"additional_fields": {
"key": "value"
},
"trackstar_created_date": "2023-11-07T05:31:56Z",
"trackstar_updated_date": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"detail": {
"<location>": {
"<field_name>": [
"<string>"
]
}
}
}Create Inbound Shipment
Get the required, optional, and integration specific fields by calling the integrations endpoint.
curl --request POST \
--url https://production.trackstarhq.com/wms/inbound-shipments \
--header 'Content-Type: application/json' \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '
{
"supplier_object": {
"supplier_id": "supplier_id"
},
"purchase_order_number": "po_number_123",
"expected_arrival_date": "2022-10-10T01:02:03Z",
"warehouse_id": "warehouse_id123",
"tracking_number": "tracking_number",
"line_items": [
{
"sku": null,
"expected_quantity": 0
}
],
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
]
}
'import requests
url = "https://production.trackstarhq.com/wms/inbound-shipments"
payload = {
"supplier_object": { "supplier_id": "supplier_id" },
"purchase_order_number": "po_number_123",
"expected_arrival_date": "2022-10-10T01:02:03Z",
"warehouse_id": "warehouse_id123",
"tracking_number": "tracking_number",
"line_items": [
{
"sku": None,
"expected_quantity": 0
}
],
"trackstar_tags": ["tag1", "tag2", { "tag3": "value3" }]
}
headers = {
"x-trackstar-api-key": "<x-trackstar-api-key>",
"x-trackstar-access-token": "<x-trackstar-access-token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-trackstar-api-key': '<x-trackstar-api-key>',
'x-trackstar-access-token': '<x-trackstar-access-token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
supplier_object: {supplier_id: 'supplier_id'},
purchase_order_number: 'po_number_123',
expected_arrival_date: '2022-10-10T01:02:03Z',
warehouse_id: 'warehouse_id123',
tracking_number: 'tracking_number',
line_items: [{sku: null, expected_quantity: 0}],
trackstar_tags: ['tag1', 'tag2', {tag3: 'value3'}]
})
};
fetch('https://production.trackstarhq.com/wms/inbound-shipments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://production.trackstarhq.com/wms/inbound-shipments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'supplier_object' => [
'supplier_id' => 'supplier_id'
],
'purchase_order_number' => 'po_number_123',
'expected_arrival_date' => '2022-10-10T01:02:03Z',
'warehouse_id' => 'warehouse_id123',
'tracking_number' => 'tracking_number',
'line_items' => [
[
'sku' => null,
'expected_quantity' => 0
]
],
'trackstar_tags' => [
'tag1',
'tag2',
[
'tag3' => 'value3'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-trackstar-access-token: <x-trackstar-access-token>",
"x-trackstar-api-key: <x-trackstar-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://production.trackstarhq.com/wms/inbound-shipments"
payload := strings.NewReader("{\n \"supplier_object\": {\n \"supplier_id\": \"supplier_id\"\n },\n \"purchase_order_number\": \"po_number_123\",\n \"expected_arrival_date\": \"2022-10-10T01:02:03Z\",\n \"warehouse_id\": \"warehouse_id123\",\n \"tracking_number\": \"tracking_number\",\n \"line_items\": [\n {\n \"sku\": null,\n \"expected_quantity\": 0\n }\n ],\n \"trackstar_tags\": [\n \"tag1\",\n \"tag2\",\n {\n \"tag3\": \"value3\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-trackstar-api-key", "<x-trackstar-api-key>")
req.Header.Add("x-trackstar-access-token", "<x-trackstar-access-token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production.trackstarhq.com/wms/inbound-shipments")
.header("x-trackstar-api-key", "<x-trackstar-api-key>")
.header("x-trackstar-access-token", "<x-trackstar-access-token>")
.header("Content-Type", "application/json")
.body("{\n \"supplier_object\": {\n \"supplier_id\": \"supplier_id\"\n },\n \"purchase_order_number\": \"po_number_123\",\n \"expected_arrival_date\": \"2022-10-10T01:02:03Z\",\n \"warehouse_id\": \"warehouse_id123\",\n \"tracking_number\": \"tracking_number\",\n \"line_items\": [\n {\n \"sku\": null,\n \"expected_quantity\": 0\n }\n ],\n \"trackstar_tags\": [\n \"tag1\",\n \"tag2\",\n {\n \"tag3\": \"value3\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.trackstarhq.com/wms/inbound-shipments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-trackstar-api-key"] = '<x-trackstar-api-key>'
request["x-trackstar-access-token"] = '<x-trackstar-access-token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"supplier_object\": {\n \"supplier_id\": \"supplier_id\"\n },\n \"purchase_order_number\": \"po_number_123\",\n \"expected_arrival_date\": \"2022-10-10T01:02:03Z\",\n \"warehouse_id\": \"warehouse_id123\",\n \"tracking_number\": \"tracking_number\",\n \"line_items\": [\n {\n \"sku\": null,\n \"expected_quantity\": 0\n }\n ],\n \"trackstar_tags\": [\n \"tag1\",\n \"tag2\",\n {\n \"tag3\": \"value3\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "id",
"unused_fields": [
"<string>"
],
"data": {
"id": "inbound_id",
"warehouse_customer_id": "warehouse_customer_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"purchase_order_number": "po_number_123",
"status": "open",
"raw_status": "raw_status",
"supplier_object": {
"supplier_id": "supplier_id",
"supplier_name": "supplier_name"
},
"expected_arrival_date": "2022-10-10T01:02:03Z",
"warehouse_id": "warehouse_id123",
"line_items": [
{
"inventory_item_id": "item_id",
"sku": "sku",
"expected_quantity": 2,
"received_quantity": 1,
"unit_cost": 1,
"external_id": "external_sku"
}
],
"receipts": [],
"ship_from_address": {
"address1": "123 Main St",
"address2": "Apt 2",
"address3": "Floor 3",
"city": "New York",
"state": "NY",
"postal_code": "10001",
"country": "United States"
},
"tracking_numbers": [
"tracking_number_1",
"tracking_number_2"
],
"notes": [
"note_1",
"note_2"
],
"external_system_url": "https://example.com/inboundshipment/123",
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
],
"additional_fields": {
"key": "value"
},
"trackstar_created_date": "2023-11-07T05:31:56Z",
"trackstar_updated_date": "2023-11-07T05:31:56Z"
}
}{
"error": "<string>",
"detail": {
"<location>": {
"<field_name>": [
"<string>"
]
}
}
}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
- Base Schema
- Active Ants
- A. Duie Pyle (ADP)
- Amphora
- Amplifier
- AMS
- Bergen
- Bigblue
- BlueBox (IDrive Fulfillment)
- Camelot
- Canary7
- CartonCloud
- Clarus
- DCL
- Cin7 Core (Dear Systems)
- Deposco
- Distribution Management
- Dotcom Distribution
- eShipping
- Evolve
- Extensiv (3PL Central)
- Finale
- Flexport (Deliverr)
- Flowspace
- Fulfillor
- fulfilmentcrowd
- G Global
- GoBolt
- Helm WMS
- Hive
- I-Fulfilment
- iCreate
- Infoplus
- JAS
- Cart.com (Jazz Central)
- Leanware
- Lineage
- Linnworks
- Quickbox (LogicPod)
- Logiwa
- Logiwa IO
- Luxroutage LRI
- Mainfreight
- MasonHub
- Mintsoft
- Monta
- Nimble
- NLRP
- NRI
- Ongoing WMS
- Packiyo
- Pattern
- Peoplevox
- Picqer
- PostNord
- Pulpo WMS
- Quiet Platforms
- RJW
- Salesupply
- WMS Sandbox
- ShipBob
- Shipedge
- Shipfusion
- ShipHero
- ShipMonk
- ShippingTree
- Shippingbo
- ShipStream
- Shipwire
- Skulabs
- SKUSavvy
- Linnworks Core (SKUVault)
- Smart Warehousing
- Sojo
- Star WMS
- Stockhub
- Stord
- Unleashed
- VeraCore
- Warehance
- Whiplash (Ryder)
- XB Fulfillment
- Zenventory
- Zoho
The supplier from which the shipment is being sent.
- SupplierId
- WriteSupplierName
Show child attributes
Show child attributes
The number of the purchase order associated with the inbound shipment.
"po_number_123"
Date the shipment is expected to reach the warehouse.
"2022-10-10T01:02:03Z"
Tracking number associated with the inbound shipment.
"tracking_number"
List of line items included in the shipment.
Show child attributes
Show child attributes
[{ "sku": null, "expected_quantity": 0 }]
A list of custom tags associated with the resource. A tag can be either a string or a dictionary with one key-value pair.
["tag1", "tag2", { "tag3": "value3" }]