node-quickbooks icon indicating copy to clipboard operation
node-quickbooks copied to clipboard

`findItems` and `getItem` methods don't return `PrefVendorRef` value

Open khmelevskii opened this issue 5 years ago • 1 comments

Can you please help me to get PrefVendorRef item param from API?

khmelevskii avatar Apr 18 '19 13:04 khmelevskii

@khmelevskii not sure if you figured this out, but found that if you specify the minorversion when creating the QuickBooks object it gives you the fields.

qbo = new QuickBooks(consumerKey,
        consumerSecret,
        o.token.access_token,
        false,
        realmId,
        qboSandbox, 
        false,
        55,
         ^---- You can determine this version to use from the [QB API Explorer](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/most-commonly-used/item#query-an-item) 
        Look at GET /v3/company/123145821595227/item/<itemId>?minorversion=55 <--- This is the current minorversion on the api
        '2.0',
        o.token.refresh_token);

chrismader avatar Feb 21 '21 00:02 chrismader