refund
Process refunds for VNPay transactions by providing order ID, amount, and original transaction date. Choose full or partial refund.
Instructions
Refund a VNPay transaction.
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": {
"order_id": "<order_id>",
"amount": "<amount>",
"trans_date": "<trans_date>"
},
"name": "refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Order ID to refund | |
| amount | Yes | Refund amount in VND | |
| trans_date | Yes | Original transaction date (yyyyMMddHHmmss) | |
| trans_type | No | 02=full refund, 03=partial refund | 02 |
| ip_addr | No | IP address | 127.0.0.1 |
| create_by | No | User who creates refund | system |