View as Markdown
Shopware icon

Shopware ACTION

Create Order

Create a new order. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Shopware 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: "shopware-create-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    shopware: { authProvisionId: "apn_xxxxxxx" },
    billingAddressId: "Billing Address ID",
    currencyId: "Currency ID",
  },
})

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
billingAddressId Billing Address ID string
The ID of the billing address to use for the order
Required Dynamic
currencyId Currency ID string
The ID of the currency to use for the order
Required Dynamic
salesChannelId Sales Channel ID string
The ID of the sales channel to use for the order
Required Dynamic
stateId State ID string
The ID of the state to use for the order
Required Dynamic
orderDateTime Order Date Time string
The date and time the order was created
Required
priceObject Price Object object
Price object to use for the order. Example: { "netPrice": 1.00, "totalPrice": 1.00, "positionPrice": 1.00, "rawTotal": 1.00, "taxStatus": "Free", "calculatedTaxes": {}, "taxRules": {} } See the documentation for more information.
Required
shippingCostsObject Shipping Costs Object object
Shipping costs object to use for the order. Example: { "unitPrice": 1.00, "totalPrice": 1.00, "quantity": 1, "calculatedTaxes": {}, "taxRules": {} } See the documentation for more information.
Required
currencyObject Currency Object object
Currency object to use for the order. Example: { "factor": 1.0, "symbol": "€", "isoCode": "EUR", "itemRounding": { "decimals": 2, "interval": 1.0, "roundForNet": true }, "totalRounding": { "decimals": 2, "interval": 1.0, "roundForNet": true } } See the documentation for more information.
Required
currencyFactor Currency Factor string
Rate at which currency is exchanged
Required
itemRounding Item Rounding object
The rounding method to use for the order items. Example: {"extensions":[],"decimals":2,"interval":0.01,"roundForNet":true}
Required
totalRounding Total Rounding object
The rounding method to use for the order total. Example: {"extensions":[],"decimals":2,"interval":0.01,"roundForNet":true}
Required

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
shopware-create-order
Version
0.0.1
App
Shopware
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes