ej2 / python-quickbooks

A Python library for accessing the Quickbooks API.
MIT License
401 stars 193 forks source link

Send the include=invoiceLink attribute when querying an invoice - so that an invoiceLink is returned. #287

Closed craig-waldman closed 1 year ago

craig-waldman commented 1 year ago

When querying an invoice, it is necessary to add a "include=invoiceLink" attribute to the GET This appears to be in the same fashion as specifying a minorversion. (it may even be dependent)

I'm not sure if this lib sends a minor version , or support sending additional flags like: invoiceLink

ej2 commented 1 year ago

I check the code and found an undocumented feature that handles this. First make sure you are using minorversion 36 or greater:

client = QuickBooks(
    auth_client=auth_client,
    refresh_token='REFRESH_TOKEN',
    company_id='COMPANY_ID',
    minorversion=59
)

Then add the following to your invoice: invoice.invoice_link = true

I will add this to the documentation.