Skip to content

[Bug]: Invoice > List status filter not working as expected #19

@tiagof

Description

@tiagof

What happened?

When listing invoices and filtering by status, the status final is not accepted, instead to get only invoices in with status="Final"we must use the value sent in the status filter (query parameter)

Possible Invoice statuses are
draft, settled, deleted, canceled, final

Possible values for the status query parameter in the Invoices > List endpoint
draft, settled, canceled, second_copy, sent.

Get da invoice:

curl --request GET
--url 'https://integrislda.app.invoicexpress.com/invoices/188888315.json?api_key=be4axxxxxxxxxxxxxxxxxxxxxxxxx'
--header 'accept: application/json'
--header 'content-type: application/json'

{"invoice":{"id":188888315,"status":"final","archived":false,"....}}

List, filtrando o status por "final", obtemos nada:

curl --request GET
--url 'https://integrislda.app.invoicexpress.com/invoices.json?api_key=be4xxxxxxxxxxxxxxxxxxxxxxxxx&status%5B%5D= final '
--header 'accept: application/json'
--header 'content-type: application/json'

{"invoices":[],"pagination":{"total_entries":0,"current_page":1,"total_pages":0,"per_page":10}

List, filtrando o status por "sent", obtemos as "final":

curl --request GET
--url 'https://integrislda.app.invoicexpress.com/invoices.json?api_key=be4dxxxxxxxxxxxxxxxxxxxxxxxxx&status%5B%5D= sent'
--header 'accept: application/json'
--header 'content-type: application/json'

{"invoices":[{"id":188888315,"status":"final","archived":false,"type":"Invoice",.......,"pagination":{"total_entries":5,"current_page":1,"total_pages":1,"per_page":10}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions