DigitalRiver ACTION
Update Customer Information
Updates the information for a customer in Digital River. See the documentation
- Action
- Writes data
- Destructive
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's DigitalRiver account once, then configure and run Update Customer Information 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: "digitalriver-update-customer-information",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
digitalriver: { authProvisionId: "apn_xxxxxxx" },
customerId: "Customer ID",
email: "Email",
},
})
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": "digitalriver-update-customer-information",
"configured_props": {
"digitalriver": { "authProvisionId": "apn_xxxxxxx" },
"customerId": "Customer ID",
"email": "Email"
}
}'// 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": "digitalriver",
},
},
},
)
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: "digitalriver-update-customer-information",
arguments: {
customerId: "Customer ID",
email: "Email",
},
})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 |
|---|---|---|
customerId Customer ID | string | The unique identifier for the customer Required Dynamic |
email Email | string | The customer email address. Optional |
line1 Shipping Address Line 1 | string | The first line of the address. Optional |
line2 Shipping Address Line 2 | string | The second line of the address. Optional |
city Shipping Address City | string | The city of the address. Optional |
postalCode Shipping Address Postal Code | string | The postal code of the address. Optional |
state Shipping Address State | string | The state, county, province, or region. Optional |
country Shipping Address Country | string | A two-letter Alpha-2 country code as described in the ISO 3166 international standard. Optional |
name Shipping Name | string | The recipient's name. Optional |
phone Shipping Phone | string | The recipient's phone number. Optional |
shippingEmail Shipping Email | string | The recipient's email address. Optional |
organization Shipping Organization | string | The recipient's organization. Optional |
neighborhood Shipping Neighborhood | string | The neighborhood of the address. Optional |
division Shipping Division | string | A division within an organization. Optional |
phoneticName Shipping Phonetic Name | string | The phonetic spelling of a name. Optional |
companyName Tax Certificate Company Name | string | The name of the company that holds the certificate. Optional |
taxAuthority Tax Certificate Autority | string | The issuing state. Optional |
startDate Tax Certificate Start Date | string | Tax certificate start date. Optional |
endDate Tax Certificate End Date | string | Tax certificate end date. Optional |
fileId Tax Certificate File Id | string | The identifier of the file that contains the tax certificate. Optional Dynamic |
requestToBeForgotten Request To Be Forgotten | boolean | If true, indicates this customer has submitted a request to be forgotten. Optional |
type Type | string | The type of customer. Optional |
metadata Metadata | object | Key-value pairs used to store additional data. Value can be string, boolean or integer types. Optional |
locale Locale | string | A locale designator that combines the two-letter ISO 639-1 language code with the ISO 3166-1 alpha-2 country code. Optional |
enabled Enabled | boolean | Usually used to disable the customer. The default is true. If false, attempts to create orders for the customer will fail. 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
- digitalriver-update-customer-information
- Version
- 0.0.2
- App
- DigitalRiver
- Authentication
- API key
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗