cancel_payment
Cancel a pending payment when the payment result is not returned in a timely manner, provided the request is within the cancellable period.
Instructions
The tool is used to cancel the payment if the payment result is not returned after a long time. The cancellation cannot be performed if being out of the cancellable period specified in the contract.
Args:
payment_request_id: The unique ID that is assigned by a merchant to identify a payment request.Maximum length: 64 characters
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": {
"payment_request_id": "<payment_request_id>"
},
"name": "cancel_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payment_request_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |