Create Inventory Item
Adds an inventory item. A valid inventory item includes a name and code (SKU).
The code is how Order Desk matches an order line to an inventory record, so it must match the code that your orders arrive with. A mismatch here is a common reason for stock counts not being updated.
Your API key, found under Store Settings on the API tab. This should be kept server-side.
Your store ID, found under Store Settings on the API tab.
ODU Campus HoodieProduct's unique SKU. This is how Order Desk matches an order line to an inventory record, so it must match the code that your orders arrive with.
ODU-HOOD-NVY-L19Item cost in decimal format.
7.25The shipping weight of the item.
1.2The number of available units.
52The SKU used by the manufacturer. This can be used as print_sku.
GT5000Warehouse or fulfillment method responsible for the item.
Main WarehouseThe name of the last system to update the item's details. Setting this allows those
updates to be excluded later using the update_source_not search parameter.
Warehouse SyncThe item was created.
Either success or error.
Describes the result. Always present when an error occurs.
Time taken to process the request.
0.1524 seconds100009ODU Campus HoodieProduct's unique SKU. This is how Order Desk matches an order line to an inventory record, so it must match the code that your orders arrive with.
ODU-HOOD-NVY-L19Item cost in decimal format.
7.25The shipping weight of the item.
1.2The number of available units.
52The SKU used by the manufacturer. This can be used as print_sku.
GT5000Warehouse or fulfillment method responsible for the item.
Main WarehouseThe name of the last system to update the item's details. Setting this allows those
updates to be excluded later using the update_source_not search parameter.
Warehouse SyncDate and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.
2019-01-15 12:12:10Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.
2019-01-15 12:12:10The request was rejected. message names the problem.
Authentication failed. See the Authentication guide, and note that an invalid store ID blocks your store rather than simply failing the request.
You are sending too fast. Wait X-Retry-After seconds. See
the Rate Limits guide.
The request could not be completed.
curl "https://app.orderdesk.me/api/v2/inventory-items" \
-X POST \
-H "ORDERDESK-STORE-ID: your-store-id" \
-H "ORDERDESK-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{"name": "ODU Campus Hoodie", "code": "ODU-HOOD-NVY-L", "price": 19, "cost": 7.25, "weight": 1.2, "stock": 52, "manufacturer_sku": "GT5000", "location": "Main Warehouse", "variation_list": {"Size": "Large", "Color": "Red"}, "metadata": {"image": "https://example.com/odu-hoodie.jpg"}}'
{
"status": "success",
"message": "text",
"execution_time": "0.1524 seconds",
"inventory_item": {
"id": 100009,
"name": "ODU Campus Hoodie",
"code": "ODU-HOOD-NVY-L",
"price": 19,
"cost": 7.25,
"weight": 1.2,
"stock": 52,
"variation_list": {
"Size": "Large",
"Color": "Red"
},
"metadata": {
"image": "https://example.com/odu-hoodie.jpg",
"print_sku": "x533"
},
"manufacturer_sku": "GT5000",
"location": "Main Warehouse",
"update_source": "Warehouse Sync",
"date_added": "2019-01-15 12:12:10",
"date_updated": "2019-01-15 12:12:10"
}
}Last updated
Was this helpful?

