Skip to content

Page through canonical payments or refunds linked to an import batch (any role)

GET
/payments/imports/{batchId}/records
curl --request GET \
--url 'https://api.invogi.com/v1/payments/imports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/records?kind=payments&limit=50&offset=0' \
--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.

kind
required
string
Allowed values: payments refunds
limit
integer
default: 50 >= 1 <= 200
offset
integer
0 <= 1000000

A tenant-scoped page of canonical records; no raw file content is returned

Media typeapplication/json
object
items
required

Payment records when kind=payments; refund records when kind=refunds.

Array
One of:
object
id
required
string format: uuid
supplierId
required
string | null format: uuid
invoiceId
required
string | null format: uuid
amount
required
string
/^-?[0-9]+(\.[0-9]{1,6})?$/
currency
required

ISO 4217 alphabetic currency code, case-insensitive and stored upper-case. A code that is not a currency suppliers invoice in (including XXX, funds and precious-metal codes) is rejected with INVALID_REQUEST. Invoices whose currency cannot be read from an uploaded document are stored with the ISO placeholder XXX and raise a CURRENCY_UNKNOWN finding.

string
/^[A-Za-z]{3}$/
paidAt
required
string format: date
paymentReference
required
string | null
method
required
string | null
rawPayeeName
required
string | null
sourceInvoiceRef
required
string | null
supplierResolution
required
string | null
Allowed values: INVOICE TAX_ID NAME UNMATCHED
returnedOn
required

Set when a bank-statement credit showed this payment came back. A returned payment is excluded from duplicate-payment checks.

string | null format: date
returnedByPaymentImportBatchId
required

The bank-statement import whose credit marked this payment returned.

string | null format: uuid
createdAt
required
string format: date-time
receivedOn
string
reference
null | string
total
required
integer
limit
required
integer
>= 1 <= 200
offset
required
integer

Example

{
"items": [
{
"currency": "GBP",
"supplierResolution": "INVOICE"
}
]
}

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

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