Skip to main content
Glama
modellers

ConsignCloud MCP Server

by modellers

void_sale

Cancel a completed sale transaction in ConsignCloud by providing the sale ID to reverse the sale and update inventory records.

Instructions

Void a sale

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSale ID

Implementation Reference

  • src/server.ts:125-135 (registration)
    Registration of the 'void_sale' MCP tool, including name, description, and input schema requiring a sale ID.
    { name: 'void_sale', description: 'Void a sale', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Sale ID' }, }, required: ['id'], }, },
  • MCP server request handler case for 'void_sale' tool. Parses args, calls client.voidSale(id), and returns JSON response.
    case 'void_sale': return { content: [{ type: 'text', text: JSON.stringify(await client.voidSale((args as any).id), null, 2) }] };
  • Core implementation of voidSale: Makes POST request to ConsignCloud API endpoint `/sales/${id}/void` and converts the response using convertSaleResponse.
    async voidSale(id: string): Promise<Sale> { const response = await this.client.post(`/sales/${id}/void`); return this.convertSaleResponse(response.data); }

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/modellers/mcp-consigncloud'

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