List supplier statements, newest first (any role)
GET
/statements
const url = 'https://api.invogi.com/v1/statements?status=PROCESSING';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/statements?status=PROCESSING' \ --header 'Authorization: Bearer <token>'Supplier statements read from email (the workspace’s statements address) or upload (docs/35 §14 Release 3). Discarded statements are not listed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”status
string
supplier_id
string format: uuid
limit
integer
offset
integer
Responses
Section titled “Responses”A page of statements
Media typeapplication/json
object
items
Array<object>
object
id
string format: uuid
status
string
reviewReasons
Array<string>
source
string
filename
string | null
mediaType
string
fromAddress
string | null
statementDate
string | null format: date
currency
string | null
openingBalance
Signed; negative is in the customer’s favour
string | null
closingBalance
Signed; negative means the supplier holds the customer’s money
string | null
balanceCheck
Opening balance + lines = closing balance
string | null
balanceDifference
string | null
balanceDetail
string | null
error
string | null
reviewedAt
string | null format: date-time
createdAt
string format: date-time
lineCount
List only
integer
total
integer
limit
integer
offset
integer
Example
{ "items": [ { "status": "PROCESSING", "reviewReasons": [ "UNKNOWN_SUPPLIER" ], "source": "UPLOAD", "balanceCheck": "BALANCED" } ]}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "NOT_FOUND" }}