View as Markdown
SureCart icon

SureCart ACTION

Update Product

Update an existing product. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's SureCart account once, then configure and run Update Product 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: "surecart-update-product",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    surecart: { authProvisionId: "apn_xxxxxxx" },
    productId: "Product ID",
    name: "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.

Update Product inputs
Property Type Description
productId Product ID string
The unique identifier of the product. Use List Products to retrieve a list of available products.
Required
name Name string
The product name, shown to customers. Example: Premium Plan
Optional
description Description string
The product description, shown to customers.
Optional
status Status string
The status of the product.
Optional
sku SKU string
The stock keeping unit for this product. Example: PLAN-001
Optional
slug Slug string
A unique, URL-friendly identifier. Example: premium-plan
Optional
recurring Recurring boolean
Set to true for a subscription product, false for a one-time purchase.
Optional
featured Featured boolean
Set to true to mark the product as featured.
Optional
taxEnabled Tax Enabled boolean
Set to true to make this product taxable.
Optional
taxCategory Tax Category string
The tax category that matches this product.
Optional
shippingEnabled Shipping Enabled boolean
Set to true to require a full shipping address at checkout.
Optional
weight Weight string
The product weight, used for shipping calculations. Accepts decimals. Example: 1.5
Optional
weightUnit Weight Unit string
The weight unit for this product.
Optional
stockEnabled Stock Enabled boolean
Set to true to track stock for this product.
Optional
stockAdjustment Stock Adjustment integer
Amount to adjust the stock by (positive or negative). Example: 100
Optional
allowOutOfStockPurchases Allow Out Of Stock Purchases boolean
Set to true to allow purchases when stock runs out.
Optional
purchaseLimit Purchase Limit integer
Max number of times a customer can purchase this product. Example: 5
Optional
reviewsEnabled Reviews Enabled boolean
Set to true to enable reviews for this product.
Optional
licensingEnabled Licensing Enabled boolean
Set to true to enable licensing for this product.
Optional
licenseActivationLimit License Activation Limit integer
Max activations allowed per license. Leave empty for unlimited. Example: 5
Optional
productGroup Product Group ID string
The UUID of the product group to assign this product to.
Optional
shippingProfile Shipping Profile ID string
The UUID of the shipping profile to assign this product to.
Optional
productCollections Product Collection IDs string[]
UUIDs of the product collections this product belongs to.
Optional
metadata Metadata object
Additional key-value metadata. Example: { "internal_id": "123" }
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
surecart-update-product
Version
0.0.1
App
SureCart
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes