Columns
| Column | Description | API Field Name |
|---|---|---|
invoice_id | Primary key and invoice unique identifier. | id |
created | The timestamp when the invoice record was created. | |
modified | The timestamp when the invoice record was last modified. | |
is_deleted | Indicates whether the invoice record is deleted. | |
status | The current status of the invoice (e.g., IN_PROGRESS, FINALIZED, LOCKED, IMPORTED, READY_FOR_PAYMENT). | status |
status_changed_at | The timestamp when the invoice status was last changed. | |
external_id | The ID of the invoice in the legacy PIMS system, if imported from there. | |
clinic_client_id | Foreign key to the client & client_enriched table. The identifier of the client associated with the invoice. | clinic_client_id |
clinic_id | Foreign key to the clinic & clinic_enriched table. The identifier of the clinic associated with the invoice. | clinic_id |
clinic_name | The name of the clinic associated with the invoice. | |
created_by_user_id | Foreign key to the user table. The identifier of the user who created the invoice. | |
created_by_clinic_user_id | Foreign key to the clinic_user table. The identifier of the clinic user who created the invoice. | |
subtotal | The subtotal amount of the invoice, in dollars. Snowflake displays dollars, API returns cents. | subtotal |
discount | The discount applied to the invoice, in dollars. Snowflake displays dollars, API returns cents. | discount |
tax | The tax amount applied to the invoice, in dollars. Snowflake displays dollars, API returns cents. | tax |
total | The total amount of the invoice, in dollars (original_total from source). Snowflake displays dollars, API returns cents. | total |
amount_paid | The total amount paid toward the invoice, in dollars. | |
amount_refunded | The total amount refunded on the invoice, in dollars. | |
net_total | The net total of the invoice after refunds, in dollars. | |
remaining_balance | The remaining balance due on the invoice, in dollars. Zero when the invoice is marked not rendered. Snowflake displays dollars, API returns cents. | remaining_balance |
marked_as_collections_at | The timestamp when the invoice was marked as sent to collections. | marked_as_collections_at |
marked_not_rendered_at | The timestamp when the invoice was marked as not rendered. | marked_not_rendered_at |
finalized_at | The timestamp when the invoice was finalized. | finalized_at |
finalized_by_user_id | Foreign key to the user table. The identifier of the user who finalized the invoice. | |
locked_at | The timestamp when the invoice was locked. | locked_at |
tax_rate_breakdown | JSON breakdown of tax rates applied to the invoice. | |
legacy_display_number | The legacy display number for the invoice, if applicable. | legacy_display_number |
date_posted | The date the invoice was posted. | |
client_notes | Notes from the client associated with the invoice. | |
last_updated | The timestamp when the invoice record was last updated in the source table. This is the most recent timestamp from all related tables (invoice, clinic). | |
vetcove_corporate_id | The unique identifier of the corporate group associated with this record. |
Relationships
SQL Definition
View SQL
View SQL