Skip to content

Import a proposed payment run (ANALYST+, dashboard user)

POST
/payment-proposals
curl --request POST \
--url https://api.invogi.com/v1/payment-proposals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "Friday supplier run", "companyId": "2c1d0e9f-8a7b-4c6d-9e5f-4a3b2c1d0e9f", "plannedPaymentDate": "2026-11-27", "rows": [ { "sourceRowNumber": 2, "invoiceNumber": "INV-1042", "supplierTaxId": "GB123456789", "amount": "1250.00", "currency": "GBP" }, { "sourceRowNumber": 3, "invoiceExternalId": "BILL-88213", "amount": "400.00", "currency": "GBP" } ] }'

Docs/48 Feature B. The rows someone intends to pay, as canonical invoice allocations parsed from their file (the file itself is not sent or stored). One legal entity per proposal; at most 2,000 rows. Invalid rows reject the whole request for correction. A proposal is immutable: a corrected file is a new proposal with predecessorId. Creating a proposal never records a payment.

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.

Idempotency-Key
string

A retry with the same key and body returns the same proposal; a different body is 409

Media typeapplication/json
object
name
required
string
>= 1 characters <= 200 characters
companyId
required
string format: uuid
plannedPaymentDate
required
string format: date
providerBatchReference
string
<= 200 characters
sourceFilename
string
<= 255 characters
predecessorId
string format: uuid
rows
required
Array<object>
>= 1 items <= 2000 items

One invoice allocation. Needs invoiceExternalId, or invoiceNumber with supplierName, supplierTaxId or supplierId. A supplier total must be split into the invoices it pays.

object
sourceRowNumber
required
integer
>= 1
invoiceExternalId

The invoice’s ID in your system (external_id)

string
<= 200 characters
invoiceNumber
string
<= 200 characters
supplierName
string
<= 300 characters
supplierTaxId
string
<= 64 characters
supplierId

Chosen when a supplier name is ambiguous

string format: uuid
amount
required

Positive, with no more significant decimal places than the currency has (EUR 2, JPY 0, KWD 3; trailing zeros are fine). Refused, never rounded: a partial payment is kept exactly as proposed

string
/^\d{1,18}(\.\d{1,6})?$/
currency
required

ISO 4217; must be the invoice’s currency

string
paymentReference
string
<= 200 characters
id
string
dataProfile

Optional PAYMENT_PROPOSAL profile. A proposal profile only ever creates proposals; other kinds are refused before any write.

object
profileId
required
string format: uuid
revisionId
required
string format: uuid
clientDiagnostics

Counts the browser observed, stored labelled as client-reported

object
inputRowCount
integer
rejectedRowCount
integer
warningRowCount
integer
unusedColumnCount
integer

Example

{
"name": "Friday supplier run",
"companyId": "2c1d0e9f-8a7b-4c6d-9e5f-4a3b2c1d0e9f",
"plannedPaymentDate": "2026-11-27",
"rows": [
{
"sourceRowNumber": 2,
"invoiceNumber": "INV-1042",
"supplierTaxId": "GB123456789",
"amount": "1250.00",
"currency": "GBP"
},
{
"sourceRowNumber": 3,
"invoiceExternalId": "BILL-88213",
"amount": "400.00",
"currency": "GBP"
}
]
}

The proposal

Media typeapplication/json
object
id
string format: uuid
name
string
company
object
id
string format: uuid
name
string
plannedPaymentDate
string format: date
providerBatchReference

Provenance only

string | null
sourceFilename

Display only; the file is not stored

string | null
rowCount
integer
predecessorId
string | null format: uuid
successorId

The corrected proposal that replaced this one

string | null format: uuid
amounts

Proposed total per currency (never added across currencies)

object
key
additional properties
string
latestCheck
One of:
null
createdAt
string format: date-time
checks
Array<object>
object
id
required
string
checkedAt
required
string format: date-time
ruleVersion
required
string
riskEngineVersion
required
string
rowCount
required
number
summary
required
object
rows
required
number
byCategory
required
object
REVIEW
required
number
BLOCK
required
number
UNCHECKED
required
number
NO_OPEN_EXCEPTIONS
required
number
amountsByCategory
required
object
REVIEW
required
object
key
additional properties
string
BLOCK
required
object
key
additional properties
string
UNCHECKED
required
object
key
additional properties
string
NO_OPEN_EXCEPTIONS
required
object
key
additional properties
string
amounts
required
object
key
additional properties
string
reasonCounts
required
object
EXTERNAL_ID_NOT_FOUND
number
INVOICE_NOT_FOUND
number
SUPPLIER_NOT_FOUND
number
SUPPLIER_AMBIGUOUS
number
SUPPLIER_REQUIRED
number
INVOICE_AMBIGUOUS
number
IDENTIFIER_CONFLICT
number
ENTITY_MISMATCH
number
CURRENCY_MISMATCH
number
ANALYSIS_MISSING
number
POLICY_CHANGED
number
INVOICE_CHANGED_SINCE_ANALYSIS
number
DECISION_BLOCK
number
DECISION_REVIEW
number
OPEN_FINDINGS
number
REPEATED_ALLOCATION
number
ALLOCATION_EXCEEDS_INVOICE
number
IN_OTHER_PROPOSAL
number
matchedRows
required
number
durationMs
required
number
rows
object
items
required
Array<object>
object
id
required
string
sourceRowNumber
required
number
invoiceExternalId
required
null | string
invoiceNumber
required
null | string
supplierName
required
null | string
supplierTaxId
required
null | string
supplierId
required
null | string
amount
required
string
currency
required
string
paymentReference
required
null | string
total
required
number
limit
required
number
offset
required
number
dataProfile
object
bindingId
required
string
profileId
required
string
revisionId
required
string
revisionNumber
required
number
name
required
string

Example

{
"latestCheck": {
"ruleVersion": "proposal-check-1.0.0"
}
}

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