Set Order to Pending
whmcs_pending_orderSet an order's status to pending in WHMCS by providing its order ID.
Instructions
Set an order status to pending
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderid | Yes | Order ID |
Implementation Reference
- src/index.ts:869-884 (registration)Registration of the 'whmcs_pending_order' tool via server.registerTool() with input schema (orderid) and handler delegating to whmcsClient.pendingOrder()
server.registerTool( '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/index.ts:878-883 (handler)Handler function for whmcs_pending_order that calls whmcsClient.pendingOrder(params) and returns the result as JSON text content
async (params) => { const result = await whmcsClient.pendingOrder(params); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } - src/index.ts:874-877 (schema)Input schema for whmcs_pending_order: requires orderid as a number
inputSchema: { orderid: z.number().describe('Order ID'), }, }, - src/whmcs-client.ts:1048-1053 (helper)PendingOrder API client method in WhmcsApiClient class. Calls WHMCS API action 'PendingOrder' with the orderid parameter via the generic this.call() method
/** * Set order to pending */ async pendingOrder(params: { orderid: number }) { return this.call<WhmcsApiResponse>('PendingOrder', params); }