reactivate_store
Reactivate a specific store in the ShipStation API by providing its unique store ID, enabling continued management of orders, shipments, and fulfillments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | Yes | Store ID to reactivate |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"storeId": {
"description": "Store ID to reactivate",
"type": "number"
}
},
"required": [
"storeId"
],
"type": "object"
}
Implementation Reference
- src/tools/store-tools.js:107-119 (handler)The main execution logic for the 'reactivate_store' tool. It calls the ShipStation API client to reactivate the store and returns formatted success or error response.handler: async ({ storeId }) => { try { const result = await shipStationClient.reactivateStore(storeId); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
- src/tools/store-tools.js:104-106 (schema)Zod schema defining the required input parameter 'storeId' as a number.schema: { storeId: z.number().describe("Store ID to reactivate") },
- src/server.js:184-191 (registration)The MCP server registration code that registers the 'reactivate_store' tool (included in storeTools array) by calling server.tool() with its name, schema, handler, and description.].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
- src/api-client.js:186-188 (helper)The ShipStationClient helper method that performs the actual HTTP POST request to the ShipStation API endpoint '/stores/reactivate'.async reactivateStore(storeId) { return this.request('POST', '/stores/reactivate', { storeId }); }