View as Markdown
AmeriCommerce icon

AmeriCommerce ACTION

Update Customer

Updates the details of a registered customer. See the documentation.
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's AmeriCommerce account once, then configure and run Update 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: "americommerce-update-customer",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    americommerce: { authProvisionId: "apn_xxxxxxx" },
    customerId: "Customer ID",
    customerNumber: "Customer Number",
  },
})

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.

Update Customer inputs
Property Type Description
customerId Customer ID string
The unique identifier for the customer. This ID is optional.
Required Dynamic
customerNumber Customer Number string
The customer number for the customer.
Optional
lastName Last Name string
The last name of the customer.
Optional
firstName First Name string
The first name of the customer.
Optional
email Email string
The email address of the customer.
Optional
phoneNumber Phone Number string
The phone number of the customer.
Optional
adcodeId Adcode ID string
The adcode ID for the customer.
Optional Dynamic
customerTypeId Customer Type ID string
The customer type ID for the customer.
Optional Dynamic
isNoTaxCustomer Is No Tax Customer boolean
Whether the customer is a no-tax customer.
Optional
comments Comments string
Comments about the customer.
Optional
storeId Store ID string
The ID of the store.
Optional Dynamic
source Source string
The source of the customer.
Optional
searchString Search String string
The search string for the customer.
Optional
noAccount No Account boolean
Indicates whether the customer does not have an account.
Optional
alternatePhoneNumber Alternate Phone Number string
The alternate phone number for the customer.
Optional
isAffiliateCustomer Is Affiliate Customer boolean
Whether the customer is an affiliate customer.
Optional
username Username string
The username for the customer.
Optional
isContactInformationOnly Is Contact Information Only boolean
Whether the customer is contact information only.
Optional
taxExemptionNumber Tax Exemption Number string
The tax exemption number for the customer.
Optional
company Company string
The company for the customer.
Optional
taxRate Tax Rate string
The tax rate for the customer.
Optional
lockDefaultAddress Lock Default Address boolean
Whether the default address is locked.
Optional
paymentNetTerm Payment Net Term integer
The payment net term for the customer.
Optional
creditLimit Credit Limit string
The credit limit for the customer.
Optional
isInactive Is Inactive boolean
Whether the customer is inactive.
Optional
useSharedCreditLimit Use Shared Credit Limit boolean
Whether the shared credit limit is used.
Optional
overrideSharedCreditLimit Override Shared Credit Limit boolean
Whether the shared credit limit is overridden.
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
americommerce-update-customer
Version
0.0.2
App
AmeriCommerce
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes