View as Markdown
WalleTap icon

WalleTap ACTION

Update Pass

Updates an existing Walletap pass and pushes the updated pass to the user. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's WalleTap account once, then configure and run Update Pass 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: "walletap-update-pass",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    walletap: { authProvisionId: "apn_xxxxxxx" },
    passId: "Pass ID",
    templateFields: "Template Fields",
  },
})

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 Pass inputs
Property Type Description
passId Pass ID string
Walletap generated pass ID
Required
templateFields Template Fields object
The template fields to update. Generic (object) or Loyalty (object) or Gift Card (object) or Event Ticket (object) or Offer/Coupon (object)
Optional
memberId Member ID string
The ID connecting this pass to a member in your system
Optional
customFields Custom Fields object
Custom fields defined in pass design, using field IDs as object keys
Optional
redemptionValue Redemption Value string
Value to be encoded in barcode and/or NFC payload. If not provided, it is set to externalId. If also not provided, it is set to Walletap generated id
Optional
isValid Valid boolean
If set to false it invalidates the pass and moves it to the "Expired passes" section in user Wallet
Optional
email Email string
The email of the user
Optional
phone Phone string
The phone of the user
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
walletap-update-pass
Version
0.0.2
App
WalleTap
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes