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
| Name | Required | Description | Default |
|---|---|---|---|
| customerProfileId | Yes | The customer profile ID to retrieve transactions for. |
Implementation Reference
- src/index.ts:111-126 (handler)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() || []; } - src/index.ts:242-251 (schema)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"], }, }, - src/index.ts:316-318 (helper)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;