Select a vendor coupon
zoodex_select_couponApply a vendor coupon to the cart and get the recalculated total, or pass -1 to remove it. Use it to adjust cart pricing before checkout.
Instructions
Apply a vendor coupon (from zoodex_vendor_coupons) to the cart and return the recalculated cart. Use coupon_id=-1 to remove the coupon.
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": {
"vendor_slug": "<vendor_slug>",
"coupon_id": "<coupon_id>"
},
"name": "zoodex_select_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon_id | Yes | ||
| vendor_slug | Yes |