Skip to content

List newest payment import batches for the workspace (any role)

GET
/payments/imports
curl --request GET \
--url 'https://api.invogi.com/v1/payments/imports?limit=50&offset=0' \
--header 'Authorization: Bearer <token>'
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.

limit
integer
default: 50 >= 1 <= 100
offset
integer
0 <= 1000000

Tenant-scoped payment import history; no raw bank file or local path is exposed

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
actorType
required
string
Allowed values: USER API_KEY
actorUserId
required
string | null format: uuid
sourceName
required

Optional sanitized base filename; never a local path.

string | null
<= 255 characters
source
required

What kind of file the rows came from. AP_PAYMENT_EXPORT (the default): an AP or ERP payment report, where every REFUND row is a supplier refund. BANK_STATEMENT: a bank account export, where a REFUND (credit) row is kept as a supplier refund only when it resolves to a known supplier by invoice, tax ID or exact name. A credit that matches an earlier payment to that supplier (same amount and currency, paid within the previous 14 days, explicit return/rejection wording, and containing the earlier payment’s non-empty reference) is counted as a returned payment instead and sets that payment’s returnedOn, which excludes it from later duplicate-payment checks. A credit matching a payment in an undismissed duplicate-payment finding or a recovery case is kept as a supplier refund instead. Other credits are counted and not stored. BANK_STATEMENT rows are processed in date order, credits first on each date.

string
Allowed values: BANK_STATEMENT AP_PAYMENT_EXPORT
inputRowCount
required
integer
>= 1
paymentsImported
required
integer
refundsImported
required
integer
creditsIgnored
required
integer
returnedPayments
required
integer
recordsNeedingReview
required

Distinct imported payment records routed to review.

integer
coverage
required
object
linkedToInvoice
required
integer
linkedToSupplier
required
integer
provisionalPayee
required
integer
unmatched
required
integer
findingCounts
required
object
key
additional properties
integer
createdAt
required
string format: date-time
completedAt
required
string | null format: date-time
linkedRecords
object
payments
required
number
refunds
required
number
total
required
integer
limit
required
integer
>= 1 <= 100
offset
required
integer

Example

{
"items": [
{
"actorType": "USER",
"source": "BANK_STATEMENT"
}
]
}

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