campaigns_getcosts
Retrieve campaign cost data by specifying tenant ID, year, month, and optional pagination or sorting parameters to analyze and manage marketing expenses within ServiceTitan.
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": {
"id": "<id>",
"tenant": "<tenant>"
},
"name": "campaigns_getcosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Format - int64. | |
| includeTotal | No | Whether total count should be returned | |
| month | No | Format - int32. | |
| page | No | Format - int32. The logical number of page to return, starting from 1 | |
| pageSize | No | Format - int32. How many records to return (50 by default) | |
| sort | No | Applies sorting by the specified field: "?sort=+FieldName" for ascending order, "?sort=-FieldName" for descending order. Available fields are: Id, Date (Year + Month) | |
| tenant | Yes | Format - int64. Tenant ID | |
| year | No | Format - int32. |