Skip to main content
Glama
alamedaim-apps

Authorize.net MCP Server

get_customer_profile_transaction_list

Retrieve all transaction records for a specific customer profile ID from Authorize.net payment history to review payment activity and track customer purchases.

Instructions

Get all transactions for a specific customer profile ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
customerProfileIdYesThe customer profile ID to retrieve transactions for.

Implementation Reference

  • The main handler function that fetches the transaction list for a given customer profile ID using the Authorize.Net GetTransactionListForCustomer API.
    async function getCustomerProfileTransactionList(customerProfileId: string) {
      const request = new ApiContracts.GetTransactionListForCustomerRequest();
      request.setMerchantAuthentication(getMerchantAuth());
      request.setCustomerProfileId(customerProfileId);
    
      const ctrl = new ApiControllers.GetTransactionListForCustomerController(request.getJSON());
      const response = await executeController(ctrl);
    
      const apiResponse = new ApiContracts.GetTransactionListResponse(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 apiResponse.getTransactions() || [];
    }
  • Input schema defining the required 'customerProfileId' parameter as a string.
    inputSchema: {
      type: "object",
      properties: {
        customerProfileId: {
          type: "string",
          description: "The customer profile ID to retrieve transactions for.",
        },
      },
      required: ["customerProfileId"],
    },
  • src/index.ts:239-252 (registration)
    Tool registration in the listTools response, including name, description, and input schema.
    {
      name: "get_customer_profile_transaction_list",
      description: "Get all transactions for a specific customer profile ID.",
      inputSchema: {
        type: "object",
        properties: {
          customerProfileId: {
            type: "string",
            description: "The customer profile ID to retrieve transactions for.",
          },
        },
        required: ["customerProfileId"],
      },
    },
  • Dispatcher switch case that routes the tool call to the handler function.
    case "get_customer_profile_transaction_list":
      result = await getCustomerProfileTransactionList(args?.customerProfileId as string);
      break;

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/alamedaim-apps/authnet-mcp'

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