View as Markdown
Sendcloud icon

Sendcloud ACTION

Create Or Update Integration Shipment

Create or update an integration shipment. See the documentation
  • 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)

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 Or Update Integration Shipment inputs
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:

  • description (string, required): Description of the product. Example: Bag
  • hs_code (string): Harmonized System Code (<= 12 chars). Example: 01013000
  • origin_country (string | null): ISO 3166-1 alpha-2 country code where the product was produced. Example: NL
  • product_id (string): Internal product ID. Example: 1458734634
  • properties (object): Key-value pairs with additional product properties (e.g., { "color": "Black" })
  • quantity (integer, required): Number of units (>= 1). Example: 2
  • sku (string): Internal stock keeping unit. Example: WW-DR-GR-XS-001
  • value (string, required): Price per item as a decimal string. Example: 19.99
  • weight (string | null): Weight per item as a decimal string. Example: 0.5
  • mid_code (string | null): Manufacturer's Identification code. Example: NLOZR92MEL
  • material_content (string | null): Description of materials. Example: 100% Cotton
  • intended_use (string | null): Intended use of the contents. Example: Personal use

Example item JSON:

{
  "description": "Bag",
  "hs_code": "01013000",
  "origin_country": "NL",
  "product_id": "1458734634",
  "properties": { "color": "Black" },
  "quantity": 2,
  "sku": "WW-DR-GR-XS-001",
  "value": "19.99",
  "weight": "0.5",
  "mid_code": "NLOZR92MEL",
  "material_content": "100% Cotton",
  "intended_use": "Personal use"
}

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:

  • sender_address_id (integer): The sender address ID associated with the order.
  • shipping_product (object): The shipping product chosen at checkout. Must include:
    • code (string)
    • name (string)
    • selected_functionalities (array): Functionalities selected for this product.
  • delivery_method_type (string): One of "standard_delivery", "nominated_day_delivery", or "same_day_delivery".
  • delivery_method_data (object):
    • delivery_date (string, date-time): Delivery date required by the end-consumer.
    • formatted_delivery_date (string): Human-readable date (e.g., "February 21, 2012").
    • parcel_handover_date (string, date-time): Date the parcel must be handed to the carrier.

Example:

{
  "sender_address_id": 12345,
  "shipping_product": {
    "code": "pd-pickup",
    "name": "Pickup Point",
    "selected_functionalities": ["signature", "age_check"]
  },
  "delivery_method_type": "nominated_day_delivery",
  "delivery_method_data": {
    "delivery_date": "2025-02-20T09:00:00Z",
    "formatted_delivery_date": "February 20, 2025",
    "parcel_handover_date": "2025-02-19T18:00:00Z"
  }
}
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.

  • discount_granted (object): Discount granted on the total order
    • value (string | null): Decimal amount (e.g., "3.99"), pattern: [\d]+(.[\d]+)?
    • currency (string | null): ISO 4217 code (e.g., "EUR")
  • insurance_costs (object): Amount the order is insured for
    • value (string | null): Decimal amount (e.g., "3.99"), pattern: [\d]+(.[\d]+)?
    • currency (string | null): ISO 4217 code (e.g., "EUR")
  • freight_costs (object): Shipping cost of the order
    • value (string | null): Decimal amount (e.g., "3.99"), pattern: [\d]+(.[\d]+)?
    • currency (string | null): ISO 4217 code (e.g., "EUR")
  • other_costs (object): Any other costs (e.g., wrapping costs)
    • value (string | null): Decimal amount (e.g., "3.99"), pattern: [\d]+(.[\d]+)?
    • currency (string | null): ISO 4217 code (e.g., "EUR")
  • tax_numbers (object | null): Tax info about sender, receiver, and importer of records
    • sender (array of Tax Number): Each has { name (string|null), country_code (string|null), value (string|null) }
    • receiver (array of Tax Number): Same structure as sender
    • importer_of_records (array of Tax Number): Same structure as sender

Example:

{
  "discount_granted": { "value": "3.99", "currency": "EUR" },
  "insurance_costs": { "value": "2.50", "currency": "EUR" },
  "freight_costs": { "value": "5.00", "currency": "EUR" },
  "other_costs": { "value": null, "currency": null },
  "tax_numbers": {
    "sender": [{ "name": "VAT", "country_code": "NL", "value": "NL987654321B02" }],
    "receiver": [],
    "importer_of_records": []
  }
}
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