Schema:

Data Sharing Usage

MARKETPLACE_DISBURSEMENT_REPORT View

The MARKETPLACE_DISBURSEMENT_REPORT view in the Data Sharing Usage schema lets you query the history of your earnings from paid listings in the Snowflake Marketplace.

The view includes the history for a specific listing. Only visible to providers of paid listings, this view includes the history of payment statuses per invoice for purchased listings.

Columns

Column NameData TypeDescription
STRIPE_DISPLAY_NUMBERVARCHARThe Stripe invoice or display number.
EVENT_DATEDATEDate when the payment event occurred.
EVENT_TYPEVARCHARType of event (payment).
INVOICE_DATEDATEDate of the invoice.
LISTING_NAMEVARCHARIdentifier for the listing.
LISTING_DISPLAY_NAMEVARCHARDisplay name for the listing.
LISTING_GLOBAL_NAMEVARCHARGlobal name of the listing.
CHARGE_TYPEVARCHARType of charge assessed. For more information about the components of the pricing model for paid listings, see Paid Listings Pricing Models. Possible values: FIXED: Per-month charges. Also includes per-query charges if included by the provider in the pricing plan for the listing. VARIABLE: Per-query charges only.
GROSSDECIMALGross amount billed to the consumer.
FEESDECIMALPre-tax fees, owed to Snowflake by the provider. Snowflake subtracts the fees from the gross amount.
TAXESDECIMALSales tax (on the fees), owed to Snowflake by the provider. Snowflake subtracts the taxes from the gross amount.
NET_AMOUNTDECIMALActual amount to be paid to the provider. The equation for this is: NET_AMOUNT = GROSS - FEES - TAXES.
CURRENCYVARCHARUSD
CONSUMER_ACCOUNT_NAMEVARCHARName of the consumer account.
CONSUMER_ACCOUNT_LOCATORVARCHARAccount locator for the consumer account.
CONSUMER_ORGANIZATION_NAMEVARCHARName of the consumer organization.

Usage Notes

  • Latency for the view can be up to 48 hours (2 days).
  • The data is retained for 365 days (1 year).

Examples

Retrieve the total amount disbursed to a provider’s bank account for each month for each listing:

SELECT
  event_date
, listing_name
, listing_display_name
, listing_global_name
, currency
, SUM(net_amount) AS net_amount
FROM snowflake.data_sharing_usage.marketplace_disbursement_report
WHERE event_type = 'payment'
GROUP BY 1,2,3,4,5;

Retrieve the total amount that has been disbursed for each invoice period, grouped by listing and charge type. Note that the invoice period could be spread out over multiple report dates:

SELECT
  invoice_date
, listing_name
, listing_display_name
, listing_global_name
, charge_type
, currency
, SUM(gross) AS gross
, SUM(fees) AS fees
, SUM(taxes) AS taxes
, SUM(net_amount) AS net_amount
FROM snowflake.data_sharing_usage.marketplace_disbursement_report
WHERE event_type = 'payment'
GROUP BY 1,2,3,4,5,6;