whmcs_fraud_order
Mark suspicious orders as fraudulent in WHMCS to prevent unauthorized transactions and optionally cancel associated subscriptions.
Instructions
Mark an order as fraudulent
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderid | Yes | Order ID | |
| cancelsub | No | Cancel subscription |
Implementation Reference
- src/whmcs-client.ts:1028-1033 (handler)The fraudOrder method implements the core tool logic by invoking the WHMCS 'FraudOrder' API endpoint.async fraudOrder(params: { orderid: number; cancelsub?: boolean; }) { return this.call<WhmcsApiResponse>('FraudOrder', params); }
- src/index.ts:832-848 (registration)MCP server registration for the 'whmcs_fraud_order' tool, defining input schema and linking to the handler.server.registerTool( 'whmcs_fraud_order', { title: 'Mark Order as Fraud', description: 'Mark an order as fraudulent', inputSchema: { orderid: z.number().describe('Order ID'), cancelsub: z.boolean().optional().describe('Cancel subscription'), }, }, async (params) => { const result = await whmcsClient.fraudOrder(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );
- src/index.ts:837-840 (schema)Zod input schema validation for the tool parameters.inputSchema: { orderid: z.number().describe('Order ID'), cancelsub: z.boolean().optional().describe('Cancel subscription'), },