Skip to content

SDK for Purchase Cash and Purchase Credit not working. #571

Description

@Soviet-CAS

🐛 Issue: SDK Unable to Retrieve Purchase Cash and Purchase Credit Transactions

Description
We are encountering an issue when using the QuickBooks Online SDK to query Purchase transactions. Specifically, both Purchase Cash and Purchase Credit transactions are not being returned as expected.

Steps to Reproduce

  1. Use the SDK to query Purchase transactions.

  2. Attempt to filter or retrieve:

    • Cash purchases (e.g., PaymentType = Cash)
    • Credit purchases (e.g., PaymentType = CreditCard or similar)
  3. Execute the query.

Expected Behavior
The SDK should return all Purchase transactions, including both:

  • Cash purchases
  • Credit purchases

Actual Behavior

  • No results are returned, or incomplete data is retrieved.
  • Filtering by PaymentType does not work as expected.

Sample Query Attempt

$q->where('PaymentType.value', 'Cash');

Environment

  • SDK Version: 6.2
  • Laravel Version: 12
  • PHP Version: ^8.2
  • QuickBooks Online API Version: 97
  • Region: US

Additional Context

  • The issue occurs even when Purchase transactions exist in QuickBooks.
  • Other entities can be queried successfully using the same SDK setup.

Questions

  • Is there a specific way to query Purchase transactions by payment type?
  • Are there known limitations or required fields for retrieving Cash vs Credit purchases?
  • Should a different entity or query structure be used?

Impact
This issue blocks the ability to properly sync or categorize purchase transactions based on payment method.


Please advise on the correct approach or any fixes for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions