curl --request GET \
--url https://production.trackstarhq.com/wms/returns \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'{
"data": [
{
"id": "return_id",
"warehouse_customer_id": "warehouse_customer_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"status": "open",
"raw_status": "raw_status",
"order_id": "order_id",
"notes": [
"This is a note"
],
"line_items": [
{
"inventory_item_id": "item_id",
"sku": "sku",
"expected_quantity": 1,
"received_quantity": 1,
"restocked_quantity": 1,
"return_reason": "Too Small",
"quantity": 0,
"warehouse_id": "deprecated",
"returned_date": "deprecated"
}
],
"shipments": [
{
"tracking_number": "tracking_number",
"shipped_date": "2023-02-03T02:04:06Z",
"arrived_date": "2023-02-03T02:04:06Z",
"warehouse_id": "warehouse_id",
"carrier": "carrier",
"carrier_id": "carrier_id",
"carrier_name": "carrier_name",
"scac": "FDXG",
"shipping_cost": 1.23,
"measurements": {
"length": 1,
"width": 1,
"height": 1,
"unit": "in",
"weight": 1,
"weight_unit": "lb"
},
"line_items": [
{
"inventory_item_id": "item_id",
"sku": "sku",
"quantity": 4,
"receiving_details": [
{
"quantity": 1,
"condition": "good",
"disposition": "restocked"
},
{
"quantity": 1,
"condition": "damaged",
"disposition": "scrapped"
}
]
}
]
}
],
"external_system_url": "https://example.com/return/123",
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
],
"additional_fields": {
"key": "value"
}
}
],
"next_token": "next_token",
"total_count": 1
}Returns all Returns for the WMS connection associated with the provided access token.
curl --request GET \
--url https://production.trackstarhq.com/wms/returns \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'{
"data": [
{
"id": "return_id",
"warehouse_customer_id": "warehouse_customer_id",
"created_date": "2022-01-01T00:00:00Z",
"updated_date": "2022-01-02T05:05:05Z",
"status": "open",
"raw_status": "raw_status",
"order_id": "order_id",
"notes": [
"This is a note"
],
"line_items": [
{
"inventory_item_id": "item_id",
"sku": "sku",
"expected_quantity": 1,
"received_quantity": 1,
"restocked_quantity": 1,
"return_reason": "Too Small",
"quantity": 0,
"warehouse_id": "deprecated",
"returned_date": "deprecated"
}
],
"shipments": [
{
"tracking_number": "tracking_number",
"shipped_date": "2023-02-03T02:04:06Z",
"arrived_date": "2023-02-03T02:04:06Z",
"warehouse_id": "warehouse_id",
"carrier": "carrier",
"carrier_id": "carrier_id",
"carrier_name": "carrier_name",
"scac": "FDXG",
"shipping_cost": 1.23,
"measurements": {
"length": 1,
"width": 1,
"height": 1,
"unit": "in",
"weight": 1,
"weight_unit": "lb"
},
"line_items": [
{
"inventory_item_id": "item_id",
"sku": "sku",
"quantity": 4,
"receiving_details": [
{
"quantity": 1,
"condition": "good",
"disposition": "restocked"
},
{
"quantity": 1,
"condition": "damaged",
"disposition": "scrapped"
}
]
}
]
}
],
"external_system_url": "https://example.com/return/123",
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
],
"additional_fields": {
"key": "value"
}
}
],
"next_token": "next_token",
"total_count": 1
}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>"
The page token to use to retrieve the next page of results. If this field is omitted, there are no subsequent pages.
"page_token"
The maximum number of items to return. The default is 1000.
1000
Use this parameter to retrieve items filtered to a specific date range. For example, to get all items between 2023-03-10 and 2023-03-22, you would send created_date[gt]=2023-03-10T00:00:00Z&created_date[lt]=2023-03-22T00:00:00Z. See the filtering docs for more. The date format must always be YYYY-MM-DDTHH:MM:SSZ.
Show child attributes
"2023-03-15T13:45:30Z"
Comma-separated.
Comma-separated.
Same syntax as created_date.
Show child attributes
"2023-03-15T13:45:30Z"
Comma-separated.
Comma-separated.
The status of the return. See the return information for more details.
Show child attributes
open, in-transit, receiving, received, cancelled, other "open"
open, in-transit, receiving, received, cancelled, other Comma-separated.
open, in-transit, receiving, received, cancelled, other Comma-separated.
open, in-transit, receiving, received, cancelled, other The ID of the customer associated with the resource
Successful response
Show child attributes
The unique ID of the return.
"return_id"
The ID of the merchant/tenant/customer that owns the return. Can be passed into the Warehouse Customer endpoint for more details.
"warehouse_customer_id"
The date the return was created.
"2022-01-01T00:00:00Z"
The date the return was last updated.
"2022-01-02T05:05:05Z"
The status of the return. See the return information for more details.
open, in-transit, receiving, received, cancelled, other "open"
The raw status (if available) returned directly from the WMS.
"raw_status"
A list of notes associated with the return.
This is a note
["This is a note"]A list of inventory items included in the return.
Show child attributes
"sku"
How many units are expected to arrive.
1
How many units actually arrived.
1
The number of returned inventory items that have been restocked.
1
The reason for the return.
"Too Small"
This field is deprecated in favor of more detailed fields.
0
This field is deprecated in favor warehouse_id within the shipments.
"deprecated"
This field is deprecated in favor of the shipped_date and arrived_date within the shipments.
"deprecated"
[
{
"inventory_item_id": "item_id",
"sku": "sku",
"expected_quantity": 1,
"received_quantity": 1,
"restocked_quantity": 1,
"return_reason": "Too Small",
"quantity": 0,
"warehouse_id": "deprecated",
"returned_date": "deprecated"
}
]List of the shipments associated with the return.
Show child attributes
The tracking number of the shipment.
The date the shipment was sent.
The date the shipment arrived.
The carrier of the shipment. Use carrier_id instead.
The ID of the carrier for the shipment.
"carrier_id"
The name of the carrier for the shipment.
"carrier_name"
The Standard Carrier Alpha Code (SCAC) for the shipment.
"FDXG"
The cost of the shipment.
0
Show child attributes
1.5
1.5
1.5
The unit of measurement for the size of the shipment.
cm, in "in"
2.5
The unit of measurement for the weight of the shipment.
kg, oz, lb "lb"
List of inventory items items in the shipment.
Show child attributes
"sku"
How many units were shipped.
1
Details about received items in the shipment.
Show child attributes
How many units were received in this condition and disposition.
1
The condition of the item received.
"good"
The disposition of the item received, eg restocked or discarded.
"restocked"
[
{
"quantity": 1,
"condition": "good",
"disposition": "restocked"
}
][
{
"tracking_number": "tracking_number",
"shipped_date": "2023-02-03T02:04:06Z",
"arrived_date": "2023-02-03T02:04:06Z",
"warehouse_id": "warehouse_id",
"carrier": "carrier",
"carrier_id": "carrier_id",
"carrier_name": "carrier_name",
"scac": "FDXG",
"shipping_cost": 1.23,
"measurements": {
"length": 1,
"width": 1,
"height": 1,
"unit": "in",
"weight": 1,
"weight_unit": "lb"
},
"line_items": [
{
"inventory_item_id": "item_id",
"sku": "sku",
"quantity": 4,
"receiving_details": [
{
"quantity": 1,
"condition": "good",
"disposition": "restocked"
},
{
"quantity": 1,
"condition": "damaged",
"disposition": "scrapped"
}
]
}
]
}
]URL link to the return in the external system (WMS/Freight etc).
"https://example.com/return/123"
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" }]See pagination for more details.
"next_token"
The number of items returned.
1