Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error creating invoice with "DeliveryInfo" #504

Open
russellgilbert opened this issue Oct 24, 2023 · 1 comment
Open

Error creating invoice with "DeliveryInfo" #504

russellgilbert opened this issue Oct 24, 2023 · 1 comment

Comments

@russellgilbert
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant