create_coupon_config
Create a reusable coupon template that sets validity dates, discount linkage, starting credits, and single-use rules so generated coupon codes inherit its settings.
Instructions
Create a new coupon configuration in Fakturia. A coupon configuration serves as a template for generating coupon codes. It defines the validity window, the linked discount configuration, optional starting credits, and whether the coupon is single-use. Coupon codes generated from this configuration inherit its settings.
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": {
"name": "<name>"
},
"name": "create_coupon_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique name for the coupon configuration. Used to identify and reference this coupon template. | |
| validTo | No | End date after which coupon codes generated from this configuration are no longer valid, in ISO 8601 format (YYYY-MM-DD). | |
| validFrom | No | Start date from which coupon codes generated from this configuration become valid, in ISO 8601 format (YYYY-MM-DD). | |
| oneTimeUse | No | Whether coupon codes generated from this configuration can only be redeemed once. If true, a code becomes invalid after its first redemption. | |
| description | No | Human-readable description of the coupon configuration explaining its purpose, target audience, or promotion details. | |
| projectName | No | Name of the project to associate this coupon configuration with. | |
| startCredits | No | Initial credit amount granted when a coupon code from this configuration is redeemed. Used for credit-based coupons rather than percentage discounts. | |
| discountConfigName | No | Name of the discount configuration to link to this coupon. When a coupon code is redeemed, the linked discount configuration determines the discount percentage and applicability rules. | |
| startCreditsCurrency | No | Currency code (ISO 4217, e.g. "EUR", "USD") for the startCredits amount. |