create_refund
Issues a refund against an existing Omise charge, supporting full or partial amounts with an optional reason and metadata.
Instructions
Create a refund for a charge
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": {
"charge_id": "<charge_id>"
},
"name": "create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Refund amount in the smallest currency unit (optional, defaults to full amount) | |
| reason | No | Reason for the refund | requested_by_customer |
| metadata | No | Additional metadata for the refund | |
| charge_id | Yes | Charge ID to refund | |
| description | No | Refund description |