nevent_event_sales_provenance
Where the ticket sales of ONE event come from (nev-data-api, analytics warehouse). Pick the event with nevent_list_events (TICKETED events), then choose a view. summary (default): sales grouped by dimension — provider, distribution channel, purchase channel, promo code or marketing (UTM source > medium > campaign; drill down with level + parent, copying the group key from the previous response); returns the top groups and an «Otros» bucket. daily: day-by-day series stacked by one dimension (provider | distribution | purchaseChannel | promoCode). campaigns: sales attributed to Nevent campaigns through tracking links. overview: totals, coverage and freshness of each block — read it first to know how much of the data carries provenance. from and to (YYYY-MM-DD, purchase days in tz, default Europe/Madrid) are required. Currencies are never added together: omit currency for one block per currency, or pass EUR. population defaults to SETTLED_SALES (settled sales); ALL_REPORTED includes refunded purchases and is NOT collected revenue. Amounts are the gross reported by the source, never net. Provenance fields can be missing: coverage and «unknown» buckets are part of the answer, do not present them as zero or as organic. The data is a warehouse (lags the sale by the pipeline); the view reports its freshness. Scoped to the active tenant and its descendants by the session JWT.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_id": "<event_id>",
"from": "<from>",
"to": "<to>"
},
"name": "nevent_event_sales_provenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Last purchase day, YYYY-MM-DD, inclusive. Max range 3660 days. | |
| tz | No | IANA time zone that defines the purchase days. Default Europe/Madrid. | |
| top | No | Groups to list before collapsing the rest into «Otros». summary: 1-50, default 20. daily: 1-10, default 4. | |
| from | Yes | First purchase day, YYYY-MM-DD (local day of tz). Required by every view. | |
| view | No | What to return. summary (default): sales grouped by provider / distribution / purchase channel / promo code / marketing (UTM). daily: dense day-by-day series stacked by one distribution dimension. campaigns: sales attributed to Nevent campaigns through tracking links. overview: totals, coverage and data freshness per block. | |
| level | No | summary with dimension=marketing only: source (default), medium or campaign. medium and campaign need parent. | |
| parent | No | summary with dimension=marketing and level=medium|campaign: the key of the group one level up, copied verbatim from a previous summary response. | |
| search | No | summary only: filter groups by text (max 100 chars). | |
| currency | No | ISO 4217 currency (EUR). NONE selects purchases without currency. Omit to get one block per currency: amounts of different currencies are never added together. | |
| event_id | Yes | Event ID (24-char hex). Get it from nevent_list_events. | |
| dimension | No | Grouping dimension. summary: provider | distribution | purchaseChannel | promoCode | marketing (default marketing). daily: provider | distribution | purchaseChannel | promoCode (default distribution; marketing is not allowed). Not valid for overview/campaigns. | |
| population | No | Which purchases to count. SETTLED_SALES (default): settled sales. REFUNDED_FULL: fully refunded. REFUNDED_UNREPRESENTABLE: other refunds (may be partial, refunded amount unknown). ALL_REPORTED: all of the above plus unrecognised states; its gross includes refunded purchases, so it is NOT collected revenue. |