API reference
Inventory
Master stock items, warehouses, stock documents, and the stock ledger.
Bulk update variants
/v1/bulk/variantsChange marketplace price and stock of many variants; pushed per store.
Variants that follow a master item with sync on reject the managed field with VARIANT_MANAGED.
Scopes:products:write
Request bodyapplication/json
updatesarray<object>requiredmin items 1 · max items 200
Show 3 child attributes
variantIdstringrequiredformat: uuid
pricestring (decimal)optionalDecimal string with two fraction digits.
stockintegeroptionalmin 0 · max 99999
Response200 · application/json
Outcome per variant, in request order
resultsarray<object>requiredShow 3 child attributes
variantIdstringrequiredformat: uuid
okbooleanrequirederrorobjectrequirednullableShow 2 child attributes
codestringrequiredmessagestringrequired
curl -X POST "https://api.comnethub.app/v1/bulk/variants" \
-H "Authorization: Bearer $THECOMNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"updates": [
{
"variantId": "0192f0c4-8d1e-7a4b-9c3e-5f6a7b8c9d0e"
}
]
}'List inventory items
/v1/inventory/itemsMaster stock items.
Scopes:products:read
Query parameters
qstringoptionalmax length 100
Response200 · application/json
Items ordered by SKU
itemsarray<InventoryItem>requiredShow 15 child attributes
idstringrequiredformat: uuid
skustringrequirednamestringrequiredstockintegerrequiredSum over sellable warehouses.
onHandintegerrequiredSum over all warehouses.
avgCoststring (decimal)requirednullableMoving-average unit cost from receipts.
safetyStockintegerrequiredavailableintegerrequiredmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)requirednullableDecimal string with two fraction digits.
currencystringrequiredsyncStockbooleanrequiredsyncPricebooleanrequiredlinkCountintegerrequirederrorCountintegerrequiredupdatedAtstringrequiredformat: date-time
curl "https://api.comnethub.app/v1/inventory/items" \
-H "Authorization: Bearer $THECOMNET_API_KEY"Create inventory item
/v1/inventory/itemsCreate a master stock item.
Scopes:products:write
Request bodyapplication/json
skustringrequiredmin length 1 · max length 100
namestringrequiredmin length 1 · max length 200
stockintegeroptionalmin 0 · max 1000000
warehouseIdstringoptionalWarehouse for the initial stock; defaults to the default warehouse.
format: uuid
safetyStockintegeroptionalmin 0 · max 1000000
pricestring (decimal)optionalnullableDecimal string with two fraction digits.
syncStockbooleanoptionalsyncPricebooleanoptional
Response201 · application/json
Created item
idstringrequiredformat: uuid
skustringrequirednamestringrequiredstockintegerrequiredSum over sellable warehouses.
onHandintegerrequiredSum over all warehouses.
avgCoststring (decimal)requirednullableMoving-average unit cost from receipts.
safetyStockintegerrequiredavailableintegerrequiredmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)requirednullableDecimal string with two fraction digits.
currencystringrequiredsyncStockbooleanrequiredsyncPricebooleanrequiredlinkCountintegerrequirederrorCountintegerrequiredupdatedAtstringrequiredformat: date-time
curl -X POST "https://api.comnethub.app/v1/inventory/items" \
-H "Authorization: Bearer $THECOMNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sku": "string",
"name": "string"
}'Get inventory item
/v1/inventory/items/{itemId}Item with linked marketplace variants and recent movements.
Scopes:products:read
Path parameters
itemIdstringrequiredformat: uuid
Response200 · application/json
Item detail
idstringrequiredformat: uuid
skustringrequirednamestringrequiredstockintegerrequiredSum over sellable warehouses.
onHandintegerrequiredSum over all warehouses.
avgCoststring (decimal)requirednullableMoving-average unit cost from receipts.
safetyStockintegerrequiredavailableintegerrequiredmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)requirednullableDecimal string with two fraction digits.
currencystringrequiredsyncStockbooleanrequiredsyncPricebooleanrequiredlinkCountintegerrequirederrorCountintegerrequiredupdatedAtstringrequiredformat: date-time
warehousesarray<ItemWarehouseStock>requiredShow 5 child attributes
warehouseIdstringrequiredformat: uuid
codestringrequirednamestringrequiredsellablebooleanrequiredquantityintegerrequired
linksarray<InventoryLink>requiredShow 13 child attributes
variantIdstringrequiredformat: uuid
storeIdstringrequiredformat: uuid
storeNamestringrequiredmarketplacestringrequiredOne of:
tiktokshopeelazadatokopediaproductTitlestringrequiredvariantNamestringrequirednullableskustringrequirednullablestockintegerrequirednullablepricestring (decimal)requirednullableDecimal string with two fraction digits.
lastPushedStockintegerrequirednullablelastPushedAtstringrequirednullableformat: date-time
lastErrorstringrequirednullablelinkedAtstringrequiredformat: date-time
movementsarray<InventoryMovement>requiredShow 15 child attributes
idstringrequiredformat: uuid
deltaintegerrequiredreasonstringrequiredOne of:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbatchIdstringrequirednullableShared by the lines and transfer legs of one stock document.
format: uuid
warehouseIdstringrequiredformat: uuid
warehouseCodestringrequiredunitCoststring (decimal)requirednullableDecimal string with two fraction digits.
purchaseOrderIdstringrequirednullableformat: uuid
purchaseOrderNumberstringrequirednullablestocktakeIdstringrequirednullableformat: uuid
stocktakeNumberstringrequirednullableorderIdstringrequirednullableformat: uuid
externalOrderIdstringrequirednullablenotestringrequirednullablecreatedAtstringrequiredformat: date-time
curl "https://api.comnethub.app/v1/inventory/items/$ITEM_ID" \
-H "Authorization: Bearer $THECOMNET_API_KEY"Update inventory item
/v1/inventory/items/{itemId}Edit name, safety stock, price, or sync switches.
Scopes:products:write
Path parameters
itemIdstringrequiredformat: uuid
Request bodyapplication/json
namestringoptionalmin length 1 · max length 200
safetyStockintegeroptionalmin 0 · max 1000000
pricestring (decimal)optionalnullableDecimal string with two fraction digits.
syncStockbooleanoptionalsyncPricebooleanoptional
Response200 · application/json
Updated item
idstringrequiredformat: uuid
skustringrequirednamestringrequiredstockintegerrequiredSum over sellable warehouses.
onHandintegerrequiredSum over all warehouses.
avgCoststring (decimal)requirednullableMoving-average unit cost from receipts.
safetyStockintegerrequiredavailableintegerrequiredmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)requirednullableDecimal string with two fraction digits.
currencystringrequiredsyncStockbooleanrequiredsyncPricebooleanrequiredlinkCountintegerrequirederrorCountintegerrequiredupdatedAtstringrequiredformat: date-time
curl -X PATCH "https://api.comnethub.app/v1/inventory/items/$ITEM_ID" \
-H "Authorization: Bearer $THECOMNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"safetyStock": 1,
"price": "150000.00",
"syncStock": true,
"syncPrice": true
}'Adjust inventory stock
/v1/inventory/items/{itemId}/adjustSet or change stock; queues a push to linked marketplaces.
Scopes:products:write
Path parameters
itemIdstringrequiredformat: uuid
Request bodyapplication/json
modestringrequiredOne of:
setdeltaquantityintegerrequiredmin -1000000 · max 1000000
warehouseIdstringoptionalDefaults to the default warehouse; set mode applies to that warehouse.
format: uuid
notestringoptionalmax length 200
Response200 · application/json
Item after the change
idstringrequiredformat: uuid
skustringrequirednamestringrequiredstockintegerrequiredSum over sellable warehouses.
onHandintegerrequiredSum over all warehouses.
avgCoststring (decimal)requirednullableMoving-average unit cost from receipts.
safetyStockintegerrequiredavailableintegerrequiredmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)requirednullableDecimal string with two fraction digits.
currencystringrequiredsyncStockbooleanrequiredsyncPricebooleanrequiredlinkCountintegerrequirederrorCountintegerrequiredupdatedAtstringrequiredformat: date-time
curl -X POST "https://api.comnethub.app/v1/inventory/items/$ITEM_ID/adjust" \
-H "Authorization: Bearer $THECOMNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "set",
"quantity": 1
}'Link inventory variant
/v1/inventory/items/{itemId}/linksLink a marketplace variant; it immediately receives the item's stock.
Scopes:products:write
Path parameters
itemIdstringrequiredformat: uuid
Request bodyapplication/json
variantIdstringrequiredformat: uuid
Response200 · application/json
Item detail
idstringrequiredformat: uuid
skustringrequirednamestringrequiredstockintegerrequiredSum over sellable warehouses.
onHandintegerrequiredSum over all warehouses.
avgCoststring (decimal)requirednullableMoving-average unit cost from receipts.
safetyStockintegerrequiredavailableintegerrequiredmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)requirednullableDecimal string with two fraction digits.
currencystringrequiredsyncStockbooleanrequiredsyncPricebooleanrequiredlinkCountintegerrequirederrorCountintegerrequiredupdatedAtstringrequiredformat: date-time
warehousesarray<ItemWarehouseStock>requiredShow 5 child attributes
warehouseIdstringrequiredformat: uuid
codestringrequirednamestringrequiredsellablebooleanrequiredquantityintegerrequired
linksarray<InventoryLink>requiredShow 13 child attributes
variantIdstringrequiredformat: uuid
storeIdstringrequiredformat: uuid
storeNamestringrequiredmarketplacestringrequiredOne of:
tiktokshopeelazadatokopediaproductTitlestringrequiredvariantNamestringrequirednullableskustringrequirednullablestockintegerrequirednullablepricestring (decimal)requirednullableDecimal string with two fraction digits.
lastPushedStockintegerrequirednullablelastPushedAtstringrequirednullableformat: date-time
lastErrorstringrequirednullablelinkedAtstringrequiredformat: date-time
movementsarray<InventoryMovement>requiredShow 15 child attributes
idstringrequiredformat: uuid
deltaintegerrequiredreasonstringrequiredOne of:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbatchIdstringrequirednullableShared by the lines and transfer legs of one stock document.
format: uuid
warehouseIdstringrequiredformat: uuid
warehouseCodestringrequiredunitCoststring (decimal)requirednullableDecimal string with two fraction digits.
purchaseOrderIdstringrequirednullableformat: uuid
purchaseOrderNumberstringrequirednullablestocktakeIdstringrequirednullableformat: uuid
stocktakeNumberstringrequirednullableorderIdstringrequirednullableformat: uuid
externalOrderIdstringrequirednullablenotestringrequirednullablecreatedAtstringrequiredformat: date-time
curl -X POST "https://api.comnethub.app/v1/inventory/items/$ITEM_ID/links" \
-H "Authorization: Bearer $THECOMNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"variantId": "0192f0c4-8d1e-7a4b-9c3e-5f6a7b8c9d0e"
}'Unlink inventory variant
/v1/inventory/items/{itemId}/links/{variantId}Stop syncing a variant.
Scopes:products:write
Path parameters
itemIdstringrequiredformat: uuid
variantIdstringrequiredformat: uuid
Response204
Unlinked
No response body.
curl -X DELETE "https://api.comnethub.app/v1/inventory/items/$ITEM_ID/links/$VARIANT_ID" \
-H "Authorization: Bearer $THECOMNET_API_KEY"Push inventory item
/v1/inventory/items/{itemId}/pushQueue a push of stock (and price when enabled) to every linked variant.
Scopes:products:write
Path parameters
itemIdstringrequiredformat: uuid
Response202
Queued
No response body.
curl -X POST "https://api.comnethub.app/v1/inventory/items/$ITEM_ID/push" \
-H "Authorization: Bearer $THECOMNET_API_KEY"List unlinked variants
/v1/inventory/variantsSynced marketplace variants not linked to any item.
Scopes:products:read
Query parameters
qstringoptionalmax length 100
Response200 · application/json
Variants
itemsarray<MarketplaceVariant>requiredShow 9 child attributes
variantIdstringrequiredformat: uuid
storeIdstringrequiredformat: uuid
storeNamestringrequiredmarketplacestringrequiredOne of:
tiktokshopeelazadatokopediaproductTitlestringrequiredvariantNamestringrequirednullableskustringrequirednullablestockintegerrequirednullablepricestring (decimal)requirednullableDecimal string with two fraction digits.
curl "https://api.comnethub.app/v1/inventory/variants" \
-H "Authorization: Bearer $THECOMNET_API_KEY"List warehouses
/v1/inventory/warehousesWarehouses with stock totals.
Scopes:products:read
Query parameters
archivedbooleanoptional
Response200 · application/json
OK
itemsarray<Warehouse>requiredShow 12 child attributes
receivesReturnsbooleanrequiredReturned goods are restocked here (e.g. for inspection); otherwise into the order's warehouse.
idstringrequiredformat: uuid
codestringrequirednamestringrequiredaddressstringrequirednullablesellablebooleanrequiredisDefaultbooleanrequiredarchivedbooleanrequireditemCountintegerrequiredItems with non-zero quantity.
onHandintegerrequiredstoreCountintegerrequiredStores whose orders deduct from this warehouse.
createdAtstringrequiredformat: date-time
curl "https://api.comnethub.app/v1/inventory/warehouses" \
-H "Authorization: Bearer $THECOMNET_API_KEY"List warehouse stock
/v1/inventory/warehouses/{warehouseId}/stockItem quantities in one warehouse.
Scopes:products:read
Path parameters
warehouseIdstringrequiredformat: uuid
Query parameters
qstringoptionalmax length 100
nonZerobooleanoptional
Response200 · application/json
OK
itemsarray<WarehouseStockRow>requiredShow 5 child attributes
itemIdstringrequiredformat: uuid
skustringrequirednamestringrequiredquantityintegerrequiredavgCoststring (decimal)requirednullableDecimal string with two fraction digits.
curl "https://api.comnethub.app/v1/inventory/warehouses/$WAREHOUSE_ID/stock" \
-H "Authorization: Bearer $THECOMNET_API_KEY"Post stock document
/v1/inventory/stock-documentsReceive, issue, or transfer stock in one batch.
Scopes:products:write
Request bodyapplication/json
typestringrequiredOne of:
receiveissuetransferwarehouseIdstringrequiredDestination for receive, source for issue and transfer.
format: uuid
toWarehouseIdstringoptionalRequired for transfer.
format: uuid
notestringoptionalmax length 200
linesarray<object>requiredmin items 1 · max items 200
Show 3 child attributes
itemIdstringrequiredformat: uuid
quantityintegerrequiredmin 1 · max 1000000
unitCoststring (decimal)optionalReceive only; updates the item's average cost.
Response201 · application/json
OK
batchIdstringrequiredformat: uuid
movementsintegerrequired
curl -X POST "https://api.comnethub.app/v1/inventory/stock-documents" \
-H "Authorization: Bearer $THECOMNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "receive",
"warehouseId": "0192f0c4-8d1e-7a4b-9c3e-5f6a7b8c9d0e",
"lines": [
{
"itemId": "0192f0c4-8d1e-7a4b-9c3e-5f6a7b8c9d0e",
"quantity": 1
}
]
}'List stock movements
/v1/inventory/movementsStock ledger, newest first.
Scopes:products:read
Query parameters
warehouseIdstringoptionalformat: uuid
itemIdstringoptionalformat: uuid
reasonMovementReasonoptionalOne of:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbeforestringoptionalCursor; returns movements older than this movement id.
format: uuid
limitintegeroptionalmin 1 · max 500
Response200 · application/json
OK
itemsarray<StockLedgerEntry>requiredShow 18 child attributes
idstringrequiredformat: uuid
deltaintegerrequiredreasonstringrequiredOne of:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbatchIdstringrequirednullableShared by the lines and transfer legs of one stock document.
format: uuid
warehouseIdstringrequiredformat: uuid
warehouseCodestringrequiredunitCoststring (decimal)requirednullableDecimal string with two fraction digits.
purchaseOrderIdstringrequirednullableformat: uuid
purchaseOrderNumberstringrequirednullablestocktakeIdstringrequirednullableformat: uuid
stocktakeNumberstringrequirednullableorderIdstringrequirednullableformat: uuid
externalOrderIdstringrequirednullablenotestringrequirednullablecreatedAtstringrequiredformat: date-time
itemIdstringrequiredformat: uuid
skustringrequireditemNamestringrequired
curl "https://api.comnethub.app/v1/inventory/movements?limit=20" \
-H "Authorization: Bearer $THECOMNET_API_KEY"