get_merchant_details
Retrieve merchant account information like business name, gateway ID, and payment processors from Authorize.net to verify account setup and configuration.
Instructions
Get merchant account information including name, gateway ID, and processors.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:162-181 (handler)The handler function that executes the get_merchant_details tool logic: creates API request, calls controller, handles response, and returns formatted merchant details.async function getMerchantDetails() { const request = new ApiContracts.GetMerchantDetailsRequest(); request.setMerchantAuthentication(getMerchantAuth()); const ctrl = new ApiControllers.GetMerchantDetailsController(request.getJSON()); const response = await executeController(ctrl); const apiResponse = new ApiContracts.GetMerchantDetailsResponse(response); if (apiResponse.getMessages().getResultCode() !== ApiContracts.MessageTypeEnum.OK) { const errors = apiResponse.getMessages().getMessage(); throw new Error(`API Error: ${errors[0].getCode()} - ${errors[0].getText()}`); } return { merchantName: apiResponse.getMerchantName(), gatewayId: apiResponse.getGatewayId(), processors: apiResponse.getProcessors(), contactDetails: apiResponse.getContactDetails(), }; }
- src/index.ts:282-288 (schema)Tool schema definition in the ListTools response, including name, description, and input schema (no inputs required).name: "get_merchant_details", description: "Get merchant account information including name, gateway ID, and processors.", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:328-330 (registration)Tool registration in the switch statement of the CallToolRequestSchema handler, dispatching to the getMerchantDetails function.case "get_merchant_details": result = await getMerchantDetails(); break;