apply_gift_card
Apply a gift card to an existing cart using the card number and PIN to deduct from the total.
Instructions
apply a gift card to a cart.
Args: cart_id: The cart ID card_number: Gift card number pin: Gift card PIN
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": {
"cart_id": "<cart_id>",
"card_number": "<card_number>",
"pin": "<pin>"
},
"name": "apply_gift_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | ||
| card_number | Yes | ||
| pin | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |