View as Markdown
Paazl icon

Paazl ACTION

Save Checkout Session Data

Saves the most important information of a specific checkout session to the Paazl database. The information will be kept for 30 days. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Paazl account once, then configure and run Save Checkout Session Data 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: "paazl-save-checkout-session",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    paazl: { authProvisionId: "apn_xxxxxxx" },
    token: "Token",
    consigneeCountryCode: "Consignee Country Code",
  },
})

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.

Save Checkout Session Data inputs
Property Type Description
token Token string
The access token returned by the token endpoint
Required
consigneeCountryCode Consignee Country Code string
The ISO 3166-2 code for the country to which an order is shipped (e.g., NL, DE)
Required
shippingOptionIdentifier Shipping Option ID string
The shipping option identifier
Required Dynamic
pickupLocationCode Pickup Location Code string
A carrier's unique code for a pickup location (required if delivering to pickup location)
Optional Dynamic
pickupLocationAccountNumber Pickup Location Account Number string
An account number that a carrier can issue to customers for managing delivery of their parcel to a collection point
Optional
preferredDeliveryDate Preferred Delivery Date string
The day on which customers want their order delivered (format: YYYY-MM-DD)
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
paazl-save-checkout-session
Version
0.0.3
App
Paazl
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes