View as Markdown
PlentyONE icon

PlentyONE ACTION

Create Order

Creates a new order in PlentyONE. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's PlentyONE 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: "plentyone-create-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    plentyone: { authProvisionId: "apn_xxxxxxx" },
    orderTypeId: 10,
    plentyId: 10,
  },
})

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 Order inputs
Property Type Description
orderTypeId Order Type ID integer
The ID of the order type.
Required
plentyId Plenty ID integer
The plenty ID of the client that the order belongs to.
Required
statusId Status ID integer
The ID of the order status.
Optional Dynamic
ownerId Owner ID integer
The user ID of the order's owner.
Optional
lockStatus Lock Status string
The lock status of the order.
Optional
orderItems Order Items string[]
A list of objects of the order items. See the documentation for more details.
Optional
properties Properties string[]
A list of objects of the order properties. See the documentation for more details.
Optional
addressRelations Address Relations string[]
A list of objects of the order address relations. See the documentation for more details.
Optional
relations Relations string[]
A list of objects of the order relations. See the documentation for more details.
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
plentyone-create-order
Version
0.0.2
App
PlentyONE
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes