calculate_discount
Calculate discounted prices for art supplies using percentage, fixed amount, loyalty, or bulk order discounts based on product SKU and quantity.
Instructions
Calculate discounted price for promotions, bulk orders, or loyalty rewards.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
discountType | Yes | Type: percentage, fixed, loyalty, bulk | |
discountValue | Yes | Discount percentage or fixed amount | |
quantity | No | Quantity for bulk pricing | |
sku | Yes | Product SKU |
Input Schema (JSON Schema)
{
"properties": {
"discountType": {
"description": "Type: percentage, fixed, loyalty, bulk",
"type": "string"
},
"discountValue": {
"description": "Discount percentage or fixed amount",
"type": "number"
},
"quantity": {
"description": "Quantity for bulk pricing",
"type": "number"
},
"sku": {
"description": "Product SKU",
"type": "string"
}
},
"required": [
"sku",
"discountType",
"discountValue"
],
"type": "object"
}