getDayPassesTransactions
List day passes transactions. Provide customerRef or locationRef. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Set only one of them, not both. amount is always positive and counted in whole day passes, so read type to tell an allocation from spending. Filter by type or createDate range.
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": "getDayPassesTransactions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by what moved the day passes: allocations add passes ('adminAllocation' granted by an admin, 'subscriptionAllocation' from a plan, 'purchaseAllocation' from a bought package); 'booking' and 'adminCharge' spend them; 'refund' returns them; 'expiration' and 'subscriptionExpiration' remove unused passes. Matches analytics report type filters. Comma-separated, one or more of: adminAllocation, adminCharge, booking, expiration, purchaseAllocation, refund, subscriptionAllocation, subscriptionExpiration. | |
| limit | No | Maximum number of transactions per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| customerRef | No | UUID of the company or membership whose day pass transactions to list. | |
| locationRef | No | UUID of the location whose day pass transactions to list. | |
| nextPageToken | No | Token to retrieve the next page of results. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transactions | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |