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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "surecart-update-product",
"configured_props": {
"surecart": { "authProvisionId": "apn_xxxxxxx" },
"productId": "Product ID",
"name": "Name"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "surecart",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "surecart-update-product",
arguments: {
productId: "Product ID",
name: "Name",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗