InvoiceDetailResponse
email objectnullable
invoice object
Invoice header data with mapped fields
status_info object
Human-friendly metadata for the numeric invoice status
Numeric status code (e.g., 90, 91, 92, 93, 95, 96, 97, 98, 100)
Stable machine key (e.g., PENDING_INTEGRATION_FIRST)
Short label (human-readable)
Longer description, if available
A user changed this invoice's captured data in the portal. False means the values are exactly as captured.
A user acted on this invoice at all: edited, confirmed, held, disputed, removed or re-sent it. Superset of manual_edit; false means the invoice was processed straight through.
fields object[]required
Captured header fields (non-null by default; includeNull=true to force nulls). The amounts include grossAmount (the total before deductions) and amountDue (the amount payable after deductions, when printed)
Stable machine key (field_name)
Human-readable label (ui_name)
Field value (string/number/date/etc.)
lines object[]
Invoice line items with mapped fields
invoice_line_number object
- integer
- string
- null
fields object[]required
Stable machine key (field_name)
Human-readable label (ui_name)
Field value (string/number/date/etc.)
addresses object[]
taxes object[]
tax_rate objectnullable
- number
- string
tax_base_amount objectnullable
- number
- string
tax_amount objectnullable
- number
- string
charges object[]
charge_amount objectnullable
- number
- string
discounts object[]
discount_rate objectnullable
- number
- string
discount_amount objectnullable
- number
- string
due_date_period_value objectnullable
- number
- string
Possible values: [DAY, WEEK, MONTH, YEAR]
deductions object[]
Retainage, withholding tax and deposits subtracted after the total (empty when the invoice has none)
Possible values: [retainage, withholding, deposit, other]
As printed on the invoice
deduction_rate objectnullable
Percentage, when printed
- number
- string
deduction_base_amount objectnullable
Amount the rate applies to
- number
- string
deduction_amount objectnullable
Amount deducted (positive on an invoice, negative on a credit note)
- number
- string
attachments object[]
MIME type
Possible values: [INVOICE_IMAGE, EMAIL_ATTACHMENT, EMAIL]
Public token of the parent attachment if derived
matchAI object[]
quantity objectnullable
- number
- string
unit_price objectnullable
- number
- string
net_amount objectnullable
- number
- string
Confidence score (0.0 - 1.0)
AI reasoning for the match suggestion
{
"email": {
"email_token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"eml_from": "string",
"eml_to": "string",
"eml_replyto": "string",
"eml_subject": "string",
"eml_body": "string",
"eml_received": "2024-07-29T15:51:28.071Z"
},
"invoice": {
"id": 0,
"status": 0,
"status_info": {
"code": 0,
"key": "string",
"label": "string",
"description": "string",
"manual_edit": true,
"manual_touch": true
},
"email_token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"invoice_token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"fields": [
{
"key": "string",
"label": "string"
}
]
},
"lines": [
{
"id": 0,
"invoice_id": 0,
"invoice_line_number": 0,
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z",
"fields": [
{
"key": "string",
"label": "string"
}
]
}
],
"addresses": [
{
"address_type": "string",
"address_name": "string",
"street": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country": "string"
}
],
"taxes": [
{
"tax_name": "string",
"tax_rate": 0,
"tax_base_amount": 0,
"tax_amount": 0,
"tax_description": "string"
}
],
"charges": [
{
"charge_name": "string",
"charge_amount": 0
}
],
"discounts": [
{
"discount_description": "string",
"discount_rate": 0,
"discount_amount": 0,
"discount_due_date": "2024-07-29T15:51:28.071Z",
"due_date_basis": "2024-07-29T15:51:28.071Z",
"due_date_period_value": 0,
"due_date_period_measure": "DAY"
}
],
"deductions": [
{
"deduction_type": "retainage",
"deduction_description": "string",
"deduction_rate": 0,
"deduction_base_amount": 0,
"deduction_amount": 0
}
],
"attachments": [
{
"attachment_token": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"file_name": "string",
"content_type": "string",
"type": "INVOICE_IMAGE",
"parent_token": "string"
}
],
"matchAI": [
{
"id": 0,
"invoice_id": 0,
"order_number_1": "string",
"order_line_number_1": 0,
"product_code_1": "string",
"receipt_number": "string",
"receipt_line_number": 0,
"quantity": 0,
"unit_price": 0,
"unit_of_measure": "string",
"net_amount": 0,
"confidence_score": 0,
"reason": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
]
}