View as Markdown
Ticket Source icon

Ticket Source ACTION

Create Customer

Creates a new customer. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Ticket Source account once, then configure and run Create Customer 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: "ticket_source-create-customer",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ticket_source: { authProvisionId: "apn_xxxxxxx" },
    firstName: "First Name",
    lastName: "Last Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create Customer inputs
Property Type Description
firstName First Name string
The first name of the customer
Optional
lastName Last Name string
The last name of the customer
Optional
addressLine1 Address Line 1 string
The first line of the customer's address
Optional
addressLine2 Address Line 2 string
The second line of the customer's address
Optional
addressLine3 Address Line 3 string
The third line of the customer's address
Optional
addressLine4 Address Line 4 string
The fourth line of the customer's address
Optional
addressPostcode Address Postcode string
The postcode of the customer's address
Optional
telephone Telephone string
The telephone number of the customer
Optional
email Email string
The email address of the customer
Required
membershipIdentifier Membership Identifier string
The identifier of the customer's membership
Optional
membershipStartDate Membership Start Date string
The start date of the customer's membership. Format: YYYY-MM-DD
Optional
membershipEndDate Membership End Date string
The end date of the customer's membership. Format: YYYY-MM-DD
Optional
emailConsent Email Consent boolean
Whether the customer consents to receive email marketing
Optional
smsConsent SMS Consent boolean
Whether the customer consents to receive SMS marketing
Optional
postConsent Post Consent boolean
Whether the customer consents to receive postal marketing
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
ticket_source-create-customer
Version
0.0.1
App
Ticket Source
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes