Active suppliers not yet expected monthly, most spend first (any role)
GET
/statements/expectations/suggestions
const url = 'https://api.invogi.com/v1/statements/expectations/suggestions?include_expected=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.invogi.com/v1/statements/expectations/suggestions?include_expected=false' \ --header 'Authorization: Bearer <token>'Suppliers invoiced in the last year (spend in base currency) or holding an open ledger credit. Suggestions only; nothing is added until a person chooses. With include_expected, also includes suppliers with existing expectations for adding another account or re-enabling a period.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Query Parameters
Section titled “Query Parameters”include_expected
boolean
Include suppliers with existing expectations, allowing another company or currency account to be selected.
Responses
Section titled “Responses”Up to 100 suppliers
Media typeapplication/json
object
items
Array<object>
object
supplier
object
id
string format: uuid
name
string
spendBase
string | null
invoices
integer
openCredits
integer
Example generated
{ "items": [ { "supplier": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example" }, "spendBase": "example", "invoices": 1, "openCredits": 1 } ]}