connection_id
connection_id: string
created_at
created_at: string
error
error: string | null
failed_step
failed_step: "publish" | "create_draft" | "update_draft" | "delete_draft" | null
issued_at
issued_at: string | null
items
items: (
InvoiceItem & { amount: number; total: number; vat_amount: number })
[]
lookup_code
lookup_code: string | null
mode
mode: "draft" | "publish"
number
number: string | null
object
object: "einvoice"
origin
origin: "hatang" | "provider"
payment_id
payment_id: string | null
pdf_url
pdf_url: string | null
provider
provider: string | null
provider_invoice_id
provider_invoice_id: string | null
reference
reference: string
related_invoice_id: string | null
series
series: string | null
sync_state
sync_state: "in_sync" | "pending_push" | "conflict"
tax_authority_code
tax_authority_code: string | null
totals
totals: { subtotal: number; total: number; vat: number }
transaction_id
transaction_id: string | null
updated_at
updated_at: string
The step that failed; einvoices.retry(id) runs it again.