curl --request PUT \
--url https://production.trackstarhq.com/wms/returns/{return_id} \
--header 'Content-Type: application/json' \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '
{
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
],
"warehouse_id": "warehouse",
"order_id": "order_id",
"line_items": [
{
"sku": "sku",
"quantity": 1
}
]
}
'{
"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"
}
},
"id": "id",
"unused_fields": [
"<string>"
]
}Get the required, optional, and integration specific fields by calling the integrations endpoint.
curl --request PUT \
--url https://production.trackstarhq.com/wms/returns/{return_id} \
--header 'Content-Type: application/json' \
--header 'x-trackstar-access-token: <x-trackstar-access-token>' \
--header 'x-trackstar-api-key: <x-trackstar-api-key>' \
--data '
{
"trackstar_tags": [
"tag1",
"tag2",
{
"tag3": "value3"
}
],
"warehouse_id": "warehouse",
"order_id": "order_id",
"line_items": [
{
"sku": "sku",
"quantity": 1
}
]
}
'{
"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"
}
},
"id": "id",
"unused_fields": [
"<string>"
]
}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>"
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" }]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" }]The ID of the object that has been created or modified
"id"
Unused fields