Redeem one coupon
redeem_single_couponConfirm one coupon as a final commercial redemption after quoting, using the same cart/context; record payment only after external confirmation.
Instructions
Confirm one coupon as a commercial operation. Normally call after quote_single_coupon and send the same cart/context. Provide cart_id, context.user.id, or quote_id for correlation. Include payment only after external confirmation; Cupom Center does not charge money.
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": {
"coupon_code": "<coupon_code>",
"context": "<context>"
},
"name": "redeem_single_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | ||
| context | Yes | ||
| payment | No | ||
| order_id | No | ||
| quote_id | No | ||
| coupon_code | Yes | Coupon code supplied or selected for the customer. |