Skip to content

Assign the supplier (ANALYST+, dashboard user)

PATCH
/bank-change-notices/{noticeId}
curl --request PATCH \
--url https://api.invogi.com/v1/bank-change-notices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Open requests only. Recomputes the signals for the new supplier.

noticeId
required
string format: uuid
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
supplierId
required
string format: uuid

Example generated

{
"supplierId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

The request

Media typeapplication/json
object
id
string format: uuid
status
string
Allowed values: OPEN VERIFIED REJECTED DISMISSED
receivedAt
string format: date-time
fromAddress

Who sent the email to Invogi

string
sender
object
address

Who the request claims to come from; null when a colleague forwarded it without the original header

string | null
name
string | null
source
string
Allowed values: HEADER FORWARDED
replyToAddress
string | null
subject
string | null
supplier
object
id
string format: uuid
name
string
supplierMatchMethod
string | null
Allowed values: CONTACT_EMAIL CONTACT_DOMAIN NAME MANUAL
claimedSupplierName

Supplier name as printed (AI-read

string | null
effectiveDate
string | null format: date
accounts
Array<object>
object
id
string format: uuid
kind
string
Allowed values: UK IBAN
display

Masked, e.g. GB29 •••• 6819 or 60-16-13 · ••••6819

string
countryCode
string | null
role
string
Allowed values: NEW OLD UNSPECIFIED
reported
boolean
verified
boolean
addedManually

Typed in by a person from the request rather than read from the email

boolean
enteredByYou

The signed-in user entered this account by hand

boolean
requiresIndependentVerification

True when the signed-in user entered this account by hand and the workspace requires a different admin or owner to verify it

boolean
verifiedByOnePerson

Whoever verified the request had also entered this account by hand

boolean
signals
Array<object>
object
code
string
Allowed values: NO_ACCOUNT_FOUND ATTACHMENT_NOT_READ TEXT_TRUNCATED ACCOUNTS_TRUNCATED FREE_MAIL_SENDER LOOKALIKE_DOMAIN REPLY_TO_DIFFERS SENDER_NOT_KNOWN_CONTACT ACCOUNT_COUNTRY_DIFFERS ACCOUNT_ALREADY_VERIFIED ACCOUNT_USED_BY_OTHER_SUPPLIER ACCOUNT_PREVIOUSLY_REPORTED SENDER_AUTH_FAILED SENDER_AUTH_NOT_PUBLISHED FOUND_IN_OTHER_INBOX AI_NOT_USED AI_NOT_BANK_CHANGE
detail
string
evidence
object
key
additional properties
any
extractionMethods
Array<string>
Allowed values: TEXT_PATTERNS CLOUDFLARE_AI_JSON
decision
object
decidedAt
string format: date-time
decidedByUserId
string | null format: uuid
note
string | null
text

The email text and PDF text that was read (first 32,000 characters). Unmasked only for a signed-in OWNER or ADMIN; otherwise IBANs and labelled account numbers are masked to the last four

string
textMasked
boolean
relatedNotices

Other requests naming any of these accounts (a duplicate forward, a repeat attempt, an account decided before), newest first, up to 10

Array<object>
object
id
string format: uuid
status
string
Allowed values: OPEN VERIFIED REJECTED DISMISSED
receivedAt
string format: date-time
senderAddress
string | null
subject

Account numbers masked

string | null
invoices

Invoices paying to these accounts (or still held for one), newest first, up to 20, with their current decision. They are re-decided whenever the request is recorded or decided.

Array<object>
object
id
string format: uuid
invoiceNumber
string
issueDate
string format: date
grossAmount
string
currency
string
supplierId
string | null format: uuid
decision
string | null
Allowed values: PASS REVIEW BLOCK

Example

{
"status": "OPEN",
"sender": {
"source": "HEADER"
},
"supplierMatchMethod": "CONTACT_EMAIL",
"accounts": [
{
"kind": "UK",
"role": "NEW"
}
],
"signals": [
{
"code": "NO_ACCOUNT_FOUND"
}
],
"extractionMethods": [
"TEXT_PATTERNS"
],
"relatedNotices": [
{
"status": "OPEN"
}
],
"invoices": [
{
"decision": "PASS"
}
]
}

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"
}
}