Referensi API
Inventori
Item stok master, gudang, dokumen stok, dan buku besar stok.
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.
Scope:products:write
Request bodyapplication/json
updatesarray<object>wajibitem min 1 · item maks 200
Tampilkan 3 atribut turunan
variantIdstringwajibformat: uuid
pricestring (decimal)opsionalDecimal string with two fraction digits.
stockintegeropsionalmin 0 · maks 99999
Response200 · application/json
Outcome per variant, in request order
resultsarray<object>wajibTampilkan 3 atribut turunan
variantIdstringwajibformat: uuid
okbooleanwajiberrorobjectwajibnullableTampilkan 2 atribut turunan
codestringwajibmessagestringwajib
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.
Scope:products:read
Query parameter
qstringopsionalpanjang maks 100
Response200 · application/json
Items ordered by SKU
itemsarray<InventoryItem>wajibTampilkan 15 atribut turunan
idstringwajibformat: uuid
skustringwajibnamestringwajibstockintegerwajibSum over sellable warehouses.
onHandintegerwajibSum over all warehouses.
avgCoststring (decimal)wajibnullableMoving-average unit cost from receipts.
safetyStockintegerwajibavailableintegerwajibmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)wajibnullableDecimal string with two fraction digits.
currencystringwajibsyncStockbooleanwajibsyncPricebooleanwajiblinkCountintegerwajiberrorCountintegerwajibupdatedAtstringwajibformat: 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.
Scope:products:write
Request bodyapplication/json
skustringwajibpanjang min 1 · panjang maks 100
namestringwajibpanjang min 1 · panjang maks 200
stockintegeropsionalmin 0 · maks 1000000
warehouseIdstringopsionalWarehouse for the initial stock; defaults to the default warehouse.
format: uuid
safetyStockintegeropsionalmin 0 · maks 1000000
pricestring (decimal)opsionalnullableDecimal string with two fraction digits.
syncStockbooleanopsionalsyncPricebooleanopsional
Response201 · application/json
Created item
idstringwajibformat: uuid
skustringwajibnamestringwajibstockintegerwajibSum over sellable warehouses.
onHandintegerwajibSum over all warehouses.
avgCoststring (decimal)wajibnullableMoving-average unit cost from receipts.
safetyStockintegerwajibavailableintegerwajibmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)wajibnullableDecimal string with two fraction digits.
currencystringwajibsyncStockbooleanwajibsyncPricebooleanwajiblinkCountintegerwajiberrorCountintegerwajibupdatedAtstringwajibformat: 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.
Scope:products:read
Path parameter
itemIdstringwajibformat: uuid
Response200 · application/json
Item detail
idstringwajibformat: uuid
skustringwajibnamestringwajibstockintegerwajibSum over sellable warehouses.
onHandintegerwajibSum over all warehouses.
avgCoststring (decimal)wajibnullableMoving-average unit cost from receipts.
safetyStockintegerwajibavailableintegerwajibmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)wajibnullableDecimal string with two fraction digits.
currencystringwajibsyncStockbooleanwajibsyncPricebooleanwajiblinkCountintegerwajiberrorCountintegerwajibupdatedAtstringwajibformat: date-time
warehousesarray<ItemWarehouseStock>wajibTampilkan 5 atribut turunan
warehouseIdstringwajibformat: uuid
codestringwajibnamestringwajibsellablebooleanwajibquantityintegerwajib
linksarray<InventoryLink>wajibTampilkan 13 atribut turunan
variantIdstringwajibformat: uuid
storeIdstringwajibformat: uuid
storeNamestringwajibmarketplacestringwajibSalah satu dari:
tiktokshopeelazadatokopediaproductTitlestringwajibvariantNamestringwajibnullableskustringwajibnullablestockintegerwajibnullablepricestring (decimal)wajibnullableDecimal string with two fraction digits.
lastPushedStockintegerwajibnullablelastPushedAtstringwajibnullableformat: date-time
lastErrorstringwajibnullablelinkedAtstringwajibformat: date-time
movementsarray<InventoryMovement>wajibTampilkan 15 atribut turunan
idstringwajibformat: uuid
deltaintegerwajibreasonstringwajibSalah satu dari:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbatchIdstringwajibnullableShared by the lines and transfer legs of one stock document.
format: uuid
warehouseIdstringwajibformat: uuid
warehouseCodestringwajibunitCoststring (decimal)wajibnullableDecimal string with two fraction digits.
purchaseOrderIdstringwajibnullableformat: uuid
purchaseOrderNumberstringwajibnullablestocktakeIdstringwajibnullableformat: uuid
stocktakeNumberstringwajibnullableorderIdstringwajibnullableformat: uuid
externalOrderIdstringwajibnullablenotestringwajibnullablecreatedAtstringwajibformat: 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.
Scope:products:write
Path parameter
itemIdstringwajibformat: uuid
Request bodyapplication/json
namestringopsionalpanjang min 1 · panjang maks 200
safetyStockintegeropsionalmin 0 · maks 1000000
pricestring (decimal)opsionalnullableDecimal string with two fraction digits.
syncStockbooleanopsionalsyncPricebooleanopsional
Response200 · application/json
Updated item
idstringwajibformat: uuid
skustringwajibnamestringwajibstockintegerwajibSum over sellable warehouses.
onHandintegerwajibSum over all warehouses.
avgCoststring (decimal)wajibnullableMoving-average unit cost from receipts.
safetyStockintegerwajibavailableintegerwajibmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)wajibnullableDecimal string with two fraction digits.
currencystringwajibsyncStockbooleanwajibsyncPricebooleanwajiblinkCountintegerwajiberrorCountintegerwajibupdatedAtstringwajibformat: 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.
Scope:products:write
Path parameter
itemIdstringwajibformat: uuid
Request bodyapplication/json
modestringwajibSalah satu dari:
setdeltaquantityintegerwajibmin -1000000 · maks 1000000
warehouseIdstringopsionalDefaults to the default warehouse; set mode applies to that warehouse.
format: uuid
notestringopsionalpanjang maks 200
Response200 · application/json
Item after the change
idstringwajibformat: uuid
skustringwajibnamestringwajibstockintegerwajibSum over sellable warehouses.
onHandintegerwajibSum over all warehouses.
avgCoststring (decimal)wajibnullableMoving-average unit cost from receipts.
safetyStockintegerwajibavailableintegerwajibmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)wajibnullableDecimal string with two fraction digits.
currencystringwajibsyncStockbooleanwajibsyncPricebooleanwajiblinkCountintegerwajiberrorCountintegerwajibupdatedAtstringwajibformat: 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.
Scope:products:write
Path parameter
itemIdstringwajibformat: uuid
Request bodyapplication/json
variantIdstringwajibformat: uuid
Response200 · application/json
Item detail
idstringwajibformat: uuid
skustringwajibnamestringwajibstockintegerwajibSum over sellable warehouses.
onHandintegerwajibSum over all warehouses.
avgCoststring (decimal)wajibnullableMoving-average unit cost from receipts.
safetyStockintegerwajibavailableintegerwajibmax(0, stock - safetyStock); the quantity pushed to marketplaces.
pricestring (decimal)wajibnullableDecimal string with two fraction digits.
currencystringwajibsyncStockbooleanwajibsyncPricebooleanwajiblinkCountintegerwajiberrorCountintegerwajibupdatedAtstringwajibformat: date-time
warehousesarray<ItemWarehouseStock>wajibTampilkan 5 atribut turunan
warehouseIdstringwajibformat: uuid
codestringwajibnamestringwajibsellablebooleanwajibquantityintegerwajib
linksarray<InventoryLink>wajibTampilkan 13 atribut turunan
variantIdstringwajibformat: uuid
storeIdstringwajibformat: uuid
storeNamestringwajibmarketplacestringwajibSalah satu dari:
tiktokshopeelazadatokopediaproductTitlestringwajibvariantNamestringwajibnullableskustringwajibnullablestockintegerwajibnullablepricestring (decimal)wajibnullableDecimal string with two fraction digits.
lastPushedStockintegerwajibnullablelastPushedAtstringwajibnullableformat: date-time
lastErrorstringwajibnullablelinkedAtstringwajibformat: date-time
movementsarray<InventoryMovement>wajibTampilkan 15 atribut turunan
idstringwajibformat: uuid
deltaintegerwajibreasonstringwajibSalah satu dari:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbatchIdstringwajibnullableShared by the lines and transfer legs of one stock document.
format: uuid
warehouseIdstringwajibformat: uuid
warehouseCodestringwajibunitCoststring (decimal)wajibnullableDecimal string with two fraction digits.
purchaseOrderIdstringwajibnullableformat: uuid
purchaseOrderNumberstringwajibnullablestocktakeIdstringwajibnullableformat: uuid
stocktakeNumberstringwajibnullableorderIdstringwajibnullableformat: uuid
externalOrderIdstringwajibnullablenotestringwajibnullablecreatedAtstringwajibformat: 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.
Scope:products:write
Path parameter
itemIdstringwajibformat: uuid
variantIdstringwajibformat: uuid
Response204
Unlinked
Tidak ada 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.
Scope:products:write
Path parameter
itemIdstringwajibformat: uuid
Response202
Queued
Tidak ada 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.
Scope:products:read
Query parameter
qstringopsionalpanjang maks 100
Response200 · application/json
Variants
itemsarray<MarketplaceVariant>wajibTampilkan 9 atribut turunan
variantIdstringwajibformat: uuid
storeIdstringwajibformat: uuid
storeNamestringwajibmarketplacestringwajibSalah satu dari:
tiktokshopeelazadatokopediaproductTitlestringwajibvariantNamestringwajibnullableskustringwajibnullablestockintegerwajibnullablepricestring (decimal)wajibnullableDecimal 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.
Scope:products:read
Query parameter
archivedbooleanopsional
Response200 · application/json
OK
itemsarray<Warehouse>wajibTampilkan 12 atribut turunan
receivesReturnsbooleanwajibReturned goods are restocked here (e.g. for inspection); otherwise into the order's warehouse.
idstringwajibformat: uuid
codestringwajibnamestringwajibaddressstringwajibnullablesellablebooleanwajibisDefaultbooleanwajibarchivedbooleanwajibitemCountintegerwajibItems with non-zero quantity.
onHandintegerwajibstoreCountintegerwajibStores whose orders deduct from this warehouse.
createdAtstringwajibformat: 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.
Scope:products:read
Path parameter
warehouseIdstringwajibformat: uuid
Query parameter
qstringopsionalpanjang maks 100
nonZerobooleanopsional
Response200 · application/json
OK
itemsarray<WarehouseStockRow>wajibTampilkan 5 atribut turunan
itemIdstringwajibformat: uuid
skustringwajibnamestringwajibquantityintegerwajibavgCoststring (decimal)wajibnullableDecimal 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.
Scope:products:write
Request bodyapplication/json
typestringwajibSalah satu dari:
receiveissuetransferwarehouseIdstringwajibDestination for receive, source for issue and transfer.
format: uuid
toWarehouseIdstringopsionalRequired for transfer.
format: uuid
notestringopsionalpanjang maks 200
linesarray<object>wajibitem min 1 · item maks 200
Tampilkan 3 atribut turunan
itemIdstringwajibformat: uuid
quantityintegerwajibmin 1 · maks 1000000
unitCoststring (decimal)opsionalReceive only; updates the item's average cost.
Response201 · application/json
OK
batchIdstringwajibformat: uuid
movementsintegerwajib
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.
Scope:products:read
Query parameter
warehouseIdstringopsionalformat: uuid
itemIdstringopsionalformat: uuid
reasonMovementReasonopsionalSalah satu dari:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbeforestringopsionalCursor; returns movements older than this movement id.
format: uuid
limitintegeropsionalmin 1 · maks 500
Response200 · application/json
OK
itemsarray<StockLedgerEntry>wajibTampilkan 18 atribut turunan
idstringwajibformat: uuid
deltaintegerwajibreasonstringwajibSalah satu dari:
adjustsetordercancelreceiveissuetransfer_intransfer_outstocktakereturnbatchIdstringwajibnullableShared by the lines and transfer legs of one stock document.
format: uuid
warehouseIdstringwajibformat: uuid
warehouseCodestringwajibunitCoststring (decimal)wajibnullableDecimal string with two fraction digits.
purchaseOrderIdstringwajibnullableformat: uuid
purchaseOrderNumberstringwajibnullablestocktakeIdstringwajibnullableformat: uuid
stocktakeNumberstringwajibnullableorderIdstringwajibnullableformat: uuid
externalOrderIdstringwajibnullablenotestringwajibnullablecreatedAtstringwajibformat: date-time
itemIdstringwajibformat: uuid
skustringwajibitemNamestringwajib
curl "https://api.comnethub.app/v1/inventory/movements?limit=20" \
-H "Authorization: Bearer $THECOMNET_API_KEY"