View as Markdown
Dolibarr icon

Dolibarr ACTION

Create Order

Create a new order in Dolibarr.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Dolibarr 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: "dolibarr-create-order",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    dolibarr: { authProvisionId: "apn_xxxxxxx" },
    thirdPartyId: "Third Party ID",
    date: "Date",
  },
})

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
thirdPartyId Third Party ID string
The ID of the third party or customer
Required Dynamic
date Date string
The date of the order in YYYY-MM-DD format
Required
deliveryDate Delivery Date string
The expecteddelivery date of the order in YYYY-MM-DD format
Optional
paymentMethodCode Payment Method Code string
The code of the payment method
Optional Dynamic
paymentTermCode Payment Term ID string
The ID of the payment term
Optional Dynamic
notePublic Note Public string
A public note to add to the order
Optional
notePrivate Note Private string
A private note to add to the order
Optional
additionalProperties Additional Properties object
Additional properties to add
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
dolibarr-create-order
Version
0.0.3
App
Dolibarr
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes