Page through canonical payments or refunds linked to an import batch (any role)
const url = 'https://api.invogi.com/v1/payments/imports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/records?kind=payments&limit=50&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”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.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”A tenant-scoped page of canonical records; no raw file content is returned
object
Payment records when kind=payments; refund records when kind=refunds.
object
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.
Set when a bank-statement credit showed this payment came back. A returned payment is excluded from duplicate-payment checks.
The bank-statement import whose credit marked this payment returned.
object
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.
Example
{ "items": [ { "currency": "GBP", "supplierResolution": "INVOICE" } ]}Invalid request
Missing or invalid API key
Resource not found