You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought I can get e.g. invoices of two projects by global filters:
/api/v1/invoices?project_id=123,124
but I only geht the result of the first id. same for payments:
/api/v1/invoices/payments?invoice_id=567,568
what am I doing wrong?
The text was updated successfully, but these errors were encountered:
Hi @dddesign you cannot retrieve both invoices with one query in this regard. You would need to make 2 calls. The param project_id expects a single project id only. Or did you read that somewhere that this should be possible?
Global filters only apply to the filters ids and updated_after. We'll look into this for our next API update cycle to make project_id and invoice_id accept multiple ids. We always mark it in the documentation if you can supply multiple IDs, in your example we only show one ID on purpose.
nethad
changed the title
how is Global Filter working?
Multiple IDs for project_id (on invoice) and invoice_id (on invoice payments) filter
Apr 5, 2023
I thought I can get e.g. invoices of two projects by global filters:
/api/v1/invoices?project_id=123,124
but I only geht the result of the first id. same for payments:
/api/v1/invoices/payments?invoice_id=567,568
what am I doing wrong?
The text was updated successfully, but these errors were encountered: