Updates an existing inventory item.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const inventoryItem = await conductor.qbd.inventoryItems.update('80000001-1234567890', {
revisionNumber: '1721172183',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(inventoryItem.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_inventory_item",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Cabinet",
"fullName": "Products:Electronics:Widgets",
"barcode": "012345678905",
"isActive": true,
"class": {
"id": "80000001-1234567890",
"fullName": "Furniture"
},
"parent": {
"id": "80000001-1234567890",
"fullName": "Kitchen"
},
"sublevel": 1,
"sku": "MPN-123456",
"unitOfMeasureSet": {
"id": "80000001-1234567890",
"fullName": "Weight Units"
},
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"salesDescription": "High-quality steel bolts suitable for construction",
"salesPrice": "19.99",
"incomeAccount": {
"id": "80000001-1234567890",
"fullName": "Income:Product Sales"
},
"purchaseDescription": "Bulk purchase of steel bolts for inventory",
"purchaseCost": "15.75",
"purchaseTaxCode": {
"id": "80000001-1234567890",
"fullName": "GST"
},
"cogsAccount": {
"id": "80000001-1234567890",
"fullName": "Expenses:COGS"
},
"preferredVendor": {
"id": "80000001-1234567890",
"fullName": "Acme Supplies Ltd."
},
"assetAccount": {
"id": "80000001-1234567890",
"fullName": "Assets:Inventory"
},
"reorderPoint": 50,
"maximumQuantityOnHand": 200,
"quantityOnHand": 150,
"averageCost": "16.50",
"quantityOnPurchaseOrder": 10,
"quantityOnSalesOrder": 10,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
"end_usr_1234567abcdefg"
The QuickBooks-assigned unique identifier of the inventory item to update.
"80000001-1234567890"
Returns the updated inventory item.
The response is of type object
.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const inventoryItem = await conductor.qbd.inventoryItems.update('80000001-1234567890', {
revisionNumber: '1721172183',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(inventoryItem.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_inventory_item",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Cabinet",
"fullName": "Products:Electronics:Widgets",
"barcode": "012345678905",
"isActive": true,
"class": {
"id": "80000001-1234567890",
"fullName": "Furniture"
},
"parent": {
"id": "80000001-1234567890",
"fullName": "Kitchen"
},
"sublevel": 1,
"sku": "MPN-123456",
"unitOfMeasureSet": {
"id": "80000001-1234567890",
"fullName": "Weight Units"
},
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"salesDescription": "High-quality steel bolts suitable for construction",
"salesPrice": "19.99",
"incomeAccount": {
"id": "80000001-1234567890",
"fullName": "Income:Product Sales"
},
"purchaseDescription": "Bulk purchase of steel bolts for inventory",
"purchaseCost": "15.75",
"purchaseTaxCode": {
"id": "80000001-1234567890",
"fullName": "GST"
},
"cogsAccount": {
"id": "80000001-1234567890",
"fullName": "Expenses:COGS"
},
"preferredVendor": {
"id": "80000001-1234567890",
"fullName": "Acme Supplies Ltd."
},
"assetAccount": {
"id": "80000001-1234567890",
"fullName": "Assets:Inventory"
},
"reorderPoint": 50,
"maximumQuantityOnHand": 200,
"quantityOnHand": 150,
"averageCost": "16.50",
"quantityOnPurchaseOrder": 10,
"quantityOnSalesOrder": 10,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Updates an existing inventory item.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const inventoryItem = await conductor.qbd.inventoryItems.update('80000001-1234567890', {
revisionNumber: '1721172183',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(inventoryItem.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_inventory_item",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Cabinet",
"fullName": "Products:Electronics:Widgets",
"barcode": "012345678905",
"isActive": true,
"class": {
"id": "80000001-1234567890",
"fullName": "Furniture"
},
"parent": {
"id": "80000001-1234567890",
"fullName": "Kitchen"
},
"sublevel": 1,
"sku": "MPN-123456",
"unitOfMeasureSet": {
"id": "80000001-1234567890",
"fullName": "Weight Units"
},
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"salesDescription": "High-quality steel bolts suitable for construction",
"salesPrice": "19.99",
"incomeAccount": {
"id": "80000001-1234567890",
"fullName": "Income:Product Sales"
},
"purchaseDescription": "Bulk purchase of steel bolts for inventory",
"purchaseCost": "15.75",
"purchaseTaxCode": {
"id": "80000001-1234567890",
"fullName": "GST"
},
"cogsAccount": {
"id": "80000001-1234567890",
"fullName": "Expenses:COGS"
},
"preferredVendor": {
"id": "80000001-1234567890",
"fullName": "Acme Supplies Ltd."
},
"assetAccount": {
"id": "80000001-1234567890",
"fullName": "Assets:Inventory"
},
"reorderPoint": 50,
"maximumQuantityOnHand": 200,
"quantityOnHand": 150,
"averageCost": "16.50",
"quantityOnPurchaseOrder": 10,
"quantityOnSalesOrder": 10,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
"end_usr_1234567abcdefg"
The QuickBooks-assigned unique identifier of the inventory item to update.
"80000001-1234567890"
Returns the updated inventory item.
The response is of type object
.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
});
const inventoryItem = await conductor.qbd.inventoryItems.update('80000001-1234567890', {
revisionNumber: '1721172183',
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(inventoryItem.id);
{
"id": "80000001-1234567890",
"objectType": "qbd_inventory_item",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"name": "Cabinet",
"fullName": "Products:Electronics:Widgets",
"barcode": "012345678905",
"isActive": true,
"class": {
"id": "80000001-1234567890",
"fullName": "Furniture"
},
"parent": {
"id": "80000001-1234567890",
"fullName": "Kitchen"
},
"sublevel": 1,
"sku": "MPN-123456",
"unitOfMeasureSet": {
"id": "80000001-1234567890",
"fullName": "Weight Units"
},
"salesTaxCode": {
"id": "80000001-1234567890",
"fullName": "Non"
},
"salesDescription": "High-quality steel bolts suitable for construction",
"salesPrice": "19.99",
"incomeAccount": {
"id": "80000001-1234567890",
"fullName": "Income:Product Sales"
},
"purchaseDescription": "Bulk purchase of steel bolts for inventory",
"purchaseCost": "15.75",
"purchaseTaxCode": {
"id": "80000001-1234567890",
"fullName": "GST"
},
"cogsAccount": {
"id": "80000001-1234567890",
"fullName": "Expenses:COGS"
},
"preferredVendor": {
"id": "80000001-1234567890",
"fullName": "Acme Supplies Ltd."
},
"assetAccount": {
"id": "80000001-1234567890",
"fullName": "Assets:Inventory"
},
"reorderPoint": 50,
"maximumQuantityOnHand": 200,
"quantityOnHand": 150,
"averageCost": "16.50",
"quantityOnPurchaseOrder": 10,
"quantityOnSalesOrder": 10,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}