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.
Input Schema
TableJSON 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. |