Skip to content

Get one payment import batch and its linked record counts (any role)

GET
/payments/imports/{batchId}
curl --request GET \
--url https://api.invogi.com/v1/payments/imports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
batchId
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.

Tenant-scoped payment import batch detail

Media typeapplication/json
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
required
object
payments
required
number
refunds
required
number
linkedRecords
required
object
payments
required

Payments stored by this import plus earlier payments marked returned by it.

integer
refunds
required
integer
coverage
required
object
linkedToInvoice
required
number
linkedToSupplier
required
number
provisionalPayee
required
number
unmatched
required
number
createdAt
required
string
completedAt
required
null | string
id
required
string
actorType
required
string
actorUserId
required
null | string
sourceName
required
null | string
source
required
string
inputRowCount
required
number
paymentsImported
required
number
refundsImported
required
number
creditsIgnored
required
number
returnedPayments
required
number
recordsNeedingReview
required
number
findingCounts
required
object
key
additional properties
number

Example

{
"actorType": "USER",
"source": "BANK_STATEMENT"
}

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

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