View as Markdown
Mews icon

Mews ACTION

Get Bill PDF

Get a bill PDF by bill ID. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Mews account once, then configure and run Get Bill PDF 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: "mews-get-bill-pdf",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mews: { authProvisionId: "apn_xxxxxxx" },
    billId: "Bill ID",
    billPrintEventId: "Bill Print Event ID",
  },
})

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.

Get Bill PDF inputs
Property Type Description
billId Bill ID string
Unique identifier of the Bill.
Required Dynamic
billPrintEventId Bill Print Event ID string
Unique identifier of the Bill print event returned by previous invocation.
Optional
pdfTemplate PDF Template string
Bill PDF template type. If not specified, the default template is used.
Optional
printReason Print Reason string
The reason for reprinting the bill with different template. Required for France LE. Max length 255 characters.
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
mews-get-bill-pdf
Version
0.0.3
App
Mews
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes