"Line": [
// 1. Standard Product
{
"Qty": 5,
"type": "SalesItemLineDetail",
"Amount": 18000,
"ItemRef": "1010000031",
"UnitPrice": 3600,
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": { "value": "1010000031" },
"UnitPrice": 3600,
"Qty": 5
},
"Description": "Ergonomic Chair"
},
// 2. Product Bundle
{
"Qty": 6,
"type": "GroupLineDetail",
"Amount": 9000,
"GroupItemRef": "1010000072",
"UnitPrice": 1500,
"DetailType": "GroupLineDetail",
"GroupLineDetail": {
"GroupItemRef": { "value": "1010000072" },
"Quantity": 6
},
"Description": "Office Starter Bundle"
},
// 3. Standard Product
{
"Qty": 6,
"type": "SalesItemLineDetail",
"Amount": 600,
"ItemRef": "1010000061",
"UnitPrice": 100,
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": { "value": "1010000061" },
"UnitPrice": 100,
"Qty": 6
},
"Description": "Desk Lamp"
},
// 4. Standard Product
{
"Qty": 5,
"type": "SalesItemLineDetail",
"Amount": 3000,
"ItemRef": "1010000022",
"UnitPrice": 600,
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": { "value": "1010000022" },
"UnitPrice": 600,
"Qty": 5
},
"Description": "Monitor Stand"
},
// 5. High-Value Product
{
"Qty": 1,
"type": "SalesItemLineDetail",
"Amount": 8000,
"ItemRef": "1010000052",
"UnitPrice": 8000,
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": { "value": "1010000052" },
"UnitPrice": 8000,
"Qty": 1
},
"Description": "4K Conference Monitor"
},
// 6. Product Bundle
{
"Qty": 3,
"type": "GroupLineDetail",
"Amount": 3900,
"GroupItemRef": "85",
"UnitPrice": 1300,
"DetailType": "GroupLineDetail",
"GroupLineDetail": {
"GroupItemRef": { "value": "85" },
"Quantity": 3
},
"Description": "Tech Accessories Pack"
},
// 7. Product Bundle
{
"Qty": 6,
"type": "GroupLineDetail",
"Amount": 10800,
"GroupItemRef": "1010000023",
"UnitPrice": 1800,
"DetailType": "GroupLineDetail",
"GroupLineDetail": {
"GroupItemRef": { "value": "1010000023" },
"Quantity": 6
},
"Description": "Premium Workspace Bundle"
},
// 8. Standard Product
{
"Qty": 3,
"type": "SalesItemLineDetail",
"Amount": 1200,
"ItemRef": "1010000011",
"UnitPrice": 400,
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": { "value": "1010000011" },
"UnitPrice": 400,
"Qty": 3
},
"Description": "Wireless Mouse"
},
// 9. Standard Product
{
"Qty": 3,
"type": "SalesItemLineDetail",
"Amount": 1800,
"ItemRef": "1010000081",
"UnitPrice": 600,
"DetailType": "SalesItemLineDetail",
"SalesItemLineDetail": {
"ItemRef": { "value": "1010000081" },
"UnitPrice": 600,
"Qty": 3
},
"Description": "Mechanical Keyboard"
}
]
This is the data structure of a line when creating an invoice in QuickBooks. It makes invoices in QuickBooks properly, but for GroupLineItem or Bundle in QuickBooks, the quantity is missing in the invoice, which is why the pricing is also wrong. How to fix it?