Sendcloud ACTION
Create Or Update Integration Shipment
- Action
- Writes data
- Destructive
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Sendcloud account once, then configure and run Create Or Update Integration Shipment 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: "sendcloud-create-update-integration-shipment",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
sendcloud: { authProvisionId: "apn_xxxxxxx" },
integrationId: "Integration ID",
address: "Address",
},
})
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": "sendcloud-create-update-integration-shipment",
"configured_props": {
"sendcloud": { "authProvisionId": "apn_xxxxxxx" },
"integrationId": "Integration ID",
"address": "Address"
}
}'// 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": "sendcloud",
},
},
},
)
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: "sendcloud-create-update-integration-shipment",
arguments: {
integrationId: "Integration ID",
address: "Address",
},
})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 |
|---|---|---|
integrationId Integration ID | string | The ID of the integration Required Dynamic |
address Address | string | The address of the shipment. Required |
address2 Address 2 | string | A secondary address of the shipment. Required |
companyName Company Name | string | The company name of the shipment. Required |
createdAt Created At | string | Timestamp when the shipment was created in the shop system. Example: 2022-05-07T15:08:12.152000Z Required |
currency Currency | string | ISO 4217 currency code Required |
customsInvoiceNr Customs Invoice Number | string | Commercial invoice number Required |
customsShipmentType Customs Shipment Type | string | The type of shipment for customs purposes. Required |
email Email | string | The email of the recipient. Required |
externalOrderId External Order ID | string | External order ID assigned by the shop system Required |
externalShipmentId External Shipment ID | string | External shipment ID assigned by the shop system Required |
houseNumber House Number | string | House number of the recipient Required |
name Name | string | Name of the recipient Required |
orderNumber Order Number | string | Unique order number generated manually or by the shop system Required |
orderStatusId Order Status ID | string | Custom internal shop status ID Required |
orderStatusMessage Order Status Message | string | User-defined human readable status Required |
parcelItems Parcel Items | string[] | Array of JSON objects describing each item in the parcel. Each item must include the following fields:
Example item JSON:
Provide each array element as a JSON object string in the UI, or programmatically as an array of objects. Required |
paymentStatusId Payment Status ID | string | Custom internal payment status ID Required |
paymentStatusMessage Payment Status Message | string | User-defined payment status Required |
postalCode Postal Code | string | Zip code of the recipient Required |
shippingMethodCheckoutName Shipping Method Checkout Name | string | Human readable shipping method name Required |
telephone Telephone | string | The telephone number of the recipient. Required |
toPostNumber To Post Number | string | The post number of the recipient. Required |
country country | string | Country of the recipient Required |
toServicePoint Service Point | integer | The service point ID of the recipient. Required Dynamic |
toState To State | string | The state of the recipient. Required |
updatedAt Updated At | string | Timestamp when the shipment was updated in the shop system. Example: 2022-05-07T15:08:12.152000Z Required |
city City | string | The city of the shipment. Optional |
shippingMethod Shipping Method ID | string | The unique identifier of the shipping method Required Dynamic |
totalOrderValue Total Order Value | string | Total price of the order (decimal string) Optional |
weight Weight | string | Total weight of the order (decimal string) Optional |
checkoutPayload Checkout Payload | object | Object capturing checkout selections made by the end-consumer. Required keys:
Example: Optional |
width Width | string | Volumetric width (decimal string) Optional |
height Height | string | Volumetric height (decimal string) Optional |
length Length | string | Volumetric length (decimal string) Optional |
customDetails Costs & Tax Details | object | Optional object to provide order-level costs and tax numbers.
Example: 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
- sendcloud-create-update-integration-shipment
- Version
- 0.0.3
- App
- Sendcloud
- Authentication
- API key
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗