Open DustinAPI opened 1 year ago
The API documentation says an item (product) can be set as non-taxable for US companies and my sandbox is US but the attribute seems to be ignored when creating an item .
` $item = [ 'Name' => $product->getName(), 'Sku' => $product->getId(), 'SubItem' => true, 'ParentRef' => [ 'value' => $this->itemCategory, ], 'Active' => true, 'FullyQualifiedName' => $product->getName(), 'Taxable' => false, 'UnitPrice' => $product->getPrice(), 'Type' => 'NonInventory', 'IncomeAccountRef' => [ 'value' => $this->depositToAccount['all'], ], 'PurchaseCost' => 0, 'TrackQtyOnHand' => false, 'domain' => 'QBO', 'sparse' => false, ];
$theResourceObj = Item::create($item); $resultingObj = $this->dataService->Add($theResourceObj);
`
The API documentation says an item (product) can be set as non-taxable for US companies and my sandbox is US but the attribute seems to be ignored when creating an item .
` $item = [ 'Name' => $product->getName(), 'Sku' => $product->getId(), 'SubItem' => true, 'ParentRef' => [ 'value' => $this->itemCategory, ], 'Active' => true, 'FullyQualifiedName' => $product->getName(), 'Taxable' => false, 'UnitPrice' => $product->getPrice(), 'Type' => 'NonInventory', 'IncomeAccountRef' => [ 'value' => $this->depositToAccount['all'], ], 'PurchaseCost' => 0, 'TrackQtyOnHand' => false, 'domain' => 'QBO', 'sparse' => false, ];
`