calculateOrderCashback
Calculate the cashback amount for an order based on total paid, discount, and shipping costs.
Instructions
Create cashback
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": {
"totalPaid": "<totalPaid>",
"totalDiscount": "<totalDiscount>",
"totalShipping": "<totalShipping>"
},
"name": "calculateOrderCashback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| mobile | No | ||
| merchant | No | This object contains deta | |
| lineItems | No | An array containing detai | |
| totalPaid | Yes | ||
| customerId | No | ||
| totalPrice | No | ||
| totalDiscount | Yes | ||
| totalShipping | Yes |