validate_promotion
ActiveTool of FavCRM
declared in 1.0.0
Check if a promotion code is valid for a given order. Returns isValid, discount amount, and an error code/message if invalid. Use before applying to a checkout.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"promotionCode",
"channel",
"amount"
],
"properties": {
"amount": {
"type": "number",
"description": "Order subtotal in major units (dollars, not cents)"
},
"channel": {
"enum": [
"booking",
"event",
"online",
"pos"
],
"type": "string",
"description": "Where the promo is being applied"
},
"accountId": {
"type": "string",
"description": "Customer account ID — used for per-customer usage limits"
},
"promotionCode": {
"type": "string",
"description": "The code customer entered"
}
}
}Parent server
FavCRM
https://github.com/favcrm/mcp
1/7 registries