tiendanube_apply_cart_coupon
Apply a discount coupon code to a cart using the cart ID and token. Validates and applies the coupon to reduce the total cost.
Instructions
APPLY CART COUPON - Apply a discount coupon code to the cart.
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": "tiendanube_apply_cart_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | Cart numeric ID | |
| cart_token | No | Cart token string | |
| code | Yes | Coupon code |