List recent imported supplier payments for the workspace (any role)
const url = 'https://api.invogi.com/v1/payments?limit=50';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?limit=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “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”Imported payments, newest payment date first
object
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.
Example
{ "items": [ { "currency": "GBP", "supplierResolution": "INVOICE" } ]}Invalid request
Missing or invalid API key