Read a supplier and its masked bank accounts
const url = 'https://api.invogi.com/v1/suppliers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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/suppliers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Merged supplier IDs resolve to their surviving supplier. Bank accounts are masked. Earlier bank accounts retain their recorded representation; new GB IBAN accounts use the equivalent UK sort-code representation.
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.
Responses
Section titled “Responses”Successful response
object
object
Masked to the last four account digits. New GB IBAN accounts use the equivalent UK sort-code display; older stored IBAN representations may remain.
The recorded enterer and verifier are the same person and no independent confirmation is recorded.
The signed-in viewer is the enterer recorded on this account row.
How the account was confirmed; null when no confirmation note is recorded.
Example
{ "bankAccounts": [ { "kind": "UK", "source": "MANUAL" } ]}Missing or invalid API key
API key lacks required scope/role