Skip to main content
Invoice Details API

Authentication

All requests require an API key in the request headers. Headers:

Request

Content-Type: application/json

Path Parameters

Code Examples

Success Response

HTTP Status: 200 OK Response Fields:

Flag Code Enum Description

Response Example

Error Responses

Missing Invoice ID

HTTP Status: 400 Bad Request

Invoice Not Found

HTTP Status: 404 Not Found

Access Denied

HTTP Status: 403 Forbidden

Authentication Errors

HTTP Status: 401 Unauthorized

Permission Errors

HTTP Status: 403 Forbidden

Best Practices

Access Control

  • Only invoices you created or where you are the vendor owner are accessible (unless you have admin or auditor role)
  • Use the invoice id returned from the invoice creation endpoint to retrieve details
  • Check the processingStatus.isReady field to ensure the invoice is fully processed before using its data

Invoice States

  • Common invoice states: DRAFTED, PENDING, APPROVED, PAID, DECLINED
  • Use processingStatus field to track invoice processing for newly uploaded invoices
  • Check syncState to verify accounting system synchronization status

Fields

  • fields covers both user-defined flex fields and predefined dimensions (cost centre, location, department, etc.)
  • Each field appears at the level it was set: invoice-level fields in data.fields, line-item-level fields in the corresponding line item’s fields
  • type and fieldType are separate vocabularies: type (CUSTOM/PREDEFINED) tells you where the field definition comes from, fieldType (DROPDOWN/VARCHAR/DATETIME/NUMERIC) tells you how to interpret value