is there a way to list available invoice status va...
# ask-stanley-ai
l
is there a way to list available invoice status values through the rest API?
c
AI generated answer (using internal Slack threads):
Based on the conversations provided, it appears that there isn't a direct way to list available invoice status values through the REST API. However, you can filter invoices by status using the
search.Operator.NONEOF
operator as shown in the second conversation. Here is the code snippet provided in the conversation:
Copy code
{
    name: 'status',
    operator: search.Operator.NONEOF,
    values: ['paidInFull', ]
},
This code snippet is used to filter out invoices that are 'paidInFull'. You can replace 'paidInFull' with any other status value you want to exclude from the results. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.816927731
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806322336
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803883314
Please provide your feedback on this answer.