AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { Property, createAction } from '@activepieces/pieces-framework';
import { shopifyAuth } from '../..';
import { getTransactions } from '../common';
export const getTransactionsAction = createAction({
auth: shopifyAuth,
name: 'get_transactions',
classification: 'SEARCH',
displayName: 'Get Order Transactions',
description: `Get an order's transactions.`,
audience: 'both',
aiMetadata: { description: "List all payment transactions (authorizations, captures, refunds, voids) recorded against a specific Shopify order, given the order ID. Use to inspect an order's financial history. Read-only and idempotent.", idempotent: true },
props: {
orderId: Property.Number({
displayName: 'Order ID',
description: "From the order's URL in Shopify admin, not its #1001 number.",
required: true,
}),
},
async run({ auth, propsValue }) {
const { orderId } = propsValue;
return await getTransactions(orderId, auth);
},
});