Change monthly statement expectations (ANALYST+, dashboard user)
const url = 'https://api.invogi.com/v1/statements/expectations';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"changes":[{"supplierId":"6a1f9c1e-2b3c-4d5e-8f90-1a2b3c4d5e6f","companyId":null,"currency":null,"enabled":true,"month":"2026-11"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.invogi.com/v1/statements/expectations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "changes": [ { "supplierId": "6a1f9c1e-2b3c-4d5e-8f90-1a2b3c4d5e6f", "companyId": null, "currency": null, "enabled": true, "month": "2026-11" } ] }'Effective-dated, at most 200 changes. Enabling from a month opens a period from it (first month inclusive), joining a period it overlaps or touches. Disabling from a month ends the open period there (that month exclusive), so earlier months keep their worklist. Repeating a change is UNCHANGED. One transaction; audited.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
The legal entity the account is with; null when not tied to one
For a supplier that sends one statement per currency; null for any
Enabling: the first month expected. Disabling: the first month no longer expected.
Example
{ "changes": [ { "supplierId": "6a1f9c1e-2b3c-4d5e-8f90-1a2b3c4d5e6f", "companyId": null, "currency": null, "enabled": true, "month": "2026-11" } ]}Responses
Section titled “Responses”What each change did
object
object
Example
{ "results": [ { "result": "CREATED" } ]}Invalid request
API key lacks required scope/role
Resource not found
Conflicting idempotency key or resource processing state