List raw payments
list_paymentsRaw payments, newest first, including refunds and free trials (flagged), each with the customer and the first visit that brought them (channel, source, landing page). Use it to see which traffic each sale came from. Pass nextCursor back as cursor. Requires the visitors scope.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_payments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD (inclusive). | |
| from | No | First day, YYYY-MM-DD (inclusive). Use with to. | |
| limit | No | Rows to return (1–200). | |
| cursor | No | nextCursor from the previous answer, for the next page. Keep the other arguments the same. | |
| period | No | Preset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set. | |
| filters | No | Up to six visitor filters, all of which must match. op: is, is_not (exact); contains, not_contains, starts_with, ends_with (literal text, letter case ignored); regex, not_regex (case-insensitive regular expressions up to 200 characters, without lookarounds, backreferences or repeated groups like (a+)+); is_empty, is_not_empty (no values: send []; e.g. utmCampaign is_empty = visitors who never had a campaign); gt, lt and is for visits. dim urlParam also needs key, the URL parameter name (one of the site's kept parameters): {"dim":"urlParam","key":"plan","op":"is","values":["pro"]}. dim prop (event property) needs key, the property name, and optionally goal to look only at that goal's events; values match as text (numbers and true/false too), and a visitor matches with at least one such event: {"dim":"prop","key":"plan","goal":"signup","op":"is","values":["growth"]} (list_event_properties lists names and values). dim trait needs key, a person's identify trait (get_visitor_traits lists them): {"dim":"trait","key":"role","op":"is","values":["founder"]}. Other dimensions take no key or goal. A 400 filter_too_slow means the regex was too slow: simplify it. | |
| user_id | No | Only this user's payments. | |
| timezone | No | IANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC. | |
| visitor_id | No | Only this visitor's payments. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). | |
| attribution | No | false leaves out customer and first-touch attribution (faster). Default true. | |
| customer_id | No | Only this provider customer's payments, e.g. cus_… | |
| transaction_id | No | Only this payment. |