Skip to content

Non-existent includeArchived field for Invoices #404

@CodeSmith32

Description

@CodeSmith32

SDK you're using (please complete the following information):

  • Version [No idea. Update your issue template to specify where version is found. Regardless, I still see this issue in the 10.3.0 codebase.]

Describe the bug
The Accounting API getInvoices method offers an $include_archived option which adds a query param, includeArchived set to either true or false. What is this? The Xero API documents an includeArchived field for Contacts but there's no such documented field for invoices. It is very misleading, and appears to have absolutely no effect. It does not filter out deleted invoices, and there is no 'archive' status for invoices.

The code for this unknown field appears in AccountingApi.php on line 34571:
https://github.com/XeroAPI/xero-php-oauth2/blob/master/lib/Api/AccountingApi.php

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