Columns
| Column | Description | API Field Name |
|---|---|---|
manual_discount_history_id | Primary key and manual discount history event unique identifier. | |
is_deleted | Indicates whether the manual discount history record is deleted. | |
event_datetime | The timestamp when the history event occurred. | event_datetime |
action_kind | The type of action that produced this history entry (e.g. CREATE, UPDATE, DELETE). | action_kind |
acting_user_id | Foreign key to the user table. The identifier of the user who performed the action. | acting_user_id |
manual_discount_id | Foreign key to the promotion_manual_discounts table. The identifier of the manual discount this history entry is tracking. | manual_discount_id |
invoice_id | Foreign key to the invoice & invoice_enriched table. The identifier of the invoice the manual discount was applied to, if applied to a whole invoice. | invoice_id |
invoice_item_id | Foreign key to the invoice_item table. The identifier of the invoice item the manual discount was applied to, if applied to a specific item. | invoice_item_id |
percent_value | The percentage value of the manual discount at the time of this event, if applicable. | percent_value |
dollar_value | The dollar value of the manual discount at the time of this event, if applicable. Snowflake displays dollars, API returns cents. | cents_value |
reason | The reason for applying the manual discount at the time of this event. | reason |
last_updated | The timestamp when the manual discount history record was last updated in the source table. This is the most recent timestamp from all related tables. | |
vetcove_corporate_id | The unique identifier of the corporate group associated with this record. |
Relationships
- Invoice via
invoice_id
SQL Definition
View SQL
View SQL