View as Markdown
Shopify  icon

Shopify ACTION

Send Order Invoice

Sends an invoice email for an existing order. See the documentation.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Shopify account once, then configure and run Send Order Invoice 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: "shopify-send-order-invoice",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    shopify: { authProvisionId: "apn_xxxxxxx" },
    orderId: "Order ID",
    to: "To",
  },
})

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.

Send Order Invoice inputs
Property Type Description
orderId Order ID string
The identifier of an order
Required Dynamic
to To string
Recipient email address. Defaults to the order's customer email if omitted.
Optional
from From string
Sender email address.
Optional
subject Subject string
Email subject line (e.g. Your invoice from our store).
Optional
customMessage Custom Message string
Custom message included in the invoice email body.
Optional
bcc BCC string[]
Array of email addresses to BCC on the invoice.
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
shopify-send-order-invoice
Version
0.0.5
App
Shopify
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes