intuit / QuickBooks-V3-PHP-SDK

Official PHP SDK for QuickBooks REST API v3.0: https://developer.intuit.com/
Apache License 2.0
241 stars 240 forks source link

Error creating invoice with "DeliveryInfo" #504

Open russellgilbert opened 10 months ago

russellgilbert commented 10 months ago

I'm trying to create an invoice with "DeliveryInfo" set to "Email", as is described in the API docs. This is the line I'm adding to my code that causes an error:

$invoice["DeliveryInfo"] = ["DeliveryType" => "Email"];

And I get the error:

PHP Fatal error: require_once(): Failed opening required '/home/russellg/www_rgdev/html/portal/QuickBooksOnline\API\Data\IPPDeliveryInfo.php'

When I search the PHP SDK, I don't see IPPDeliveryInfo, either as a php file or even mentioned in any of the other php files.

Any ideas? Thanks!

Russell

russellgilbert commented 10 months ago

Update: I just realized that I missed the words "read only" in the API docs. Oops.

The value I was looking for is actually "EmailStatus", which I'm now setting to "NeedToSend".

Interesting though, the error message I got, which seemed to make up a php file that doesn't exist. Maybe it could be changed to report that the field is read only and can't be set in an invoice.

Thanks, Russell