TicketSauce ACTION
Get Orders
Get a list of orders from the specified event. See documentation
- Action
- Read only
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's TicketSauce account once, then configure and run Get Orders from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "ticketsauce-get-orders",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
ticketsauce: { authProvisionId: "apn_xxxxxxx" },
partnerId: "Partner ID",
organizationId: "Organization ID",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "ticketsauce-get-orders",
"configured_props": {
"ticketsauce": { "authProvisionId": "apn_xxxxxxx" },
"partnerId": "Partner ID",
"organizationId": "Organization ID"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "ticketsauce",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "ticketsauce-get-orders",
arguments: {
partnerId: "Partner ID",
organizationId: "Organization ID",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
partnerId Partner ID | string | Including this ID will limit the result set to the specific partner. Optional |
organizationId Organization ID | string | Including this ID will limit the result set to the specific organization. Optional |
eventId Event | string | Select an event Required Dynamic |
perPage Per Page | string | How many results to retrieve (per page). Max 500. Optional |
page Page | string | Which page to return. For example, if per_page is 20, and page is 3, the results would show 41-60. Optional |
q Search Query | string | Exact email address or last name attached to an order. Optional |
returnQuestionnaires Return Questionnaires | boolean | Whether or not to return the question responses from questionnaires (will include attendee responses as well IF tickets are returned) Optional |
returnTickets Return Tickets | boolean | Whether or not to return the tickets for each order as well. Optional |
returnLineItemFees Return Line Item Fees | boolean | Whether or not to return the itemized line item fees for each order (if they exist). Optional |
orderedAfter Ordered After | string | Only retrieve orders that were ordered AFTER the specified date/time (format : YYYY-MM-DD or YYYY-MM-DD HH:MM:SS). Optional |
orderedBefore Ordered Before | string | Only retrieve orders that were ordered BEFORE the specified date/time (format : YYYY-MM-DD or YYYY-MM-DD HH:MM:SS). Optional |
modifiedAfter Modified After | string | Only retrieve orders that were modified AFTER the specified date/time (format : YYYY-MM-DD or YYYY-MM-DD HH:MM:SS). Optional |
modifiedBefore Modified Before | string | Only retrieve orders that were modified BEFORE the specified date/time (format : YYYY-MM-DD or YYYY-MM-DD HH:MM:SS). Optional |
sortBy Sort By | string | Field to sort orders by. Optional |
sortDir Sort Direction | string | Direction to sort results. Optional |
totalAbove Total Above | string | Return only orders whose order total is greater than this value. Optional |
totalBelow Total Below | string | Return only orders whose order total is less than this value. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- ticketsauce-get-orders
- Version
- 0.0.1
- App
- TicketSauce
- Authentication
- OAuth
- Read-only
- Yes
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗