View as Markdown
TaxJar icon

TaxJar ACTION

Create Customer

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

IMPLEMENTATION

Call this tool

Connect a user's TaxJar 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: "taxjar-create-customer",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    taxjar: { authProvisionId: "apn_xxxxxxx" },
    customerId: "Customer ID",
    exemptionType: "Exemption Type",
  },
})

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
customerId Customer ID string
Unique identifier for the customer
Required
exemptionType Exemption Type string
The type of tax exemption for the customer
Required
name Name string
The name of the customer
Required
country Country string
The two-letter ISO country code, i.e.: US
Optional
state State string
The two-letter ISO state code, i.e.: CA
Optional
zip Zip string
The ZIP code of the customer's primary address, i.e.: 92093
Optional
city City string
The city of the customer's primary address, i.e.: La Jolla
Optional
street Street string
The street of the customer's primary address, i.e.: 9500 Gilman Drive
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
taxjar-create-customer
Version
0.0.2
App
TaxJar
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes