View as Markdown
Orderspace icon

Orderspace ACTION

Create Customer

Create a new customer. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Orderspace 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: "orderspace-create-customer",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    orderspace: { authProvisionId: "apn_xxxxxxx" },
    companyName: "Company Name",
    contactName: "Contact 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
companyName Company Name string
The name of the customer's company
Required
contactName Contact Name string
The contact name for the customer
Required
email Email string
The email address of the customer
Required
addressLine1 Address Line 1 string
The first line of the customer's address
Required
addressLine2 Address Line 2 string
The second line of the customer's address
Optional
city City string
The city of the customer's address
Required
state State string
The state of the customer's address
Required
postalCode Postal Code string
The postal code of the customer's address
Required
country Country string
The 2 letter country code of the customer's address
Required
phone Phone string
The phone number of the customer
Optional
reference Reference string
Your reference for the customer
Optional
internalNote Internal Note string
An internal note for the customer
Optional
taxNumber Sales Tax Number string
The sales tax number of the customer
Optional
minimumSpend Minimum Spend string
The minimum spend per order for the customer
Optional
paymentTermId Payment Term ID string
The ID of a payment term
Optional Dynamic
customerGroupId Customer Group ID string
The ID of a customer group
Optional Dynamic
priceListId Price List ID string
The ID of a price list
Optional Dynamic

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
orderspace-create-customer
Version
0.0.2
App
Orderspace
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes