vaultix_cancel_charge
Cancel pending or authorized payments in the Vaultix Payment API by providing the charge ID to stop transactions before completion.
Instructions
Cancel a pending or authorized charge
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Charge ID to cancel |
Implementation Reference
- src/tools/index.ts:452-453 (handler)Handler logic within the handleToolCall switch statement. Posts a cancellation request to the Vaultix API endpoint `/charges/${id}/cancel` using the provided charge ID.case 'vaultix_cancel_charge': return client.post(`/charges/${args.id}/cancel`)
- src/tools/index.ts:58-64 (schema)Input schema definition requiring a 'id' parameter of type string for the charge ID to cancel.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Charge ID to cancel' }, }, required: ['id'], },
- src/tools/index.ts:55-65 (registration)Tool registration entry in the exported tools array, including name, description, and input schema.{ name: 'vaultix_cancel_charge', description: 'Cancel a pending or authorized charge', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Charge ID to cancel' }, }, required: ['id'], }, },