[{"description":"The AI assistant table contains all AI assistants created. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.ai_assistant`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the AI Assistant was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the AI Assistant."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the AI Assistant set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the AI Assistant set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the AI Assistant is currently enabled (true) or disabled (false)."}],"table_name":"ai_assistant"},{"description":"The AI voice agent table contains all AI voice agents created. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.ai_voice_agent`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the AI voice agent was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the AI voice agent."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the AI Voice Agent set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the AI Voice Agent set by the user."},{"name":"call_method","type":"STRING","mode":"NULLABLE","description":"The call method of the AI Voice Agent, either 'outbound' or 'inbound'."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the AI Voice Agent is currently enabled (true) or disabled (false)."}],"table_name":"ai_voice_agent"},{"description":"The AI voice call table contains all AI voice calls created. An AI voice call is created when an outbound or inbound call occurs, and is associated with an AI Voice Agent. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.ai_voice_call`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the AI voice call was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the AI voice call."},{"name":"ai_voice_agent","type":"STRING","mode":"NULLABLE","description":"The ID of the AI Voice Agent related to the call. References the 'id' field in the 'ai_voice_agent' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the customer related to the voice call, if applicable. References the 'id' field in the 'customer' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the sale related to the voice call, if applicable. References the 'id' field in the 'sale' table."},{"name":"call_to","type":"STRING","mode":"NULLABLE","description":"The call To number of the AI Voice Call."},{"name":"call_from","type":"STRING","mode":"NULLABLE","description":"The call From number of the AI Voice Call."},{"name":"call_method","type":"STRING","mode":"NULLABLE","description":"The call method of the AI Voice Call, either 'outbound' or 'inbound'."},{"name":"source_type","type":"STRING","mode":"NULLABLE","description":"If the call is related to a specific item, then the value will equal 'item'."},{"name":"item_type","type":"STRING","mode":"NULLABLE","description":"If the call is related to a specific item, i.e. source_type = 'item', then the item type. Can be either 'sale', 'customer', 'product_sale', 'shipping', 'subscription', 'subscription_renewal', 'salvage_transaction', 'transaction', 'chargeback' or 'fraud_detection'."},{"name":"item_id","type":"STRING","mode":"NULLABLE","description":"If the call is related to a specific item, the ID of the item corresponding to the item_type. References the 'id' field in the corresponding table."},{"name":"status","type":"STRING","mode":"NULLABLE","description":"The call status. Can be one of: ['Completed', 'Error', 'Active', 'Cancelled', 'No Answer', 'Busy', 'Voicemail', 'Robocall']"},{"name":"call_duration","type":"INTEGER","mode":"NULLABLE","description":"The duration of the AI Voice Call in milliseconds."},{"name":"call_transferred","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the call was transferred (true) or not (false)."},{"name":"call_transferred_to","type":"STRING","mode":"NULLABLE","description":"If the call was transferred, the phone number to which the call was transferred to."}],"table_name":"ai_voice_call"},{"description":"The API call table contains all API calls created. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.api_call`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Api Call was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call."},{"name":"type","type":"STRING","mode":"NULLABLE","description":"The API call type."},{"name":"method","type":"STRING","mode":"NULLABLE","description":"The API call method."},{"name":"code","type":"INTEGER","mode":"NULLABLE","description":"The API call result code."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Api Call was created in live mode (true) or test mode (false)."},{"name":"is_system","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the API call was made from the internal system."},{"name":"is_third_party_shop","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the API call was made from a third party shop."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Api Call. References the 'id' field in the 'third_party_shop' table."},{"name":"api_account","type":"STRING","mode":"NULLABLE","description":"The API account id associated with the API call."},{"name":"ai_assistant","type":"STRING","mode":"NULLABLE","description":"The AI assistant id associated with the API call if the call was made by an AI assistant."},{"name":"ai_voice_agent","type":"STRING","mode":"NULLABLE","description":"The AI voice agent id associated with the API call if the call was made by an AI voice agent."},{"name":"ai_voice_call","type":"STRING","mode":"NULLABLE","description":"The AI voice call id associated with the API call if the call is associated with an AI voice call."},{"name":"is_web_app","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the API call was made on behalf of a user logged into the web app."},{"name":"user","type":"STRING","mode":"NULLABLE","description":"If the API call was made on behalf of a user logged into the web app, the id of the user."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"api_call"},{"description":"The campaign table contains all campaigns created. A campaign is created by the user and is a mechanism for organizing sales and their origin. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.campaign`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp the Campaign was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the campaign set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the campaign set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the campaign is currently enabled (true) or disabled (false)."}],"table_name":"campaign"},{"description":"The chargeback table contains all chargebacks created. A chargeback is created either manually or via API. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.chargeback`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Chargeback was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Chargeback."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The chargeback amount."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Chargeback was created in live mode (true) or test mode (false)."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Chargeback. References the 'id' field in the 'campaign' table."},{"name":"customer_card","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer Card associated with the Chargeback. References the 'id' field in the 'customer_card' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"reason_code","type":"STRING","mode":"NULLABLE","description":"The chargeback reason code."},{"name":"request_type","type":"STRING","mode":"NULLABLE","description":"The origin request type."},{"name":"request_method","type":"STRING","mode":"NULLABLE","description":"The origin request method."},{"name":"first_6","type":"STRING","mode":"NULLABLE","description":"The first 6 digits of the customer card associated with the chargeback."},{"name":"last_4","type":"STRING","mode":"NULLABLE","description":"The last 4 digits of the customer card associated with the chargeback."},{"name":"expiration_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the associated customer card expires."},{"name":"gateway_transaction_id","type":"STRING","mode":"NULLABLE","description":"The gateway transaction ID."},{"name":"arn","type":"STRING","mode":"NULLABLE","description":"The acquirer reference number."},{"name":"merchant_account_id","type":"STRING","mode":"NULLABLE","description":"The merchant account ID associated with the chargeback."},{"name":"received_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the chargeback was received."},{"name":"chargeback_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the chargeback was filed."},{"name":"case_number","type":"STRING","mode":"NULLABLE","description":"The chargeback case number."},{"name":"gateway","type":"STRING","mode":"NULLABLE"},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Chargeback. References the 'id' field in the 'sale' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Chargeback. References the 'id' field in the 'customer' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Chargeback. References the 'id' field in the 'subscription' table."},{"name":"trial","type":"STRING","mode":"NULLABLE","description":"The ID of the Trial associated with the Chargeback. References the 'id' field in the 'trial' table."},{"name":"subscription_renewal","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Renewal associated with the Chargeback. References the 'id' field in the 'subscription_renewal' table."},{"name":"salvage_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Salvage Transaction associated with the Chargeback. References the 'id' field in the 'salvage_transaction' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Chargeback. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Chargeback. Each id references the 'id' field in the 'shipping' table."},{"name":"transaction","type":"STRING","mode":"NULLABLE"},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"chargeback"},{"description":"The check table contains all checks created. A check is created when a sale is created with a payment type of check_direct. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.check`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Check was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Check."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The check amount."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Check was created in live mode (true) or test mode (false)."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Check. References the 'id' field in the 'campaign' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Check. References the 'id' field in the 'customer' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Check. References the 'id' field in the 'third_party_shop' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Check. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Check. Each id references the 'id' field in the 'shipping' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Check. Each id references the 'id' field in the 'product_sale' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Check. Each id references the 'id' field in the 'pending_refund' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"check"},{"description":"The coupon table contains all coupons created. A coupon is created by the user with specific discount settings and usage periods. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.coupon`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Coupon was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Coupon."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the coupon is currently enabled (true) or disabled (false)."},{"name":"coupon_code","type":"STRING","mode":"NULLABLE","description":"The coupon code meant to be used by customers during checkout."},{"name":"start_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The coupon start date in timestamp format."},{"name":"end_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The coupon end date in timestamp format."},{"name":"num_use","type":"INTEGER","mode":"NULLABLE","description":"The total number of times the coupon has been used."}],"table_name":"coupon"},{"description":"The customer table contains all customers created. A customer can be created manually, via API or automatically during a purchase attempt. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.customer`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Customer was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."},{"name":"ip_address","type":"STRING","mode":"NULLABLE","description":"The customer IP address."},{"name":"geocode","type":"RECORD","mode":"REPEATED","description":"The customer address geocoded using the Google Geocoding service.","fields":[{"name":"postcode_localities","type":"STRING","mode":"REPEATED"},{"name":"types","type":"STRING","mode":"REPEATED"},{"name":"place_id","type":"STRING","mode":"NULLABLE"},{"name":"partial_match","type":"BOOLEAN","mode":"NULLABLE"},{"name":"plus_code","type":"RECORD","mode":"NULLABLE","fields":[{"name":"global_code","type":"STRING","mode":"NULLABLE"},{"name":"compound_code","type":"STRING","mode":"NULLABLE"}]},{"name":"formatted_address","type":"STRING","mode":"NULLABLE"},{"name":"geometry","type":"RECORD","mode":"NULLABLE","fields":[{"name":"viewport","type":"RECORD","mode":"NULLABLE","fields":[{"name":"southwest","type":"RECORD","mode":"NULLABLE","fields":[{"name":"lng","type":"FLOAT","mode":"NULLABLE"},{"name":"lat","type":"FLOAT","mode":"NULLABLE"}]},{"name":"northeast","type":"RECORD","mode":"NULLABLE","fields":[{"name":"lng","type":"FLOAT","mode":"NULLABLE"},{"name":"lat","type":"FLOAT","mode":"NULLABLE"}]}]},{"name":"location_type","type":"STRING","mode":"NULLABLE"},{"name":"location","type":"RECORD","mode":"NULLABLE","fields":[{"name":"lng","type":"FLOAT","mode":"NULLABLE"},{"name":"lat","type":"FLOAT","mode":"NULLABLE"}]},{"name":"bounds","type":"RECORD","mode":"NULLABLE","fields":[{"name":"southwest","type":"RECORD","mode":"NULLABLE","fields":[{"name":"lng","type":"FLOAT","mode":"NULLABLE"},{"name":"lat","type":"FLOAT","mode":"NULLABLE"}]},{"name":"northeast","type":"RECORD","mode":"NULLABLE","fields":[{"name":"lng","type":"FLOAT","mode":"NULLABLE"},{"name":"lat","type":"FLOAT","mode":"NULLABLE"}]}]}]},{"name":"address_components","type":"RECORD","mode":"REPEATED","fields":[{"name":"types","type":"STRING","mode":"REPEATED"},{"name":"short_name","type":"STRING","mode":"NULLABLE"},{"name":"long_name","type":"STRING","mode":"NULLABLE"}]}]},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Customer was created in live mode (true) or test mode (false)."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the customer is enabled (true) or disabled (false)."},{"name":"lifetime_value","type":"RECORD","mode":"NULLABLE","description":"The customers' lifetime values, segmented by value type and source.","fields":[{"name":"total","type":"RECORD","mode":"NULLABLE","description":"The total overall lifetime values for the customer.","fields":[{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted) over the lifetime of the customer."},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded over the lifetime of the customer."},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees over the lifetime of the customer."},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied over the lifetime of the customer."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts. over the lifetime of the customer."},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts over the lifetime of the customer."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged over the lifetime of the customer."}]},{"name":"sale","type":"RECORD","mode":"NULLABLE","description":"Customer lifetime values specific to initial sales.","fields":[{"name":"num","type":"INTEGER","mode":"NULLABLE","description":"The lifetime number of sales associated with the customer."},{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted) over the lifetime of the customer for initial sales only."},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded over the lifetime of the customer for initial sales only."},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees over the lifetime of the customer for initial sales only."},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied over the lifetime of the customer for initial sales only."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts. over the lifetime of the customer for initial sales only."},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts over the lifetime of the customer for initial sales only."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged over the lifetime of the customer for initial sales only."}]},{"name":"subscription_renewal","type":"RECORD","mode":"NULLABLE","description":"Customer lifetime values specific to subscription renewals.","fields":[{"name":"num","type":"INTEGER","mode":"NULLABLE","description":"The lifetime number of subscription renewals associated with the customer."},{"name":"num_success","type":"INTEGER","mode":"NULLABLE","description":"The lifetime number of successful subscription renewals associated with the customer."},{"name":"num_overdue","type":"INTEGER","mode":"NULLABLE","description":"The lifetime number of overdue subscription renewals associated with the customer."},{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted) over the lifetime of the customer for subscription renewals only."},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded over the lifetime of the customer for subscription renewals only."},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees over the lifetime of the customer for subscription renewals only."},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied over the lifetime of the customer for subscription renewals only."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts. over the lifetime of the customer for subscription renewals only."},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts over the lifetime of the customer for subscription renewals only."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged over the lifetime of the customer for subscription renewals only."}]},{"name":"pending_refund","type":"RECORD","mode":"NULLABLE","description":"Customer lifetime values specific to pending refunds.","fields":[{"name":"num","type":"INTEGER","mode":"NULLABLE","description":"The lifetime number of pending refunds associated with the customer."}]},{"name":"fraud_detection","type":"RECORD","mode":"NULLABLE","description":"Customer lifetime values specific to fraud detections.","fields":[{"name":"num","type":"INTEGER","mode":"NULLABLE","description":"The lifetime number of fraud detections associated with the customer."}]},{"name":"chargeback","type":"RECORD","mode":"NULLABLE","description":"Customer lifetime values specific to chargebacks.","fields":[{"name":"num","type":"INTEGER","mode":"NULLABLE","description":"The lifetime number of chargebacks associate with the customer."}]}]},{"name":"internal_id","type":"STRING","mode":"NULLABLE","description":"The internal ID assigned to the customer by the user or third party shop."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Customer. References the 'id' field in the 'campaign' table."},{"name":"customer_group","type":"STRING","mode":"REPEATED","description":"An array of individual Customer Group id's associated with the Customer. Each id references the 'id' field in the 'customer_group' table."},{"name":"sale","type":"STRING","mode":"REPEATED","description":"An array of individual Sale id's associated with the Customer. Each id references the 'id' field in the 'sale' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Customer. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Customer. Each id references the 'id' field in the 'shipping' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Customer. Each id references the 'id' field in the 'product_sale' table."},{"name":"discount","type":"STRING","mode":"REPEATED","description":"An array of individual Discount id's associated with the Customer. Each id references the 'id' field in the 'discount' table."},{"name":"chargeback","type":"STRING","mode":"REPEATED","description":"An array of individual Chargeback id's associated with the Customer. Each id references the 'id' field in the 'chargeback' table."},{"name":"fraud_detection","type":"STRING","mode":"REPEATED","description":"An array of individual Fraud Detection id's associated with the Customer. Each id references the 'id' field in the 'fraud_detection' table."},{"name":"salvage_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Salvage Transaction id's associated with the Customer. Each id references the 'id' field in the 'salvage_transaction' table."},{"name":"subscription","type":"STRING","mode":"REPEATED","description":"An array of individual Subscription id's associated with the Customer. Each id references the 'id' field in the 'subscription' table."},{"name":"subscription_renewal","type":"STRING","mode":"REPEATED","description":"An array of individual Subscription Renewal id's associated with the Customer. Each id references the 'id' field in the 'subscription_renewal' table."},{"name":"trial","type":"STRING","mode":"REPEATED","description":"An array of individual Trial id's associated with the Customer. Each id references the 'id' field in the 'trial' table."},{"name":"products_purchased","type":"STRING","mode":"REPEATED","description":"An array of individual product id's the customer has purchased. Each id references the 'id' field in the 'product' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Customer. Each id references the 'id' field in the 'transaction' table."},{"name":"offline_payment","type":"STRING","mode":"REPEATED","description":"An array of individual Offline Payment id's associated with the Customer. Each id references the 'id' field in the 'offline_payment' table."},{"name":"check","type":"STRING","mode":"REPEATED","description":"An array of individual Check id's associated with the Customer. Each id references the 'id' field in the 'check' table."},{"name":"paypal_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Paypal Transaction id's associated with the Customer. Each id references the 'id' field in the 'paypal_transaction' table."},{"name":"paypal_dispute","type":"STRING","mode":"REPEATED","description":"An array of individual Paypal Dispute id's associated with the Customer. Each id references the 'id' field in the 'paypal_dispute' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Customer. Each id references the 'id' field in the 'pending_refund' table."},{"name":"tracking_visitor","type":"STRING","mode":"REPEATED","description":"An array of individual Tracking Visitor id's associated with the Customer. Each id references the 'id' field in the 'tracking_visitor' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"customer"},{"description":"The customer card table contains all customer cards created. A customer card can be created manually or is automatically created during a purchase attempt. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.customer_card`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Customer Card was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer Card."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the customer credit card is enabled (true) or disabled (false)."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Customer Card was created in live mode (true) or test mode (false)."},{"name":"is_default","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the customer credit card is the default payment method for the associated customer."},{"name":"expiration_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the customer credit card is set to expire."},{"name":"first_6","type":"STRING","mode":"NULLABLE","description":"The first 6 digits of the customer credit card, a.k.a the BIN."},{"name":"last_4","type":"STRING","mode":"NULLABLE","description":"The last 4 digits of the customer credit card."},{"name":"card_type","type":"STRING","mode":"NULLABLE","description":"The customer credit card type, i.e. visa, discover, etc."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Customer Card. References the 'id' field in the 'customer' table."},{"name":"bin_details","type":"RECORD","mode":"NULLABLE","description":"The details of the first_6, a.k.a BIN, of the card.","fields":[{"name":"bin","type":"STRING","mode":"NULLABLE","description":"The BIN, a.k.a first_6."},{"name":"brand","type":"STRING","mode":"NULLABLE","description":"The card brand, i.e. VISA, MASTERCARD, AMERICAN EXPRESS, etc."},{"name":"type","type":"STRING","mode":"NULLABLE","description":"The card type, i.e. CREDIT, DEBIT"},{"name":"issuer","type":"STRING","mode":"NULLABLE","description":"The card issuer, a.k.a. the bank."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The three letter card ISO country, i.e. USA, CAN, etc."}]},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"customer_card"},{"description":"The customer group table contains all customer groups created. A customer group is created by the user to segment customers based on specific qualifiers and values. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.customer_group`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Customer Group was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer Group."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the customer group set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the customer group set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the customer group is currently enabled (true) or disabled (false)."}],"table_name":"customer_group"},{"description":"The discount table contains all discounts created. A discount is created either manually, via API sales calls, or via a coupon. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.discount`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Discount was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Discount."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The total discount amount."},{"name":"percent","type":"FLOAT","mode":"NULLABLE","description":"The percentage of the total purchase amount that the discount amount is, i.e. discount_amount/purchase_amount."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Discount was created in live mode (true) or test mode (false)."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"coupon","type":"STRING","mode":"NULLABLE","description":"The ID of the Coupon associated with the Discount. References the 'id' field in the 'coupon' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Discount. References the 'id' field in the 'customer' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Discount. References the 'id' field in the 'third_party_shop' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Discount. References the 'id' field in the 'subscription' table."},{"name":"subscription_renewal","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Renewal associated with the Discount. References the 'id' field in the 'subscription_renewal' table."},{"name":"paypal_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Transaction associated with the Discount. References the 'id' field in the 'paypal_transaction' table."},{"name":"offline_payment","type":"STRING","mode":"NULLABLE","description":"The ID of the Offline Payment associated with the Discount. References the 'id' field in the 'offline_payment' table."},{"name":"check","type":"STRING","mode":"REPEATED","description":"An array of individual Check id's associated with the Discount. Each id references the 'id' field in the 'check' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Discount. Each id references the 'id' field in the 'shipping' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Discount. Each id references the 'id' field in the 'product_sale' table."},{"name":"products","type":"STRING","mode":"REPEATED","description":"An array of individual product id's associated with the discount. Each id references the 'id' field in the 'product' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"discount"},{"description":"The fraud detection table contains all fraud detections created. A fraud detection is created either manually, by a third party or when the internal anti-fraud system, called Sentinel, detects a fraudulent purchase attempt. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.fraud_detection`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Fraud Detection was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Fraud Detection."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The fraud detection amount."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Fraud Detection. References the 'id' field in the 'api_call' table."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Fraud Detection was created in live mode (true) or test mode (false)."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Fraud Detection. References the 'id' field in the 'campaign' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Fraud Detection. References the 'id' field in the 'third_party_shop' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"ip_address","type":"STRING","mode":"NULLABLE","description":"The IP address associated with the fraud detection."},{"name":"fingerprint","type":"STRING","mode":"NULLABLE","description":"The browser fingerprint associated with the fraud detection."},{"name":"is_sentinel","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the fraud detection was created as a result of the internal anti-fraud system detecting a fraudulent purchase."},{"name":"false_positive","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the fraud detection has been marked as a false positive, i.e. is not actual fraud. Include false_positive = false when querying the fraud detections table, unless user requests false positive metrics."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Fraud Detection. References the 'id' field in the 'customer' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Fraud Detection. References the 'id' field in the 'sale' table."},{"name":"tracking_visitor","type":"STRING","mode":"REPEATED","description":"An array of individual Tracking Visitor id's associated with the Fraud Detection. Each id references the 'id' field in the 'tracking_visitor' table."},{"name":"is_third_party_integration","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the fraud detection was created as a result of a third party detecting a fraudulent purchase."},{"name":"third_party_integration","type":"STRING","mode":"NULLABLE","description":"The id of the third party integration if the fraud detection was created as a result of a third party detecting a fraudulent purchase."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"fraud_detection"},{"description":"The fulfillment account table contains all fulfillment accounts created. A fulfillment account is created by the user and is associated with a third party fulfillment center. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.fulfillment_account`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Fulfillment Account was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Fulfillment Account."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the fulfillment account set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the fulfillment account set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the fulfillment account is currently enabled (true) or disabled (false)."}],"table_name":"fulfillment_account"},{"description":"The gateway table contains all gateways created. A gateway is created by the user and is associated with a third party credit card merchant account. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.gateway`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Gateway was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Gateway."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the gateway set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the gateway set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the gateway is currently enabled (true) or disabled (false)."},{"name":"discount_rate","type":"FLOAT","mode":"NULLABLE","description":"The percentage fee charged for approved capture transactions."},{"name":"transaction_success_fee","type":"FLOAT","mode":"NULLABLE","description":"The flat fee charged for approved capture transactions."},{"name":"transaction_fail_fee","type":"FLOAT","mode":"NULLABLE","description":"The flat fee charged for declined transactions."},{"name":"merchant_account_id","type":"STRING","mode":"NULLABLE","description":"The third party merchant account id asssociated with the gateway."},{"name":"monthly_cap","type":"FLOAT","mode":"NULLABLE","description":"The estimated monthly cap for the gateway, set by the user."},{"name":"gateway_group","type":"STRING","mode":"REPEATED","description":"An array of gateway group id's the gateway is associated with."}],"table_name":"gateway"},{"description":"The note table contains all notes created. A note is created using the API or within the web app. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.note`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Note was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Note."},{"name":"text","type":"STRING","mode":"NULLABLE","description":"The content of the note."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Note. References the 'id' field in the 'customer' table."}],"table_name":"note"},{"description":"The offline payment table contains all offline payments created. An offline payment is created when a sale with a payment type of \"offline_payment\" is sold to a customer. Offline payments may also be from Affirm, Klarna, AfterPay, Sezzle and other third party alternate payment providers. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.offline_payment`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Offline Payment was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Offline Payment."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The amount of the offline payment."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Offline Payment. References the 'id' field in the 'api_call' table."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Offline Payment was created in live mode (true) or test mode (false)."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Offline Payment. References the 'id' field in the 'campaign' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Offline Payment. References the 'id' field in the 'third_party_shop' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Offline Payment. References the 'id' field in the 'customer' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Offline Payment. References the 'id' field in the 'sale' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Offline Payment. Each id references the 'id' field in the 'product_sale' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Offline Payment. Each id references the 'id' field in the 'shipping' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Offline Payment. Each id references the 'id' field in the 'tax' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Offline Payment. Each id references the 'id' field in the 'pending_refund' table."},{"name":"third_party_integration","type":"STRING","mode":"NULLABLE","description":"The id of the third party integration if the offline payment was from a third party alternate payment provider."},{"name":"third_party_name","type":"STRING","mode":"NULLABLE","description":"The name of the third party if the offline payment was from a third party alternate payment provider."},{"name":"third_party_order_id","type":"STRING","mode":"NULLABLE","description":"The third party order id if the offline payment was from a third party alternate payment provider."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"offline_payment"},{"description":"The payment profile table contains all payment profiles created by the user. A payment profile is a credit card transaction routing mechanism, allowing a user to strategically route payment requests to specific merchant gateways. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.payment_profile`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Payment Profile was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Payment Profile."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the payment profile set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the payment profile set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the payment profile is currently enabled (true) or disabled (false)."}],"table_name":"payment_profile"},{"description":"The PayPal account table contains all PayPal accounts added by the user. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.paypal_account`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Paypal Account was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Account."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the PayPal account set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the PayPal account is currently enabled (true) or disabled (false)."},{"name":"paypal_account_id","type":"STRING","mode":"NULLABLE","description":"The PayPal account id assigned by PayPal."}],"table_name":"paypal_account"},{"description":"The PayPal dispute table contains all PayPal disputes created. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.paypal_dispute`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Paypal Dispute was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Dispute."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The PayPal dispute amount."},{"name":"paypal_account","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Account associated with the Paypal Dispute. References the 'id' field in the 'paypal_account' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Paypal Dispute. References the 'id' field in the 'campaign' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Paypal Dispute. References the 'id' field in the 'third_party_shop' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"paypal_dispute_id","type":"STRING","mode":"NULLABLE","description":"The id issued to the dispute by PayPal."},{"name":"paypal_created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the dispute was created in PayPal"},{"name":"paypal_reason","type":"STRING","mode":"NULLABLE","description":"The reason issued by PayPal for the dispute."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Paypal Dispute. References the 'id' field in the 'customer' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Paypal Dispute. References the 'id' field in the 'sale' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Paypal Dispute. Each id references the 'id' field in the 'product_sale' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Paypal Dispute. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Paypal Dispute. Each id references the 'id' field in the 'shipping' table."},{"name":"paypal_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Paypal Transaction id's associated with the Paypal Dispute. Each id references the 'id' field in the 'paypal_transaction' table."}],"table_name":"paypal_dispute"},{"description":"The PayPal transaction table contains all PayPal transactions created. A PayPal transaction is created when a sale with payment type paypal is created. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.paypal_transaction`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Paypal Transaction was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Transaction."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The PayPal transaction amount."},{"name":"paypal_account","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Account associated with the Paypal Transaction. References the 'id' field in the 'paypal_account' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Paypal Transaction. References the 'id' field in the 'campaign' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Paypal Transaction. References the 'id' field in the 'third_party_shop' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"paypal_transaction_id","type":"STRING","mode":"NULLABLE","description":"The transaction id issued by PayPal."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Paypal Transaction. References the 'id' field in the 'customer' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Paypal Transaction. References the 'id' field in the 'sale' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Paypal Transaction. Each id references the 'id' field in the 'product_sale' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Paypal Transaction. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Paypal Transaction. Each id references the 'id' field in the 'shipping' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Paypal Transaction. Each id references the 'id' field in the 'pending_refund' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"paypal_transaction"},{"description":"The pending refund table, a.k.a refund table, contains all refunds created. However, there are very important caveats to note when querying the pending_refund table:\n      1. An individual pending refund is an itemized refund at the item type level, and should be grouped/combined with other pending refunds with the same api_call when querying.\n      2. An individual pending refund can be associated/paired with other pending refunds, all originating from a single API call. I.e. If a user issues a refund for a transaction, the transaction refund API call will create a pending refund for each of the items the transaction is associated with, i.e. product sales, shipments, tax and subscription renewals.\n      3. When querying the pending_refund table, it is recommended to \"combine\" pending refunds by api_call id and treat the combined pending refunds as a single \"refund\" with summed amounts, as the api_call is the actual \"refund\" action, and the pending refunds created are simply spawned from an API call action.\n      4. You should only query the pending refund table if the user wants to know the count/percentage number of refunds. Otherwise, use the amount_refunded field in other tables depending on the item types the user wishes to query.\n       Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.pending_refund`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp for when the Pending Refund was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Pending Refund."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The amount of the pending refund."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Pending Refund was created in live mode (true) or test mode (false)."},{"name":"user","type":"STRING","mode":"NULLABLE","description":"The ID of the User associated with the Pending Refund. References the 'id' field in the 'user' table."},{"name":"paypal_account","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Account associated with the Pending Refund. References the 'id' field in the 'paypal_account' table."},{"name":"gateway","type":"STRING","mode":"NULLABLE","description":"The id of the gateway associated with the pending refund. References the 'id' field in the 'gateway' table."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Pending Refund. References the 'id' field in the 'api_call' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Pending Refund. References the 'id' field in the 'campaign' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Pending Refund. References the 'id' field in the 'customer' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Pending Refund. References the 'id' field in the 'sale' table."},{"name":"product_sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Product Sale associated with the Pending Refund. References the 'id' field in the 'product_sale' table."},{"name":"shipping","type":"STRING","mode":"NULLABLE","description":"The id of the shipment associated with the pending refund. References the 'id' field in the 'shipping' table."},{"name":"tax","type":"STRING","mode":"NULLABLE","description":"The id of the tax associated with the pending refund. References the 'id' field in the 'tax' table."},{"name":"offline_payment","type":"STRING","mode":"NULLABLE","description":"The ID of the Offline Payment associated with the Pending Refund. References the 'id' field in the 'offline_payment' table."},{"name":"check","type":"STRING","mode":"REPEATED","description":"An array of individual Check id's associated with the Pending Refund. Each id references the 'id' field in the 'check' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Pending Refund. Each id references the 'id' field in the 'transaction' table."},{"name":"paypal_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Transaction associated with the Pending Refund. References the 'id' field in the 'paypal_transaction' table."},{"name":"salvage_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Salvage Transaction associated with the Pending Refund. References the 'id' field in the 'salvage_transaction' table."},{"name":"subscription_renewal","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Renewal associated with the Pending Refund. References the 'id' field in the 'subscription_renewal' table."},{"name":"refunded_offsite","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the refund was issued elsewhere and not within the RevCent system."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp for when the metadata was added."}]}],"table_name":"pending_refund"},{"description":"The product table contains all products created. A product is a line item which is purchased during a sale, and every sale must have at least one product. Products can create subscriptions, trials or be unbundled at time of sale or fulfillment. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.product`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Product was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Product."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The product name."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The product short description."},{"name":"description_html","type":"STRING","mode":"NULLABLE","description":"The product long description, in HTML format."},{"name":"sku","type":"STRING","mode":"NULLABLE","description":"The product SKU."},{"name":"price","type":"FLOAT","mode":"NULLABLE","description":"The product price."},{"name":"internal_id","type":"STRING","mode":"NULLABLE","description":"The product internal ID."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the product is currently enabled."},{"name":"product_group","type":"STRING","mode":"REPEATED","description":"An array of product group id's the product is associated with."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Product. References the 'id' field in the 'third_party_shop' table."}],"table_name":"product"},{"description":"The product group table contains all product groups created. A product group is a way to organizing related products for multi product management, filtering and more. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.product_group`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Product Group was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Product Group."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the product group set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the product group set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the product group is currently enabled (true) or disabled (false)."}],"table_name":"product_group"},{"description":"The product sale table contains all product sales created. A product sale is the line item purchase of a specific product within an individual sale, i.e. a line item within a sale. The product sale entity allows advanced metrics on a product specific level. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.product_sale`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Product Sale was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Product Sale."},{"name":"amount_original_total","type":"FLOAT","mode":"NULLABLE","description":"The total calculated amount when an item is first created, ignoring payment status."},{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted)"},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees"},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded"},{"name":"amount_fees","type":"FLOAT","mode":"NULLABLE","description":"The current amount of calculated fees deducted by a payment processor. Equals: amount_gross * processor_fee_percentage"},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts"},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged."},{"name":"quantity","type":"INTEGER","mode":"NULLABLE","description":"The quantity of the product purchased."},{"name":"price","type":"FLOAT","mode":"NULLABLE","description":"The per quantity price of the product purchased."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Product Sale. References the 'id' field in the 'api_call' table."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Product Sale was created in live mode (true) or test mode (false)."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Product Sale. References the 'id' field in the 'campaign' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Product Sale. References the 'id' field in the 'third_party_shop' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"product","type":"STRING","mode":"NULLABLE","description":"The ID of the Product associated with the Product Sale. References the 'id' field in the 'product' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Product Sale. References the 'id' field in the 'customer' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Product Sale. References the 'id' field in the 'sale' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Product Sale. References the 'id' field in the 'subscription' table."},{"name":"trial","type":"STRING","mode":"NULLABLE","description":"The ID of the Trial associated with the Product Sale. References the 'id' field in the 'trial' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Product Sale. Each id references the 'id' field in the 'transaction' table."},{"name":"salvage_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Salvage Transaction id's associated with the Product Sale. Each id references the 'id' field in the 'salvage_transaction' table."},{"name":"check","type":"STRING","mode":"REPEATED","description":"An array of individual Check id's associated with the Product Sale. Each id references the 'id' field in the 'check' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Product Sale. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Product Sale. Each id references the 'id' field in the 'shipping' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Product Sale. Each id references the 'id' field in the 'pending_refund' table."},{"name":"chargeback","type":"STRING","mode":"NULLABLE","description":"The ID of the Chargeback associated with the Product Sale. References the 'id' field in the 'chargeback' table."},{"name":"offline_payment","type":"STRING","mode":"NULLABLE","description":"The ID of the Offline Payment associated with the Product Sale. References the 'id' field in the 'offline_payment' table."},{"name":"paypal_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Transaction associated with the Product Sale. References the 'id' field in the 'paypal_transaction' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"product_sale"},{"description":"The sale table contains all sales created. A sale is created when a customer attempts to purchase one or more products. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.sale`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Sale was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale."},{"name":"amount_original_total","type":"FLOAT","mode":"NULLABLE","description":"The total calculated amount when an item is first created, ignoring payment status."},{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted)"},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees"},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded"},{"name":"amount_fees","type":"FLOAT","mode":"NULLABLE","description":"The current amount of calculated fees deducted by a payment processor. Equals: amount_gross * processor_fee_percentage"},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts"},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Sale. References the 'id' field in the 'api_call' table."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Sale was created in live mode (true) or test mode (false)."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Sale. References the 'id' field in the 'campaign' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Sale. References the 'id' field in the 'customer' table."},{"name":"customer_detailed","type":"RECORD","mode":"NULLABLE","description":"Pre populated customer details.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The customer ID. References the 'id' field in the 'customer' table."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."}]},{"name":"ship_to","type":"RECORD","mode":"NULLABLE","description":"The ship to information.","fields":[{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The ship to first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The ship to last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The ship to address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The ship to address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The ship to city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The ship to state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The ship to ZIP/postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The ship to country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The ship to company."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The ship to email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The ship to phone number."}]},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Sale. References the 'id' field in the 'third_party_shop' table."},{"name":"tracking_visitor","type":"STRING","mode":"NULLABLE","description":"The ID of the Tracking Visitor associated with the Sale. References the 'id' field in the 'tracking_visitor' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Sale. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Sale. Each id references the 'id' field in the 'shipping' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Sale. Each id references the 'id' field in the 'product_sale' table."},{"name":"discount","type":"STRING","mode":"REPEATED","description":"An array of individual Discount id's associated with the Sale. Each id references the 'id' field in the 'discount' table."},{"name":"salvage_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Salvage Transaction id's associated with the Sale. Each id references the 'id' field in the 'salvage_transaction' table."},{"name":"subscription","type":"STRING","mode":"REPEATED","description":"An array of individual Subscription id's associated with the Sale. Each id references the 'id' field in the 'subscription' table."},{"name":"trial","type":"STRING","mode":"REPEATED","description":"An array of individual Trial id's associated with the Sale. Each id references the 'id' field in the 'trial' table."},{"name":"products_purchased","type":"STRING","mode":"REPEATED","description":"An array of individual product id's. Each id references the 'id' field in the 'product' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Sale. Each id references the 'id' field in the 'transaction' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Sale. Each id references the 'id' field in the 'pending_refund' table."},{"name":"check","type":"STRING","mode":"REPEATED","description":"An array of individual Check id's associated with the Sale. Each id references the 'id' field in the 'check' table."},{"name":"offline_payment","type":"STRING","mode":"NULLABLE","description":"The ID of the Offline Payment associated with the Sale. References the 'id' field in the 'offline_payment' table."},{"name":"paypal_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Transaction associated with the Sale. References the 'id' field in the 'paypal_transaction' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"sale"},{"description":"The salvage transaction table contains all salvage transactions created. A salvage transaction is created when a credit card transaction is fully or partially declined. Salvage transactions allow the user to recoup/recover revenue at a later date. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.salvage_transaction`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Salvage Transaction was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Salvage Transaction."},{"name":"amount_original_total","type":"FLOAT","mode":"NULLABLE","description":"The total calculated amount when an item is first created, ignoring payment status."},{"name":"amount_charged","type":"FLOAT","mode":"NULLABLE","description":"The origin transaction amount actually charged."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount to salvage. The amount intended to be charged - amount_charged."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Salvage Transaction. References the 'id' field in the 'api_call' table."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Salvage Transaction was created in live mode (true) or test mode (false)."},{"name":"salvaged","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the salvage transaction has been successfully salvaged."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the salvage transaction is enabled for potential recovery."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Salvage Transaction. References the 'id' field in the 'campaign' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Salvage Transaction. References the 'id' field in the 'customer' table."},{"name":"salvage_transaction_profile","type":"STRING","mode":"NULLABLE","description":"If the salvage transaction is meant to be automatically processed, a salvage transaction profile will be associated with it."},{"name":"salvage_transaction_profile_num_attempts","type":"INTEGER","mode":"NULLABLE","description":"If a salvage transaction profile is associated, the total number of attempts made to automatically process the salvage."},{"name":"latest_attempt_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The last timestamp of when the salvage transaction was processed, successfully or not."},{"name":"latest_attempt_transaction","type":"STRING","mode":"NULLABLE","description":"The last credit card transaction that the salvage transaction was processed with, successful or not."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Salvage Transaction. References the 'id' field in the 'sale' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Salvage Transaction. References the 'id' field in the 'subscription' table."},{"name":"subscription_renewal","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Renewal associated with the Salvage Transaction. References the 'id' field in the 'subscription_renewal' table."},{"name":"request_origin","type":"STRING","mode":"NULLABLE","description":"The origin transaction which resulted in the creation of the salvage transaction."},{"name":"success_transaction","type":"STRING","mode":"NULLABLE","description":"The credit card transaction associated if the salvage transaction was successfully processed."},{"name":"trial","type":"STRING","mode":"NULLABLE","description":"The ID of the Trial associated with the Salvage Transaction. References the 'id' field in the 'trial' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Salvage Transaction. Each id references the 'id' field in the 'product_sale' table."},{"name":"retry_transaction","type":"STRING","mode":"REPEATED","description":"If the salvage transaction has been attempted, an array of all retry transactions associated with the salvage transaction. A retry transaction is an attempt to process the salvage."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Salvage Transaction. Each id references the 'id' field in the 'shipping' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Salvage Transaction. Each id references the 'id' field in the 'tax' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Salvage Transaction. Each id references the 'id' field in the 'pending_refund' table."},{"name":"chargeback","type":"STRING","mode":"NULLABLE","description":"The ID of the Chargeback associated with the Salvage Transaction. References the 'id' field in the 'chargeback' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"salvage_transaction"},{"description":"The shipping table contains all shipments created. A shipment is created when a shippable product is sold to a customer in a sale, subscription renewal or trial expiration. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.shipping`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Shipping was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Shipping."},{"name":"amount_original_total","type":"FLOAT","mode":"NULLABLE","description":"The total calculated amount when an item is first created, ignoring payment status."},{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted)"},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees"},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded"},{"name":"amount_fees","type":"FLOAT","mode":"NULLABLE","description":"The current amount of calculated fees deducted by a payment processor. Equals: amount_gross * processor_fee_percentage"},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts"},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged."},{"name":"cost","type":"FLOAT","mode":"NULLABLE","description":"The shipping cost, i.e. the label cost or amount the user paid to ship the item."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Shipping. References the 'id' field in the 'api_call' table."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Shipping was created in live mode (true) or test mode (false)."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Shipping. References the 'id' field in the 'campaign' table."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Shipping. References the 'id' field in the 'customer' table."},{"name":"customer_detailed","type":"RECORD","mode":"NULLABLE","description":"Pre populated customer details.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The customer ID. References the 'id' field in the 'customer' table."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."}]},{"name":"ship_to","type":"RECORD","mode":"NULLABLE","description":"The ship to information.","fields":[{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The ship to first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The ship to last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The ship to address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The ship to address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The ship to city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The ship to state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The ship to ZIP/postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The ship to country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The ship to company."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The ship to email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The ship to phone number."}]},{"name":"shipping_status","type":"STRING","mode":"NULLABLE","description":"The shipping status of the shipment, either not shipped, shipped or delivered."},{"name":"ship_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the shipment was shipped."},{"name":"provider","type":"STRING","mode":"NULLABLE","description":"The carrier/provider that will deliver the shipment."},{"name":"provider_method","type":"STRING","mode":"NULLABLE","description":"The carrier/provider shipping method."},{"name":"provider_tracking","type":"STRING","mode":"NULLABLE","description":"The carrier/provider tracking number."},{"name":"delivered_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the shipment was delivered by the carrier/provider."},{"name":"is_merged","type":"BOOLEAN","mode":"NULLABLE","description":"Whether the shipment has been merged with other shipments in the fulfillment center."},{"name":"has_merged","type":"BOOLEAN","mode":"NULLABLE","description":"Whether the shipment has been merged with other shipments in the fulfillment center."},{"name":"is_merged_with","type":"STRING","mode":"NULLABLE","description":"An array of shipment id's the shipment has been merged with in the fulfillment center."},{"name":"has_merged_with","type":"STRING","mode":"REPEATED","description":"An array of shipment id's the shipment has been merged with in the fulfillment center."},{"name":"fulfillment_account","type":"STRING","mode":"NULLABLE","description":"The fulfillment account associated with the shipment."},{"name":"fulfillment_account_notified","type":"BOOLEAN","mode":"NULLABLE","description":"Whether the shipments' fulfillment account was notified to ship the shipment."},{"name":"fulfillment_account_notified_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the shipments' fulfillment account was notified to ship the shipment."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Shipping. References the 'id' field in the 'third_party_shop' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Shipping. References the 'id' field in the 'sale' table."},{"name":"products_detailed","type":"RECORD","mode":"REPEATED","description":"An array of products contained within the shipment.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The product id. References the 'id' field in the 'product' table."},{"name":"quantity","type":"FLOAT","mode":"NULLABLE","description":"The product quantity."},{"name":"price","type":"FLOAT","mode":"NULLABLE","description":"The price of the product."}]},{"name":"products","type":"STRING","mode":"REPEATED","description":"An array of individual product id's associated with the shipment. Each id references the 'id' field in the 'product' table."},{"name":"subscription","type":"STRING","mode":"REPEATED","description":"An array of individual Subscription id's associated with the Shipping. Each id references the 'id' field in the 'subscription' table."},{"name":"subscription_renewal","type":"STRING","mode":"REPEATED","description":"An array of individual Subscription Renewal id's associated with the Shipping. Each id references the 'id' field in the 'subscription_renewal' table."},{"name":"trial","type":"STRING","mode":"REPEATED","description":"An array of individual Trial id's associated with the Shipping. Each id references the 'id' field in the 'trial' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Shipping. Each id references the 'id' field in the 'product_sale' table."},{"name":"salvage_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Salvage Transaction id's associated with the Shipping. Each id references the 'id' field in the 'salvage_transaction' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Shipping. Each id references the 'id' field in the 'transaction' table."},{"name":"offline_payment","type":"STRING","mode":"NULLABLE","description":"The ID of the Offline Payment associated with the Shipping. References the 'id' field in the 'offline_payment' table."},{"name":"check","type":"STRING","mode":"REPEATED","description":"An array of individual Check id's associated with the Shipping. Each id references the 'id' field in the 'check' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Shipping. Each id references the 'id' field in the 'tax' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Shipping. Each id references the 'id' field in the 'pending_refund' table."},{"name":"chargeback","type":"STRING","mode":"NULLABLE","description":"The ID of the Chargeback associated with the Shipping. References the 'id' field in the 'chargeback' table."},{"name":"paypal_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Transaction associated with the Shipping. References the 'id' field in the 'paypal_transaction' table."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]}],"table_name":"shipping"},{"description":"The subscription table contains all subscriptions created. A subscription is created when a product with an associated subscription profile is sold to a customer in a sale. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.subscription`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Subscription was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The subscription amount, which determines the amount to charge the customer credit card when the subscription renews."},{"name":"is_cancelled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the subscription is cancelled."},{"name":"is_suspended","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the subscription is currently suspended."},{"name":"is_active","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the subscription is currently active, i.e. not cancelled, suspended or overdue."},{"name":"is_overdue","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the subscription is currently overdue, i.e. has one or more associated subscription renewals which failed to successfully process payment."},{"name":"customer_detailed","type":"RECORD","mode":"NULLABLE","description":"Pre populated customer details.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The customer ID. References the 'id' field in the 'customer' table."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."}]},{"name":"start_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the subscription officially begins its renewal cycle."},{"name":"last_renewal_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The most recent timestamp in which the subscription was renewed."},{"name":"future_renewal_dates","type":"TIMESTAMP","mode":"REPEATED","description":"An array of future renewal dates for the subscription."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Subscription was created in live mode (true) or test mode (false)."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]},{"name":"prefer_gateway","type":"RECORD","mode":"NULLABLE","description":"Prefer gateway settings, which determines whether a subscription should have a preferred gateway to process renewals.","fields":[{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"If enabled, then the current subscription has a preferred gateway, which will receive preferrence when processing the subscriptions' renewals."},{"name":"locked","type":"BOOLEAN","mode":"NULLABLE","description":"Deprecated."},{"name":"gateway","type":"STRING","mode":"NULLABLE","description":"If prefer gateway is enabled, then the id of the gateway which will receive preferrence when processing the subscriptions' renewals. References the 'id' field in the 'gateway' table."}]},{"name":"forced_gateway","type":"RECORD","mode":"NULLABLE","description":"Forced gateway settings, which determines whether a subscription should have a single specific gateway to process renewals.","fields":[{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"If enabled, then the current subscription has a forced gateway, which will be used to process the subscriptions' renewals."},{"name":"max","type":"INTEGER","mode":"NULLABLE","description":"If greater than 0, the maximum number of renewals the forced gateway should be used. Once reached, forced gateway is ignored."},{"name":"count","type":"INTEGER","mode":"NULLABLE","description":"Indicates the number of renewals in which the forced gateway was used to process renewals."},{"name":"gateway","type":"STRING","mode":"NULLABLE","description":"If forced gateway is enabled, then the id of the gateway which be used to process the subscriptions' renewals. References the 'id' field in the 'gateway' table."}]},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Subscription. References the 'id' field in the 'sale' table."},{"name":"product_sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Product Sale associated with the Subscription. References the 'id' field in the 'product_sale' table."},{"name":"product","type":"STRING","mode":"NULLABLE","description":"The ID of the Product associated with the Subscription. References the 'id' field in the 'product' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Subscription. References the 'id' field in the 'customer' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Subscription. References the 'id' field in the 'third_party_shop' table."},{"name":"last_renewal","type":"STRING","mode":"NULLABLE","description":"The id of the most recent subscription renewal. References the 'id' field in the 'subscription_renewal' table."},{"name":"subscription_renewal","type":"STRING","mode":"REPEATED","description":"An array of individual Subscription Renewal id's associated with the Subscription. Each id references the 'id' field in the 'subscription_renewal' table."},{"name":"trial","type":"STRING","mode":"NULLABLE","description":"The ID of the Trial associated with the Subscription. References the 'id' field in the 'trial' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Subscription. References the 'id' field in the 'campaign' table."},{"name":"coupon","type":"STRING","mode":"REPEATED","description":"An array of individual Coupon id's associated with the Subscription. Each id references the 'id' field in the 'coupon' table."},{"name":"subscription_profile","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Profile associated with the Subscription. References the 'id' field in the 'subscription_profile' table."}],"table_name":"subscription"},{"description":"The subscription profile table contains all subscription profiles created by the user. Every subscription has an associated subscription profile which determines the renewal cycle for said subscriptions. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.subscription_profile`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Subscription Profile was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Profile."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the subscription profile set by the user."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the subscription profile set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the subscription profile is currently enabled (true) or disabled (false)."},{"name":"occurrences","type":"STRING","mode":"NULLABLE","description":"Describes whether subscriptions using this profile should renew indefinitely or a specific number of times. Possible values are: ['indefinite', 'specific']"},{"name":"occurrences_value","type":"INTEGER","mode":"NULLABLE","description":"The number of renewal cycles the subscription should renew for if the occurrences field equals 'specific'."},{"name":"frequency","type":"STRING","mode":"NULLABLE","description":"The frequency field determines the renewal cycle, either on a 'unit' based cycle, a 'calendar' cycle or 'fiscal' cycle."},{"name":"frequency_unit","type":"STRING","mode":"NULLABLE","description":"The unit of time if the frequency field equals 'unit'. Possible values are ['days', 'weeks', 'months', 'years']"},{"name":"frequency_value","type":"INTEGER","mode":"NULLABLE","description":"The value of the frequency_unit, i.e. unit of time, if frequency field equals 'unit'. Example: If frequency equals 'unit' and frequency_unit equals 'months' and frequency_value equals 1, then subscriptions using the subscription profile will renew every 1 months."},{"name":"frequency_calendar","type":"RECORD","mode":"NULLABLE","description":"The renewal cycle settings if the frequency field equals 'calendar'.","fields":[{"name":"calendar_unit","type":"STRING","mode":"NULLABLE","description":"The calendar unit. Possible values are: ['day', 'week', 'month']"},{"name":"calendar_value","type":"INTEGER","mode":"NULLABLE","description":"The calendar value determines the nth calendar_unit."},{"name":"calendar_parent","type":"STRING","mode":"NULLABLE","description":"The calendar parent determines the nth calendar_unit of every either week, month or year. Possible values are: ['week', 'month', 'year']"}]},{"name":"frequency_fiscal","type":"RECORD","mode":"NULLABLE","description":"The renewal cycle settings if the frequency field equals 'fiscal'.","fields":[{"name":"fiscal_unit","type":"STRING","mode":"NULLABLE","description":"The fiscal unit. Possible values are: ['quarter', 'year']"},{"name":"fiscal_setting","type":"STRING","mode":"NULLABLE","description":"Determines the fiscal method. Possible values are: ['standard', 'infrequent']"},{"name":"fiscal_value","type":"INTEGER","mode":"NULLABLE","description":"The nth value of every fiscal_unit if fiscal_setting equals infrequent."}]},{"name":"overdue_limit","type":"INTEGER","mode":"NULLABLE","description":"The overdue limit determines the maximum number of subscription renewals for a subscription that can be overdue, which if reached will automatically suspend the associated subscription."},{"name":"shipping_profile","type":"STRING","mode":"NULLABLE","description":"The shipping profile is a custom setting which determines shipping settings if provided."}],"table_name":"subscription_profile"},{"description":"The subscription renewal table contains subscription renewals created when a specific subscription renewal cycle determines a recurring transaction should be processed. The renewal cycle settings are described in the associated subscription profile for the parent subscription.\n        Determine a specific subscription renewals' cycle number by joining all subscription renewals with their subscription, then order by subscription renewals by date for each subscription. Each associated renewal for a subscription is a cycle processed, i.e. the first renewal by date for a specific subscription is cycle 1, the second renewal by date is cycle 2, etc. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.subscription_renewal`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Subscription Renewal was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Renewal."},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees"},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded"},{"name":"amount_fees","type":"FLOAT","mode":"NULLABLE","description":"The current amount of calculated fees deducted by a payment processor. Equals: amount_gross * processor_fee_percentage"},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts"},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged."},{"name":"customer_detailed","type":"RECORD","mode":"NULLABLE","description":"Pre populated customer details.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The customer ID. References the 'id' field in the 'customer' table."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."}]},{"name":"is_overdue","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the subscription renewal was successfully processed or not, i.e. if true, the renewal is overdue as payment was declined/unsuccessful. If false, the payment was approved."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Subscription Renewal was created in live mode (true) or test mode (false)."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Subscription Renewal. References the 'id' field in the 'customer' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Subscription Renewal. References the 'id' field in the 'campaign' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Subscription Renewal. References the 'id' field in the 'sale' table."},{"name":"product","type":"STRING","mode":"NULLABLE","description":"The ID of the Product associated with the Subscription Renewal. References the 'id' field in the 'product' table."},{"name":"product_sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Product Sale associated with the Subscription Renewal. References the 'id' field in the 'product_sale' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Subscription Renewal. References the 'id' field in the 'subscription' table."},{"name":"subscription_profile","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Profile associated with the Subscription Renewal. References the 'id' field in the 'subscription_profile' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Subscription Renewal. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Subscription Renewal. Each id references the 'id' field in the 'shipping' table."},{"name":"coupon","type":"STRING","mode":"REPEATED","description":"An array of individual Coupon id's associated with the Subscription Renewal. Each id references the 'id' field in the 'coupon' table."},{"name":"discount","type":"STRING","mode":"REPEATED","description":"An array of individual Discount id's associated with the Subscription Renewal. Each id references the 'id' field in the 'discount' table."},{"name":"salvage_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Salvage Transaction id's associated with the Subscription Renewal. Each id references the 'id' field in the 'salvage_transaction' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Subscription Renewal. Each id references the 'id' field in the 'transaction' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Subscription Renewal. Each id references the 'id' field in the 'pending_refund' table."},{"name":"chargeback","type":"STRING","mode":"NULLABLE","description":"The ID of the Chargeback associated with the Subscription Renewal. References the 'id' field in the 'chargeback' table."}],"table_name":"subscription_renewal"},{"description":"The tax table contains tax created during an initial sale, renewal, trial expiration or salvage transaction. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.tax`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Tax was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Tax."},{"name":"amount_original_total","type":"FLOAT","mode":"NULLABLE","description":"The total calculated amount when an item is first created, ignoring payment status."},{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted)"},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees"},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded"},{"name":"amount_fees","type":"FLOAT","mode":"NULLABLE","description":"The current amount of calculated fees deducted by a payment processor. Equals: amount_gross * processor_fee_percentage"},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts"},{"name":"amount_discounted","type":"FLOAT","mode":"NULLABLE","description":"The total amount of any discounts applied."},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts."},{"name":"amount_to_salvage","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any salvage transactions not yet salvaged."},{"name":"rate","type":"FLOAT","mode":"NULLABLE","description":"The tax rate calculated based on the tax amount compared to the purchase amount."},{"name":"customer_detailed","type":"RECORD","mode":"NULLABLE","description":"Pre populated customer details.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The customer ID. References the 'id' field in the 'customer' table."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."}]},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Tax was created in live mode (true) or test mode (false)."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"rate_entity","type":"STRING","mode":"NULLABLE","description":"If the tax was calculated and created by RevCent, the rate entity consists of the entity used to find an applicable tax rate. Typically equal to zip_code."},{"name":"rate_entity_value","type":"STRING","mode":"NULLABLE","description":"If the tax was calculated and created by RevCent, the rate entity value consists of the rate entity's actual value. Typically the actual ZIP code used to calculate the tax."},{"name":"rate_entity_source","type":"STRING","mode":"NULLABLE","description":"If the tax was calculated and created by RevCent, the rate entity source is the the attribute used to calculate the tax. Typically the billing ZIP code."},{"name":"rate_entity_id","type":"STRING","mode":"NULLABLE","description":"If the tax was calculated and created by RevCent, the rate entity id is the id of the profile used to calculate the tax."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"third_party_integration_id","type":"STRING","mode":"NULLABLE","description":"If the tax was calculated by a third party, the third party integration id is the id of the users' third party integration used to calculate the tax."},{"name":"third_party_integration","type":"STRING","mode":"NULLABLE","description":"If the tax was calculated by a third party, the third party integration is the id of the site third party integration used to calculate the tax."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Tax. References the 'id' field in the 'api_call' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Tax. References the 'id' field in the 'customer' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Tax. References the 'id' field in the 'campaign' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Tax. References the 'id' field in the 'third_party_shop' table."},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Tax. References the 'id' field in the 'sale' table."},{"name":"trial","type":"STRING","mode":"NULLABLE","description":"The ID of the Trial associated with the Tax. References the 'id' field in the 'trial' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Tax. References the 'id' field in the 'subscription' table."},{"name":"subscription_renewal","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Renewal associated with the Tax. References the 'id' field in the 'subscription_renewal' table."},{"name":"paypal_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Paypal Transaction associated with the Tax. References the 'id' field in the 'paypal_transaction' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Tax. Each id references the 'id' field in the 'shipping' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Tax. Each id references the 'id' field in the 'product_sale' table."},{"name":"salvage_transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Salvage Transaction id's associated with the Tax. Each id references the 'id' field in the 'salvage_transaction' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Tax. Each id references the 'id' field in the 'transaction' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Tax. Each id references the 'id' field in the 'pending_refund' table."}],"table_name":"tax"},{"description":"The third party shop table contains shopping cart domains and/or stores added to RevCent by the user. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.third_party_shop`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Third Party Shop was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the third party shop set by the user."},{"name":"domain","type":"STRING","mode":"NULLABLE","description":"The domain of the third party shop."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the third party shop set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the third party shop is currently enabled (true) or disabled (false)."}],"table_name":"third_party_shop"},{"description":"The tracking domain table contains tracking domains added to RevCent by the user. A tracking domain is a specific user domain which has the RevCent tracking snippet installed. Used for tracking conversions between visitors and sales. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.tracking_domain`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Tracking Domain was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Tracking Domain."},{"name":"name","type":"STRING","mode":"NULLABLE","description":"The name of the tracking domain set by the user."},{"name":"domain","type":"STRING","mode":"NULLABLE","description":"The actual domain."},{"name":"description","type":"STRING","mode":"NULLABLE","description":"The description of the tracking domain set by the user."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the tracking domain is currently enabled (true) or disabled (false)."}],"table_name":"tracking_domain"},{"description":"The tracking entry table contains individual page visits by a tracking visitor to a specific tracking domain. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.tracking_entry`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Tracking Entry was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Tracking Entry."},{"name":"ip_address","type":"STRING","mode":"NULLABLE","description":"The IP address of the tracking visitor."},{"name":"user_agent","type":"STRING","mode":"NULLABLE","description":"The browser agent of the tracking visitor."},{"name":"host","type":"STRING","mode":"NULLABLE","description":"The domain host related to the page visit."},{"name":"pathname","type":"STRING","mode":"NULLABLE","description":"The domain path, i.e. the page, related to the page visit."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The id of a sale associated with the tracking entry, if the individual tracking entry resulted in a purchase attempt, successful or not. References the 'id' field in the 'sale' table."},{"name":"tracking_domain","type":"STRING","mode":"NULLABLE","description":"The id of the tracking domain associated with the tracking entry. References the 'id' field in the 'tracking_domain' table."},{"name":"tracking_visitor","type":"STRING","mode":"NULLABLE","description":"The id of the tracking visitor associated with the tracking entry. References the 'id' field in the 'tracking_visitor' table."}],"table_name":"tracking_entry"},{"description":"The tracking visitor table consists of visitors to a specific user domain tracked by RevCent for conversion statistics and anti-fraud. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.tracking_visitor`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Tracking Visitor was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Tracking Visitor."},{"name":"ip_address","type":"STRING","mode":"NULLABLE","description":"The IP address of the tracking visitor."},{"name":"user_agent","type":"STRING","mode":"NULLABLE","description":"The browser agent of the tracking visitor."},{"name":"fingerprint","type":"STRING","mode":"NULLABLE","description":"The unique browser fingerprint of the tracking visitor. Used for anti-fraud."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]},{"name":"sale","type":"STRING","mode":"REPEATED","description":"An array of sale id's associated with the visitor, if the visitor made one or more purchase attempts. Useful for conversion tracking, indicating whether the visitor attempted to purchase, successfully or not. Use the sale status to check whether the tracking visitor successfully purchased or was declined. References the 'id' field in the 'sale' table."},{"name":"tracking_domain","type":"STRING","mode":"NULLABLE","description":"The id of the tracking domain associated with the visitor. References the 'id' field in the 'tracking_domain' table."}],"table_name":"tracking_visitor"},{"description":"The transaction table consists of credit card transactions processed with a specific merchant gateway, either as a capture or a refund. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.transaction`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Transaction was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Transaction."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The transaction amount."},{"name":"amount_original_total","type":"FLOAT","mode":"NULLABLE","description":"The total calculated amount when an item is first created, ignoring payment status."},{"name":"amount_total","type":"FLOAT","mode":"NULLABLE","description":"The current total calculated amount, ignoring payment status, minus any refunds and discounts applied. Equals: amount_original_total - (amount_refunded + amount_discounted)"},{"name":"amount_net","type":"FLOAT","mode":"NULLABLE","description":"The current net amount, actual money earned minus refunds and fees. Equals: amount_gross - amount_fees"},{"name":"amount_gross","type":"FLOAT","mode":"NULLABLE","description":"The current gross amount, actual money earned minus refunds. Equals: successful payments - successful payments refunded"},{"name":"amount_fees","type":"FLOAT","mode":"NULLABLE","description":"The current amount of calculated fees deducted by a payment processor. Equals: amount_gross * processor_fee_percentage"},{"name":"amount_remaining","type":"FLOAT","mode":"NULLABLE","description":"The current amount remaining to be processed. I.e. trials not yet expired or salvage transactions not yet salvaged. Equals: amount_to_salvage + active_trial_amounts"},{"name":"amount_refunded","type":"FLOAT","mode":"NULLABLE","description":"The current amount of any refunds, including cancelled trial amounts."},{"name":"type","type":"STRING","mode":"NULLABLE","description":"The transaction type, which indicates the transaction origin and/or ecommerce revenue source. Useful for filtering when the user wants a specific revenue source metric.\n            Possible values:\n            1. 'sale_create': An initial sale, i.e. a payment attempt for a sale.\n            2. 'subscription_renew': A subscription renewal, i.e. a recurring payment attempt.\n            3. 'trial_expire': A trial expiration, i.e. A payment attempt after a delayed period of time.\n            4. 'salvage_transaction_process': A salvage transaction, i.e. the attempt to recover a past declined transaction.\n            "},{"name":"code","type":"INTEGER","mode":"NULLABLE","description":"The code indicates the outcome of the transaction when processed with the merchant gateway. 1 = successful, 2 = declined, 3 = error, 4 = merchant hold."},{"name":"approved","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the transaction was approved by the merchant gateway."},{"name":"declined","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the transaction was declines by the merchant gateway."},{"name":"held","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the transaction was held by the merchant gateway."},{"name":"error","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the transaction resulted in a merchant gateway error. Recommended to include is_error = false when querying transactions unless the user wishes to retrieve error statistics."},{"name":"first_6","type":"STRING","mode":"NULLABLE","description":"The first 6 digits of the credit card associated with the transaction. Also known as the credit card BIN."},{"name":"last_4","type":"STRING","mode":"NULLABLE","description":"The last 4 digits of the credit card associated with the transaction."},{"name":"gateway_transaction_id","type":"STRING","mode":"NULLABLE","description":"The associated merchant gateway's transaction ID."},{"name":"gateway_auth_code","type":"STRING","mode":"NULLABLE","description":"The associated merchant gateway's auth code returned when processing a transaction."},{"name":"gateway_avs_result_code","type":"STRING","mode":"NULLABLE","description":"The associated merchant gateway's AVS result code returned when processing a transaction."},{"name":"gateway_cvv_result_code","type":"STRING","mode":"NULLABLE","description":"The associated merchant gateway's CVV result code returned when processing a transaction."},{"name":"gateway_cavv_result_code","type":"STRING","mode":"NULLABLE","description":"The associated merchant gateway's CAVV result code returned when processing a transaction."},{"name":"is_refund","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the transaction was a refund and not a transaction meant to capture funds. \n                Important: ALWAYS include is_refund = false in a query when referencing the transaction table."},{"name":"is_salvage","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the transaction was associated with a salvage transaction."},{"name":"is_smart_bin","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the RevCent SmartBin feature was used to select the merchant gateway to process the transaction."},{"name":"is_three_ds","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether 3DS values were passed to the merchant gateway when processing the transaction."},{"name":"customer_detailed","type":"RECORD","mode":"NULLABLE","description":"Pre populated customer details.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The customer ID. References the 'id' field in the 'customer' table."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."}]},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Transaction was created in live mode (true) or test mode (false)."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"raw_response","type":"STRING","mode":"NULLABLE","description":"The response received from the merchant gateway when processing the transaction."},{"name":"gateway_group","type":"STRING","mode":"NULLABLE"},{"name":"pending_sale_profile","type":"STRING","mode":"NULLABLE","description":"The id of the pending sale profile associated with the transaction, if the transaction was created as part of a pending sale profile."},{"name":"bin_details","type":"RECORD","mode":"NULLABLE","description":"The details of the first_6, a.k.a BIN, of the card.","fields":[{"name":"bin","type":"STRING","mode":"NULLABLE","description":"The BIN, a.k.a first_6."},{"name":"brand","type":"STRING","mode":"NULLABLE","description":"The card brand, i.e. VISA, MASTERCARD, AMERICAN EXPRESS, etc."},{"name":"type","type":"STRING","mode":"NULLABLE","description":"The card type, i.e. CREDIT, DEBIT"},{"name":"issuer","type":"STRING","mode":"NULLABLE","description":"The card issuer, a.k.a. the bank."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The three letter card ISO country, i.e. USA, CAN, etc."}]},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Transaction. References the 'id' field in the 'sale' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Transaction. References the 'id' field in the 'customer' table."},{"name":"customer_card","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer Card associated with the Transaction. References the 'id' field in the 'customer_card' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Transaction. References the 'id' field in the 'subscription' table."},{"name":"subscription_renewal","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription Renewal associated with the Transaction. References the 'id' field in the 'subscription_renewal' table."},{"name":"product_sale","type":"STRING","mode":"REPEATED","description":"An array of individual Product Sale id's associated with the Transaction. Each id references the 'id' field in the 'product_sale' table."},{"name":"gateway","type":"STRING","mode":"NULLABLE","description":"The id of the merchant gateway associated with the transaction. References the 'id' field in the 'gateway' table."},{"name":"tax","type":"STRING","mode":"REPEATED","description":"An array of individual Tax id's associated with the Transaction. Each id references the 'id' field in the 'tax' table."},{"name":"shipping","type":"STRING","mode":"REPEATED","description":"An array of individual Shipping id's associated with the Transaction. Each id references the 'id' field in the 'shipping' table."},{"name":"trial","type":"STRING","mode":"NULLABLE","description":"The ID of the Trial associated with the Transaction. References the 'id' field in the 'trial' table."},{"name":"salvage_transaction","type":"STRING","mode":"NULLABLE","description":"The ID of the Salvage Transaction associated with the Transaction. References the 'id' field in the 'salvage_transaction' table."},{"name":"pending_refund","type":"STRING","mode":"REPEATED","description":"An array of individual Pending Refund id's associated with the Transaction. Each id references the 'id' field in the 'pending_refund' table."},{"name":"chargeback","type":"STRING","mode":"NULLABLE","description":"The ID of the Chargeback associated with the Transaction. References the 'id' field in the 'chargeback' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Transaction. References the 'id' field in the 'campaign' table."},{"name":"api_call","type":"STRING","mode":"NULLABLE","description":"The ID of the Api Call associated with the Transaction. References the 'id' field in the 'api_call' table."},{"name":"payment_profile","type":"STRING","mode":"NULLABLE","description":"The id of the payment profile associated with the transaction, if the transaction was created as part of a payment profile. References the 'id' field in the 'payment_profile' table."},{"name":"subscription_profile","type":"STRING","mode":"NULLABLE","description":"The id of the subscription profile associated with the transaction, if the transaction was created as part of a subscription renewal. References the 'id' field in the 'subscription_profile' table."}],"table_name":"transaction"},{"description":"The trial table contains all trials created. A trial is created when a product with a trial period setting is sold to a customer in a sale. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.trial`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the Trial was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the Trial."},{"name":"amount","type":"FLOAT","mode":"NULLABLE","description":"The amount that the customer will be charged when the trial expires."},{"name":"is_active","type":"BOOLEAN","mode":"NULLABLE","description":"Whether the trial is still active. If false, the trial either expired or was cancelled."},{"name":"customer_detailed","type":"RECORD","mode":"NULLABLE","description":"Pre populated customer details.","fields":[{"name":"id","type":"STRING","mode":"NULLABLE","description":"The customer ID. References the 'id' field in the 'customer' table."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The customer first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The customer last name."},{"name":"address_line_1","type":"STRING","mode":"NULLABLE","description":"The customer address line 1."},{"name":"address_line_2","type":"STRING","mode":"NULLABLE","description":"The customer address line 2."},{"name":"city","type":"STRING","mode":"NULLABLE","description":"The customer city."},{"name":"state","type":"STRING","mode":"NULLABLE","description":"The customer state/province."},{"name":"zip","type":"STRING","mode":"NULLABLE","description":"The customer ZIP/Postal code."},{"name":"country","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"company","type":"STRING","mode":"NULLABLE","description":"The customer country."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The customer email address."},{"name":"phone","type":"STRING","mode":"NULLABLE","description":"The customer phone number."}]},{"name":"start_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the trial started."},{"name":"end_date","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the trial is set to end or expired."},{"name":"live_mode","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the Trial was created in live mode (true) or test mode (false)."},{"name":"iso_currency","type":"STRING","mode":"NULLABLE","description":"The three digit ISO 4217 currency code."},{"name":"payment_type","type":"STRING","mode":"NULLABLE","description":"The payment type, either 'credit_card', 'paypal', 'offline' or 'check_direct'."},{"name":"metadata","type":"RECORD","mode":"REPEATED","description":"An array of metadata entries, each entry consisting of a name, value and entry date.","fields":[{"name":"name","type":"STRING","mode":"NULLABLE","description":"The metadata name."},{"name":"value","type":"STRING","mode":"NULLABLE","description":"The metadata value."},{"name":"entry_date","type":"STRING","mode":"NULLABLE","description":"The timestamp of when the metadata was added."}]},{"name":"sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Sale associated with the Trial. References the 'id' field in the 'sale' table."},{"name":"product_sale","type":"STRING","mode":"NULLABLE","description":"The ID of the Product Sale associated with the Trial. References the 'id' field in the 'product_sale' table."},{"name":"product","type":"STRING","mode":"NULLABLE","description":"The ID of the Product associated with the Trial. References the 'id' field in the 'product' table."},{"name":"customer","type":"STRING","mode":"NULLABLE","description":"The ID of the Customer associated with the Trial. References the 'id' field in the 'customer' table."},{"name":"subscription","type":"STRING","mode":"NULLABLE","description":"The ID of the Subscription associated with the Trial. References the 'id' field in the 'subscription' table."},{"name":"third_party_shop","type":"STRING","mode":"NULLABLE","description":"The ID of the Third Party Shop associated with the Trial. References the 'id' field in the 'third_party_shop' table."},{"name":"campaign","type":"STRING","mode":"NULLABLE","description":"The ID of the Campaign associated with the Trial. References the 'id' field in the 'campaign' table."},{"name":"coupon","type":"STRING","mode":"REPEATED","description":"An array of individual Coupon id's associated with the Trial. Each id references the 'id' field in the 'coupon' table."},{"name":"discount","type":"STRING","mode":"REPEATED","description":"An array of individual Discount id's associated with the Trial. Each id references the 'id' field in the 'discount' table."},{"name":"transaction","type":"STRING","mode":"REPEATED","description":"An array of individual Transaction id's associated with the Trial. Each id references the 'id' field in the 'transaction' table."}],"table_name":"trial"},{"description":"The user table contains users associated with the RevCent account, including account owner, administrator, supervisors and employees. Reference this table in a BigQuery standard SQL query by using backticks with \"revcent\" as project ID and \"user\" as dataset ID. Example: `revcent.user.user`","fields":[{"name":"created_at","type":"TIMESTAMP","mode":"NULLABLE","description":"The timestamp of when the User was created."},{"name":"id","type":"STRING","mode":"NULLABLE","description":"The ID of the User."},{"name":"username","type":"STRING","mode":"NULLABLE","description":"The username for the user."},{"name":"first_name","type":"STRING","mode":"NULLABLE","description":"The user first name."},{"name":"last_name","type":"STRING","mode":"NULLABLE","description":"The user last name."},{"name":"email","type":"STRING","mode":"NULLABLE","description":"The user email address"},{"name":"organization","type":"STRING","mode":"REPEATED","description":"An array of organization id's the user is associated with."},{"name":"enabled","type":"BOOLEAN","mode":"NULLABLE","description":"Indicates whether the user is currently enabled (true) or disabled (false)."},{"name":"user_type","type":"STRING","mode":"NULLABLE","description":"The user type. Can be one of: ['owner', 'administrator', 'supervisor' and 'employee']"}],"table_name":"user"}]