View as Markdown
BlueSnap icon

BlueSnap ACTION

Create Vaulted Shopper

Create a vaulted shopper (stored customer) record in BlueSnap. Returns a vaultedShopperId usable in Create Transaction, Get Vaulted Shopper, and Update Vaulted Shopper. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's BlueSnap account once, then configure and run Create Vaulted Shopper 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: "bluesnap-create-vaulted-shopper",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    bluesnap: { 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 Vaulted Shopper inputs
Property Type Description
firstName First Name string
Shopper first name (e.g. Jane).
Optional
lastName Last Name string
Shopper last name (e.g. Doe).
Optional
email Email string
Shopper email address (e.g. jane.doe@example.com).
Optional
country Country string
ISO 3166-1 alpha-2 country code (e.g. US, IN for India). Full country names such as India are rejected by BlueSnap.
Optional
city City string
Shopper city.
Optional
state State string
Shopper state/province. For US, Canada, and Brazil addresses BlueSnap requires the two-letter code (e.g. CA for California); other countries accept the full region name (e.g. Bavaria).
Optional
zip ZIP string
Shopper ZIP/postal code, formatted for the shopper's country (e.g. 94107 for the US, M5H 2N2 for Canada).
Optional
phone Phone string
Shopper phone number, digits with an optional leading + country code and separators (e.g. +1 415-555-0132).
Optional
merchantShopperId Merchant Shopper ID string
Your own reference ID for this shopper, useful for later lookup.
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
bluesnap-create-vaulted-shopper
Version
0.0.1
App
BlueSnap
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes