Supplier accounts expected to send a statement every month (any role)
GET
/statements/expectations
const url = 'https://api.invogi.com/v1/statements/expectations?include_ended=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?include_ended=false' \ --header 'Authorization: Bearer <token>'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_ended
boolean
Also periods that have ended
Responses
Section titled “Responses”Expectations
Media typeapplication/json
object
items
Array<object>
object
id
string format: uuid
supplier
object
id
string format: uuid
name
string
company
object
id
string format: uuid
name
string | null
currency
string | null
entityScope
A company id
string
currencyScope
A currency code
string
scopeLabel
string | null
cadence
string
firstMonth
First month expected (inclusive)
string
untilMonth
First month no longer expected (exclusive); null while open
string | null
createdAt
string format: date-time
updatedAt
string format: date-time
Example
{ "items": [ { "cadence": "MONTHLY" } ]}