import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const buildAssembly = await conductor.qbd.buildAssemblies.retrieve('123ABC-1234567890', {
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(buildAssembly.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_build_assembly",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"inventoryAssemblyItem": {
"id": "80000001-1234567890",
"fullName": "Inventory Assembly Item"
},
"inventorySite": {
"id": "80000001-1234567890",
"fullName": "Main Warehouse"
},
"inventorySiteLocation": {
"id": "80000001-1234567890",
"fullName": "Aisle 3, Shelf B"
},
"serialNumber": "SN1234567890",
"lotNumber": "LOT2023-001",
"expirationDate": "2025-12-31",
"transactionDate": "2021-10-01",
"refNumber": "BUILD-1234",
"memo": "Assembled 25 units of Model ABC-123 Office Chair",
"isPending": false,
"quantityToBuild": 7,
"quantityCanBuild": 5,
"quantityOnHand": 150,
"quantityOnSalesOrder": 10,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"lines": [
{
"item": {
"id": "80000001-1234567890",
"fullName": "Widget A"
},
"inventorySite": {
"id": "80000001-1234567890",
"fullName": "Main Warehouse"
},
"inventorySiteLocation": {
"id": "80000001-1234567890",
"fullName": "Aisle 3, Shelf B"
},
"serialNumber": "SN1234567890",
"lotNumber": "LOT2023-001",
"expirationDate": "2025-12-31",
"description": "Wood screws, 2-inch, stainless steel",
"quantityOnHand": 150,
"quantityNeeded": 3
}
],
"customFields": [
{
"ownerId": "0",
"name": "Customer Rating",
"type": "string_1024_type",
"value": "Premium"
}
]
}
Retrieves a build assembly by ID.
import Conductor from 'conductor-node';
const conductor = new Conductor({
apiKey: 'My API Key',
});
const buildAssembly = await conductor.qbd.buildAssemblies.retrieve('123ABC-1234567890', {
conductorEndUserId: 'end_usr_1234567abcdefg',
});
console.log(buildAssembly.id);
{
"id": "123ABC-1234567890",
"objectType": "qbd_build_assembly",
"createdAt": "2021-10-01T12:34:56-05:00",
"updatedAt": "2021-10-01T15:45:30-05:00",
"revisionNumber": "1721172183",
"inventoryAssemblyItem": {
"id": "80000001-1234567890",
"fullName": "Inventory Assembly Item"
},
"inventorySite": {
"id": "80000001-1234567890",
"fullName": "Main Warehouse"
},
"inventorySiteLocation": {
"id": "80000001-1234567890",
"fullName": "Aisle 3, Shelf B"
},
"serialNumber": "SN1234567890",
"lotNumber": "LOT2023-001",
"expirationDate": "2025-12-31",
"transactionDate": "2021-10-01",
"refNumber": "BUILD-1234",
"memo": "Assembled 25 units of Model ABC-123 Office Chair",
"isPending": false,
"quantityToBuild": 7,
"quantityCanBuild": 5,
"quantityOnHand": 150,
"quantityOnSalesOrder": 10,
"externalId": "12345678-abcd-1234-abcd-1234567890ab",
"lines": [
{
"item": {
"id": "80000001-1234567890",
"fullName": "Widget A"
},
"inventorySite": {
"id": "80000001-1234567890",
"fullName": "Main Warehouse"
},
"inventorySiteLocation": {
"id": "80000001-1234567890",
"fullName": "Aisle 3, Shelf B"
},
"serialNumber": "SN1234567890",
"lotNumber": "LOT2023-001",
"expirationDate": "2025-12-31",
"description": "Wood screws, 2-inch, stainless steel",
"quantityOnHand": 150,
"quantityNeeded": 3
}
],
"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 build assembly to retrieve.
"123ABC-1234567890"
Returns the specified build assembly.
The response is of type object
.