Check a discount code
zoodex_check_offer_codeCalculates the discount an offer code applies to the current cart before checkout, with prices shown in toman.
Instructions
Check how much a discount (offer) code takes off the current cart before ordering. Prices are in toman (the API uses rials; 1 toman = 10 rials).
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": {
"code": "<code>"
},
"name": "zoodex_check_offer_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |