DiscountAndFees_Create
Create discounts and fees in ServiceTitan by defining type, code, display name, amount, and additional parameters. Ideal for streamlining pricing adjustments and financial configurations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
account | No | Discount and fees account | |
active | No | Discount and fees active | |
amount | Yes | Discount and fees amount | |
amountType | No | Discount and fees amount type | |
assets | No | Discount and fees assets | |
bonus | No | Discount and fees bonus | |
categories | No | Discount and fees categories | |
code | Yes | Discount and fees code | |
commissionBonus | No | Discount and fees commission bonus | |
crossSaleGroup | No | Discount and fees cross sale group | |
description | No | Discount and fees description | |
displayName | Yes | Discount and fees display name | |
excludeFromPayroll | No | Discount and fees exclude from payroll | |
externalData | No | Discount and fees external data | |
hours | No | Discount and fees hours | |
limit | No | Discount and fees limit | |
paysCommission | No | Discount and fees pays commission | |
taxable | No | Discount and fees taxable | |
tenant | Yes | Format - int64. Tenant ID | |
type | No | Discount and fees type |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"account": {
"description": "Discount and fees account",
"type": "string"
},
"active": {
"description": "Discount and fees active",
"type": "boolean"
},
"amount": {
"description": "Discount and fees amount",
"type": "number"
},
"amountType": {
"description": "Discount and fees amount type",
"type": "string"
},
"assets": {
"description": "Discount and fees assets",
"items": {
"additionalProperties": false,
"properties": {
"alias": {
"type": "string"
},
"fileName": {
"type": "string"
},
"isDefault": {
"type": "boolean"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"bonus": {
"description": "Discount and fees bonus",
"type": "number"
},
"categories": {
"description": "Discount and fees categories",
"items": {
"type": "number"
},
"type": "array"
},
"code": {
"description": "Discount and fees code",
"type": "string"
},
"commissionBonus": {
"description": "Discount and fees commission bonus",
"type": "number"
},
"crossSaleGroup": {
"description": "Discount and fees cross sale group",
"type": "string"
},
"description": {
"description": "Discount and fees description",
"type": "string"
},
"displayName": {
"description": "Discount and fees display name",
"type": "string"
},
"excludeFromPayroll": {
"description": "Discount and fees exclude from payroll",
"type": "boolean"
},
"externalData": {
"description": "Discount and fees external data",
"items": {
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"hours": {
"description": "Discount and fees hours",
"type": "number"
},
"limit": {
"description": "Discount and fees limit",
"type": "number"
},
"paysCommission": {
"description": "Discount and fees pays commission",
"type": "boolean"
},
"taxable": {
"description": "Discount and fees taxable",
"type": "boolean"
},
"tenant": {
"description": "Format - int64. Tenant ID",
"type": "integer"
},
"type": {
"description": "Discount and fees type",
"type": "string"
}
},
"required": [
"tenant",
"code",
"displayName",
"amount"
],
"type": "object"
}