payware_operations_cancel_transaction
Cancel an ACTIVE transaction you created before it is processed, using the transaction ID and a required status message; only the originating merchant can perform the cancellation.
Instructions
[Merchant] Cancel an ACTIVE transaction created by this merchant. Only the merchant who created the transaction can cancel it, and only before it has been processed.
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": {
"transactionId": "<transactionId>",
"statusMessage": "<statusMessage>"
},
"name": "payware_operations_cancel_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| partnerId | No | Partner ID from payware dashboard. Can use PAYWARE_PARTNER_ID env var as default. | partner_12345 |
| privateKey | No | RSA private key for JWT token creation. Can use PAYWARE_PRIVATE_KEY_PATH env var as default. | |
| useSandbox | No | Use sandbox environment for testing | |
| statusMessage | Yes | Reason for cancellation (required) | |
| transactionId | Yes | Transaction ID to cancel (must be an ACTIVE 'pw' transaction created by this merchant). Format: 'pw' + 8 characters. Product ('pr') and soundbite ('ps') ids are NOT cancellable - deactivate those through the products API. |