Credit the wallet for a debit
wallet_credit_for_debitStaff only. Credits the customer's wallet through the credit-note path for a debit being refunded, up to what is left on it. Without confirm it shows a preview and changes nothing.
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": {
"debit_transaction_id": "<debit_transaction_id>",
"reason": "<reason>"
},
"name": "wallet_credit_for_debit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Optional. Defaults to what is left to refund on that debit. | |
| reason | Yes | Why the customer is credited. | |
| confirm | No | Do it. Omitted: shows a preview and changes nothing. | |
| consumer_user_id | No | Act on this seat (own seat, account owner or admin, or staff). Same checks as the site. | |
| debit_transaction_id | Yes | The debit being refunded. |