Skip to content

Read a price PDF locally and preview information for sharing

POST
/workflow-assistance/price-document
curl --request POST \
--url https://api.invogi.com/v1/workflow-assistance/price-document \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@file \
--form supplierId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--form companyId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0

Signed-in dashboard Analyst, Admin or Owner only; API keys are refused. No AI output makes a financial decision. Multipart readable-text PDF up to 2 MB, ten pages and 24,000 text characters. No AI call or OCR. At most twenty upload previews per workspace per hour. Returns PRICE_SCHEDULE input with an owned sourceId and page locators. Supplier/company scope is chosen explicitly; omitted companyId means all companies. Binary stored privately in R2; unapplied source expires after one day.

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 typemultipart/form-data
object
file
required
string format: binary
supplierId
required
string format: uuid
companyId
string format: uuid

Canonical result

Media typeapplication/json
object
version
required
string
Allowed value: invogi.workflow-assistance.v1
input
required
One of: discriminator: task
object
task
required
string
Allowed value: SUPPLIER_REPLY
caseId
required
string format: uuid
sourceText
required
string
>= 1 characters <= 24000 characters
supplierId
string
companyId
string
sourceId
string
proposalId
string
checkId
string
month
string
entityScope
string
currencyScope
string
from
string
to
string
query
string
fingerprint
required
string
>= 64 characters <= 64 characters
sources
required
Array<object>
<= 80 items
object
id
required
string
text
required
string
page
required
Any of:
integer
>= 1
facts
required
Array<object>
object
id
required
string
label
required
string
value
required
string
href
required
Any of:
string
notices
required
Array<string>
processingEnabled
required
boolean
id
string
content
Any of:
null
status
string
Allowed values: FAILED READY SOURCE GENERATING APPLIED
stale
boolean
createdAt
string
expiresAt
string
resultId
null | string
filterInterpretation
object
href
required
null | string
unresolved
required
Array<string>

Example

{
"version": "invogi.workflow-assistance.v1",
"input": {
"task": "SUPPLIER_REPLY"
},
"content": {
"filters": {
"status": "open",
"severity": [
"INFO"
],
"disposition": [
"OPEN"
],
"assignee": "all",
"sla": "overdue",
"view": "recovery_candidates"
}
},
"status": "FAILED"
}

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

Missing or invalid API key

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

Request-rate or customer-usage limit exceeded; inspect the stable error code

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