Skip to content

Change monthly statement expectations (ANALYST+, dashboard user)

PUT
/statements/expectations
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.

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.

Media typeapplication/json
object
changes
required
Array<object>
>= 1 items <= 200 items
object
supplierId
required
string format: uuid
companyId

The legal entity the account is with; null when not tied to one

string | null format: uuid
currency

For a supplier that sends one statement per currency; null for any

string | null
/^[A-Z]{3}$/
enabled
required
boolean
month
required

Enabling: the first month expected. Disabling: the first month no longer expected.

string
/^[0-9]{4}-(0[1-9]|1[0-2])$/

Example

{
"changes": [
{
"supplierId": "6a1f9c1e-2b3c-4d5e-8f90-1a2b3c4d5e6f",
"companyId": null,
"currency": null,
"enabled": true,
"month": "2026-11"
}
]
}

What each change did

Media typeapplication/json
object
results
Array<object>
object
supplierId
string format: uuid
entityScope
string
currencyScope
string
result
string
Allowed values: CREATED EXTENDED ENDED REMOVED UNCHANGED
expectationId
string | null format: uuid

Example

{
"results": [
{
"result": "CREATED"
}
]
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Resource not found

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Conflicting idempotency key or resource processing state

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}