Corporate Merch ACTION
Create Order
Create a new order. See the documentation
- Action
- Writes data
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Corporate Merch account once, then configure and run Create Order 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: "corporate_merch-create-order",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
corporate_merch: { authProvisionId: "apn_xxxxxxx" },
firstName: "First Name",
lastName: "Last 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": "corporate_merch-create-order",
"configured_props": {
"corporate_merch": { "authProvisionId": "apn_xxxxxxx" },
"firstName": "First Name",
"lastName": "Last 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": "corporate_merch",
},
},
},
)
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: "corporate_merch-create-order",
arguments: {
firstName: "First Name",
lastName: "Last 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 |
|---|---|---|
firstName First Name | string | Customer's first name. Required |
lastName Last Name | string | Customer's last name. Required |
company Company | string | Business name (if applicable). Optional |
phoneNumber Phone Number | string | Customer's phone number. Required for international orders. Optional |
email Email | string | Customer's email address. Required for international orders. Optional |
address1 Address 1 | string | Primary street address. Required |
address2 Address 2 | string | Secondary address line (e.g. apartment, suite). Optional |
city City | string | City for the shipping location. Required |
state State | string | 2-character code for USA states (e.g. CA). Required |
zipCode Zip Code | string | Postal code. Required |
country Country | string | 2-character country code (e.g. US). Required |
products Products | string[] | Items to include in the order. Each item must be a JSON string representing a product object with keys product_id, quantity, and optionally variant_id. Use the List Products action to retrieve available products and their IDs. Example: [{"product_id": "abc123", "quantity": 2, "variant_id": "xyz456"}] Required |
notecardMessage Notecard Message | string | Custom message for an included notecard. Optional |
notecardUrl Notecard URL | string | URL for the notecard. If provided, overrides Notecard Message. Optional |
shopifyOrderId Shopify Order ID | string | External Shopify order reference identifier. Optional |
billingName Billing Name | string | Billing contact name. Optional |
billingAddress1 Billing Address 1 | string | Billing street address. Optional |
billingAddress2 Billing Address 2 | string | Billing secondary address line. Optional |
billingZipCode Billing Zip Code | string | Billing postal code. Optional |
billingCity Billing City | string | Billing city. Optional |
billingState Billing State | string | Billing state code. Optional |
skipAddressValidation Skip Address Validation | boolean | Set to true to override address verification checks. 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
- corporate_merch-create-order
- Version
- 0.0.1
- App
- Corporate Merch
- Authentication
- API key
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗