QuickBooks-V3-PHP-SDK icon indicating copy to clipboard operation
QuickBooks-V3-PHP-SDK copied to clipboard

Create a new Vendor, empty data returned

Open jplevene opened this issue 2 years ago • 3 comments

When I post a NEW vendor with the following code:

$contactObj = Vendor::create($contact_json);
$result = $dataService->Add($contactObj);

The vendor is created in the QuickBooks address book (no problems there), however $result is an empty object/array on success, basically it returns no data. The similar code works fine for a customer, it is only new vendors that I get the issue.

I am running the latest SDK using Composer, and minor version 63 (happened on 65 as well)

jplevene avatar Mar 04 '23 13:03 jplevene

Same issue here - most frustrating!

nuphunk avatar Mar 07 '23 15:03 nuphunk

I tried the sample in https://github.com/intuit/QuickBooks-V3-PHP-SDK/blob/master/src/_Samples/CreateVendor.php and was able to get the results in $resultingObj

sujitharamadass avatar Aug 03 '23 05:08 sujitharamadass

Vendor::create should throw an exception but for some reason it does not. Check the last error by calling the getLastError method of the DataService class. It helped me with troubleshooting this error. In my case I received an error which says "The name supplied already exists".

dmytroderyshspd avatar Apr 09 '24 11:04 dmytroderyshspd