whmcs_pending_order
Change order status to pending in WHMCS by specifying the order ID. This tool helps manage order processing workflows in your WHMCS installation.
Instructions
Set an order status to pending
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderid | Yes | Order ID |
Implementation Reference
- src/index.ts:851-865 (registration)Registration of the 'whmcs_pending_order' MCP tool, including input schema definition (orderid: number), title, description, and thin handler wrapper that delegates to whmcsClient.pendingOrder'whmcs_pending_order', { title: 'Set Order to Pending', description: 'Set an order status to pending', inputSchema: { orderid: z.number().describe('Order ID'), }, }, async (params) => { const result = await whmcsClient.pendingOrder(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } );
- src/whmcs-client.ts:1038-1040 (handler)Core handler implementation for setting an order to pending status. Calls the WHMCS API action 'PendingOrder' with the provided orderid via the generic call method.async pendingOrder(params: { orderid: number }) { return this.call<WhmcsApiResponse>('PendingOrder', params); }
- src/index.ts:855-857 (schema)Zod input schema validation for the tool: requires 'orderid' as a number.inputSchema: { orderid: z.number().describe('Order ID'), },