Cancel transaction
cancel_transactionCancel a Midtrans transaction by order_id when it is still cancellable, such as a pending payment. This changes real merchant account state, so use it deliberately.
Instructions
Cancel a Midtrans transaction by order_id. Only works for transactions that can still be cancelled (e.g. pending payments). This changes real state in the merchant account — use deliberately.
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>"
},
"name": "cancel_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The order_id to cancel. |