Skip to main content
Glama

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
NameRequiredDescriptionDefault
orderidYesOrder ID
cancelsubNoCancel subscription

Implementation Reference

  • 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) }], }; } );
  • Zod input schema validation for the tool parameters.
    inputSchema: { orderid: z.number().describe('Order ID'), cancelsub: z.boolean().optional().describe('Cancel subscription'), },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scarecr0w12/whmcs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server