Columns
| Column | Description | API Field Name |
|---|---|---|
order_id | Primary key and order unique identifier. | id |
created | The timestamp when the order record was created. | |
modified | The timestamp when the order record was last modified. | |
is_deleted | Indicates whether the order record is deleted. | |
order_placed_datetime | The timestamp when the order was placed. | order_placed_time |
clinic_id | Foreign key to the clinic & clinic_enriched tables. The identifier of the clinic where the order was placed. | clinic_id |
clinic_client_id | Foreign key to the client & client_enriched tables. The identifier of the client who placed the order. | client_id |
subtotal | The order subtotal amount in dollars. Snowflake displays dollars, API returns cents. | subtotal |
total | The total order amount in dollars. Snowflake displays dollars, API returns cents. | total |
tax | The tax amount for the order in dollars. Snowflake displays dollars, API returns cents. | tax |
shipping | The shipping cost for the order in dollars. Snowflake displays dollars, API returns cents. | shipping |
handling_fee | The handling fee for the order in dollars. Snowflake displays dollars, API returns cents. | handling_fee |
discount | The discount amount applied to the order in dollars. Snowflake displays dollars, API returns cents. | discount |
shipping_address_id | Foreign key to the address table. The identifier of the shipping address for the order, if applicable. | shipping_address.id |
shipping_address_address_one | The first line of the address (e.g., street address). | shipping_address.address_one |
shipping_address_address_two | The second line of the address (e.g., apartment or suite number). | shipping_address.address_two |
shipping_address_city | The city where the address is located. | shipping_address.city |
shipping_address_state | The state where the address is located. | shipping_address.state |
shipping_address_county | The county where the address is located. | shipping_address.county |
shipping_address_zipcode | The postal code associated with the address. | shipping_address.zipcode |
shipping_address_country | The country where the address is located. | shipping_address.country |
shipping_address_name | The name associated with the address. | shipping_address.name |
shipping_address_phone_number | The phone number associated with the address. | shipping_address.phone_number |
shipping_address | JSON object containing all shipping address fields (name, address_one, address_two, city, state, county, zipcode, country, phone_number, id). | shipping_address |
client_note | Notes from the client associated with the order. | client_note |
clinic_note | Notes from the clinic associated with the order. | clinic_note |
payment_method_id | Foreign key to the payment method used for the order, if applicable. | payment_method_id |
status | The current status of the order (e.g., APPROVAL_NEEDED, APPROVED, CANCELED, PAYMENT_FAILED, SENT_TO_VENDOR, SHIPPED, COMPLETED, TRIAGED). | status |
is_urgent | Indicates whether the order was marked as urgent. | is_urgent |
urgency_fee | The urgency fee for the order in dollars. Snowflake displays dollars, API returns cents. | urgency_fee |
transfer_ids | Array of transfer IDs for this order’s payment intent. | transfer_ids |
refund_ids | Array of refund IDs for this order’s payment intent. | refund_ids |
order_item_ids | Array of order item IDs belonging to this order. | order_item_ids |
charge_capture_date | The date when the charge was captured. Sourced from the payment_intent table. | charge_capture_date |
creator_type | The type of entity that created the order (e.g., SUBSCRIPTION, CLINIC_CHECKOUT_LINK, STAFF, CLIENT). | creator_type |
client_type | The type of client that placed the order (e.g., new, recurring). | client_type |
wholesale_tax | The wholesale tax amount for the order in dollars. Snowflake displays dollars, API returns cents. | wholesale_tax |
client_service_fee | The client service fee for the order in dollars. Snowflake displays dollars, API returns cents. | client_service_fee |
last_updated | The timestamp when the order 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
SQL Definition
View SQL
View SQL