CONNECT APP
Build with Orderspace
Wholesale Ordering Software, Online B2B Ordering Software
Commerce
- OAuth
MCP
Give your agent Orderspace tools
Every Orderspace action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Orderspace account for each tool call — you store no tokens.
// 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": "orderspace",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Create Customer:
const result = await mcp.callTool({
name: "orderspace-create-customer",
arguments: {
companyName: "Company Name",
contactName: "Contact Name",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"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": "orderspace",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Create Customer:
result = await session.call_tool("orderspace-create-customer", {
"companyName": "Company Name",
"contactName": "Contact Name",
})SDK
Run Orderspace actions from your backend
Connect a user's Orderspace account once, then run Create Customer on their behalf from your own code — TypeScript, Python, or plain HTTP.
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: "orderspace-create-customer",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
orderspace: { authProvisionId: "apn_xxxxxxx" },
companyName: "Company Name",
contactName: "Contact Name",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="orderspace-create-customer",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"orderspace": {"authProvisionId": "apn_xxxxxxx"},
"companyName": "Company Name",
"contactName": "Contact Name",
},
)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": "orderspace-create-customer",
"configured_props": {
"orderspace": { "authProvisionId": "apn_xxxxxxx" },
"companyName": "Company Name",
"contactName": "Contact Name"
}
}'TOOLS
Orderspace actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Create Customer
actionCreate a new customer. See the documentationWritev0.0.2 -
Create Dispatch
actionCreate a new dispatch. See the documentationWritev0.0.2 -
Create Order
actionCreate a new order. See the documentationWritev0.0.2 -
List Customer Group ID Options
actionRetrieves available options for the Customer Group ID field.Read-onlyv0.0.1 -
List Customers
actionList a list of customers. See the documentationRead-onlyv0.0.2 -
List Orders
actionList a list of orders. See the documentationRead-onlyv0.0.2 -
List Payment Term ID Options
actionRetrieves available options for the Payment Term ID field.Read-onlyv0.0.1 -
List Price List ID Options
actionRetrieves available options for the Price List ID field.Read-onlyv0.0.1 -
List Products
actionList a list of products. See the documentationRead-onlyv0.0.2 -
Update Inventory Level
actionUpdate an inventory level. See the documentationWritev0.0.2
EVENTS
Orderspace triggers
Event sources your backend can deploy for users and receive through a webhook.
-
Customer Updated (Instant)
triggerEmit new event when a customer is updatedInstantv0.0.1 -
Inventory Level Updated (Instant)
triggerEmit new event when an inventory level is updatedInstantv0.0.1 -
New Customer Created (Instant)
triggerEmit new event when a customer is createdInstantv0.0.1 -
New Dispatch Created (Instant)
triggerEmit new event when a dispatch is createdInstantv0.0.1 -
New Invoice Created (Instant)
triggerEmit new event when an invoice is createdInstantv0.0.1 -
New Order Created (Instant)
triggerEmit new event when an order is createdInstantv0.0.1 -
New Payment Created (Instant)
triggerEmit new event when a payment is createdInstantv0.0.1 -
New Product Created (Instant)
triggerEmit new event when a product is createdInstantv0.0.1
- App slug
- orderspace
- Authentication
- OAuth
- Categories
- Commerce
- Actions
- 10
- Triggers
- 8
- API proxy
- Not available