> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Manage Paddle subscriptions and billing from Guild agents

> Connect Guild agents to Paddle to manage customers, subscriptions, transactions, pricing, discounts, and billing metrics via the Paddle API.

Integrations · Paddle

Guild agents can create and manage customers, subscriptions, transactions, pricing, discounts, adjustments, and billing metrics directly in Paddle. Guild stores your Paddle API key server-side and injects it as a bearer token, so agent code never sees the credential. Credential policies let you restrict which operations each agent can call, and every request runs through Guild's audit trail.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Paddle.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Paddle to your first agent.

## What the Paddle integration exposes

The tools cover customers, addresses, businesses, products, prices, discounts, discount groups, subscriptions, transactions, adjustments, reports, notifications, simulations, client tokens, checkout settings, and revenue metrics. Read tools return paginated lists or individual records by ID. Write tools create, update, cancel, pause, resume, activate, and delete resources. Both sandbox and live Paddle environments are supported.

## How it works

**1. Open Credentials in Guild**

Go to **Access & setup > Credentials** in your Guild account or organization. Credentials can be scoped to the whole account, a single workspace, a member, or one agent. See [Credentials](https://docs.guild.ai/platform/credentials.md) for details.

**2. Connect the Paddle integration**

Click **Connect**, select **paddle**, and paste your Paddle API key into the **API Key** field. Guild sends the key as a bearer token in the `Authorization` header on every request.

**3. Add tools to your agent**

Import `PaddleTools` from `@guildai-services/guildai~paddle` and spread it into your agent's `tools` object. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only the tools your agent needs.

## Why Paddle access needs governing

Paddle credentials can cancel subscriptions, issue adjustments, delete payment methods, and modify account-level checkout and tax settings. Guild stores the API key server-side and injects it only after the credential proxy checks your [credential policies](https://docs.guild.ai/platform/credential-policies.md). You can write ALLOW and DENY rules scoped to specific operations, agents, or workspaces, so a reporting agent can read revenue metrics without being able to cancel a subscription.

You can also scope a credential to one workspace or dedicate it to a single agent, keeping it away from the rest of your organization. Every request passes through Guild's proxy before reaching Paddle, giving you a consistent audit record. Agents that exceed their policy are denied before the request leaves Guild.

## About the Paddle integration

This integration lets agents interact with Paddle's billing platform to create and manage customers, products, prices, subscriptions, and transactions. Agents can also retrieve revenue metrics, generate reports, configure notifications, and handle adjustments or refunds. Both sandbox and live Paddle environments are supported. The integration is `guildai~paddle`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect Paddle**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **paddle**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { PaddleTools } from "@guildai-services/guildai~paddle"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Paddle.",
  tools: { ...PaddleTools },
})
```

### Selecting specific tools

Tools are named with the `paddle_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~paddle`:

> [accordion] All 126 tools
>
> | Tool | What it does |
> | - | - |
> | `paddle_activate_subscription` | Activates a trialing subscription using its ID. |
> | `paddle_cancel_subscription` | Cancels a subscription using its ID. |
> | `paddle_create_address` | Creates a new address for a customer. |
> | `paddle_create_adjustment` | Creates an adjustment for one or more transaction items. |
> | `paddle_create_business` | Creates a new business for a customer. |
> | `paddle_create_client_token` | Creates a new client-side token. |
> | `paddle_create_customer` | Creates a new customer. |
> | `paddle_create_customer_portal_session` | Creates a customer portal session for a customer. |
> | `paddle_create_discount` | Creates a new discount. |
> | `paddle_create_discount_group` | Creates a new discount group. |
> | `paddle_create_notification_setting` | Creates a new notification setting (notification destination). |
> | `paddle_create_price` | Creates a new price. |
> | `paddle_create_product` | Creates a new product. |
> | `paddle_create_report` | Creates a new report. |
> | `paddle_create_simulation` | Creates a new simulation for a notification setting (notification destination). |
> | `paddle_create_simulation_run` | Creates a new simulation run for a simulation. |
> | `paddle_create_subscription_charge` | Creates a new one-time charge for a subscription. |
> | `paddle_create_transaction` | Creates a new transaction. |
> | `paddle_delete_checkout_domain` | Deletes a checkout domain using its ID. |
> | `paddle_delete_customer_payment_method` | Deletes a customer payment method using its ID. |
> | `paddle_delete_notification_setting` | Deletes a notification setting (notification destination) using its ID. |
> | `paddle_generate_customer_authentication_token` | Generates an authentication token for a customer. |
> | `paddle_get_account` | Returns the business identity of the account that you're authenticated as. |
> | `paddle_get_address` | Returns an address for a customer using its ID and related customer ID. |
> | `paddle_get_adjustment_credit_note` | Returns a link to a credit note PDF for an adjustment. |
> | `paddle_get_api_root` | Returns information about the Paddle API and the caller making the request, including their account and permissions. |
> | `paddle_get_balance_currency` | Returns the balance currency settings for your account. |
> | `paddle_get_business` | Returns a business for a customer using its ID and related customer ID. |
> | `paddle_get_checkout_domain` | Returns a checkout domain using its ID. |
> | `paddle_get_checkout_features` | Returns the checkout feature settings for your account. |
> | `paddle_get_checkout_payment_method_settings` | Returns the checkout payment method settings for your account. |
> | `paddle_get_checkout_recovery` | Returns the checkout recovery settings for your account. |
> | `paddle_get_checkout_styles_overlay` | Returns the overlay checkout style settings for your account. |
> | `paddle_get_checkout_url` | Returns the checkout URL settings for your account. |
> | `paddle_get_client_token` | Returns a client-side token using its ID. |
> | `paddle_get_currency_conversions` | Returns the currency conversion settings for your account. |
> | `paddle_get_customer` | Returns a customer using its ID. |
> | `paddle_get_customer_payment_method` | Returns a payment method for a customer using its ID and related customer ID. |
> | `paddle_get_discount` | Returns a discount using its ID. |
> | `paddle_get_discount_group` | Returns a discount group using its ID. |
> | `paddle_get_ip_addresses` | Returns Paddle IP addresses. |
> | `paddle_get_metrics_active_subscribers` | Returns timeseries data for active subscriber counts in a given date range. |
> | `paddle_get_metrics_chargebacks` | Returns timeseries data for chargebacks in a given date range. |
> | `paddle_get_metrics_checkout_conversion` | Returns timeseries data for checkout conversion in a given date range. |
> | `paddle_get_metrics_monthly_recurring_revenue` | Returns timeseries data for monthly recurring revenue in a given date range. |
> | `paddle_get_metrics_monthly_recurring_revenue_change` | Returns timeseries data for monthly recurring revenue change in a given date range. |
> | `paddle_get_metrics_refunds` | Returns timeseries data for refunds in a given date range. |
> | `paddle_get_metrics_revenue` | Returns timeseries data for revenue in a given date range. |
> | `paddle_get_notification` | Returns a notification using its ID. |
> | `paddle_get_notification_setting` | Returns a notification setting (notification destination) using its ID. |
> | `paddle_get_price` | Returns a price using its ID. |
> | `paddle_get_product` | Returns a product using its ID. |
> | `paddle_get_report` | Returns a report using its ID. |
> | `paddle_get_report_csv` | Returns a link to a CSV file for a report. |
> | `paddle_get_simulation` | Returns a simulation using its ID. |
> | `paddle_get_simulation_event` | Returns a simulation event using its ID. |
> | `paddle_get_simulation_run` | Returns a simulation run using its ID. |
> | `paddle_get_statement_descriptor_settings` | Returns the statement descriptor settings for your account. |
> | `paddle_get_subscription` | Returns a subscription using its ID. |
> | `paddle_get_subscription_update_payment_method_transaction` | Returns a transaction that you can pass to a checkout to let customers update their payment details. |
> | `paddle_get_tax_settings` | Returns the tax settings for your account. |
> | `paddle_get_transaction` | Returns a transaction using its ID. |
> | `paddle_get_transaction_invoice` | Returns a link to an invoice PDF for a transaction. |
> | `paddle_get_verification` | Returns a verification using its ID. |
> | `paddle_list_addresses` | Returns a paginated list of addresses for a customer. |
> | `paddle_list_adjustments` | Returns a paginated list of adjustments. |
> | `paddle_list_businesses` | Returns a paginated list of businesses for a customer. |
> | `paddle_list_checkout_domains` | Returns a paginated list of checkout domains submitted for your account. |
> | `paddle_list_client_tokens` | Returns a paginated list of client-side tokens. |
> | `paddle_list_countries` | Returns a list of countries known to the Paddle platform, including the currency used for automatic price conversion and whether Paddle supports sales to customers there. |
> | `paddle_list_credit_balances` | Returns a list of credit balances for each currency for a customer. |
> | `paddle_list_currencies` | Returns a list of currencies that Paddle supports, including the number of decimal places used and the minimum amount that Paddle can process. |
> | `paddle_list_customer_payment_methods` | Returns a paginated list of payment methods that a customer has saved. |
> | `paddle_list_customers` | Returns a paginated list of customers. |
> | `paddle_list_discount_groups` | Returns a paginated list of discount groups. |
> | `paddle_list_discounts` | Returns a paginated list of discounts. |
> | `paddle_list_events` | Returns a paginated list of events that have occurred in the last 90 days. |
> | `paddle_list_event_types` | Returns a list of event types. |
> | `paddle_list_explore_metric_entities` | Returns a list of queryable Explore metrics and their related metadata, including time dimension, the dimensions you can group by, and measures with their allowed aggregations. |
> | `paddle_list_notification_logs` | Returns a paginated list of notification logs for a notification. |
> | `paddle_list_notifications` | Returns a paginated list of notifications created in the last 90 days. |
> | `paddle_list_notification_settings` | Returns a paginated list of notification settings (notification destinations). |
> | `paddle_list_prices` | Returns a paginated list of prices. |
> | `paddle_list_products` | Returns a paginated list of products. |
> | `paddle_list_reports` | Returns a paginated list of reports. |
> | `paddle_list_simulation_runs` | Returns a paginated list of simulation runs. |
> | `paddle_list_simulations` | Returns a paginated list of simulations. |
> | `paddle_list_simulations_events` | Returns a paginated list of simulations. |
> | `paddle_list_simulation_types` | Returns a list of simulation types (events and scenarios) that you can choose from when creating simulations. |
> | `paddle_list_subscription_history` | Returns a paginated list of history entries for a subscription. |
> | `paddle_list_subscriptions` | Returns a paginated list of subscriptions. |
> | `paddle_list_transactions` | Returns a paginated list of transactions. |
> | `paddle_list_verifications` | Returns a paginated list of verifications. |
> | `paddle_patch_account` | Updates the business identity of the account that you're authenticated as. |
> | `paddle_pause_subscription` | Pauses a subscription using its ID. |
> | `paddle_preview_prices` | Previews calculations for one or more prices. |
> | `paddle_preview_subscription_charge` | Previews creating a one-time charge for a subscription without billing that charge. |
> | `paddle_preview_subscription_update` | Previews an update for a subscription without applying those changes. |
> | `paddle_preview_transaction_create` | Previews a transaction without creating a transaction entity. |
> | `paddle_replay_notification` | Attempts to resend a 'delivered' or 'failed' notification using its ID. |
> | `paddle_replay_simulation_run_event` | Attempts to resend a simulation run log using its ID. |
> | `paddle_resume_subscription` | Resumes a paused subscription using its ID. |
> | `paddle_revise_transaction` | Revises customer information for a billed or completed transaction. |
> | `paddle_run_explore_metrics_query` | Runs a query against a single Explore metric and returns timeseries data for it. |
> | `paddle_update_address` | Updates an address for a customer using its ID and related customer ID. |
> | `paddle_update_balance_currency` | Updates the balance currency settings for your account. |
> | `paddle_update_business` | Updates a business for a customer using its ID and related customer ID. |
> | `paddle_update_checkout_features` | Updates the checkout feature settings for your account. |
> | `paddle_update_checkout_payment_method_settings` | Updates the checkout payment method settings for your account. |
> | `paddle_update_checkout_recovery` | Updates the checkout recovery settings for your account. |
> | `paddle_update_checkout_styles_overlay` | Updates the overlay checkout style settings for your account. |
> | `paddle_update_checkout_url` | Updates the checkout URL settings for your account. |
> | `paddle_update_client_token` | Updates a client-side token using its ID. |
> | `paddle_update_currency_conversions` | Updates the currency conversion settings for your account. |
> | `paddle_update_customer` | Updates a customer using its ID. |
> | `paddle_update_discount` | Updates a discount using its ID. |
> | `paddle_update_discount_group` | Updates a discount group using its ID. |
> | `paddle_update_notification_setting` | Updates a notification setting (notification destination) using its ID. |
> | `paddle_update_price` | Updates a price using its ID. |
> | `paddle_update_product` | Updates a product using its ID. |
> | `paddle_update_simulation` | Updates a simulation using its ID. |
> | `paddle_update_statement_descriptor_settings` | Updates the statement descriptor settings for your account. |
> | `paddle_update_subscription` | Updates a subscription using its ID. |
> | `paddle_update_tax_settings` | Updates the tax settings for your account. |
> | `paddle_update_transaction` | Updates a transaction using its ID. |
> | `paddle_verify_checkout_domain_payment_method` | Triggers payment method verification for a checkout domain. |

## Frequently asked questions

> [accordion] Can I test against Paddle sandbox before going live?
>
> Yes. The page states that both sandbox and live Paddle environments are supported. Connect a credential that uses your Paddle sandbox API key and point your agent at the sandbox environment.

> [accordion] Does the integration receive Paddle webhook events?
>
> No. The catalog entry lists no webhook events for this integration. Agents can poll notification logs and list events that occurred in the last 90 days using the available tools, but incoming webhook delivery is not supported.

> [accordion] How do I stop one agent from cancelling subscriptions while another can?
>
> Write a [credential policy](https://docs.guild.ai/platform/credential-policies.md) that adds a DENY rule for `paddle_cancel_subscription` scoped to the agent that should not cancel. DENY rules take precedence over ALLOW rules and are enforced server-side before the request reaches Paddle.

> [accordion] Can I give one workspace its own Paddle key separate from the rest of the org?
>
> Yes. When connecting the credential, choose **One workspace** to scope it to that workspace only. Agents in other workspaces continue to use the account-level credential, and the workspace-scoped credential never serves them. See [Credentials](https://docs.guild.ai/platform/credentials.md) for the full scoping options.

## Put a governed agent on Paddle billing this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Paddle.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Paddle to your first agent.

## Related

**Also runs on Guild:** [Affinity](https://docs.guild.ai/integrations/affinity-openapi.md) · [Attio](https://docs.guild.ai/integrations/attio.md) · [Brex](https://docs.guild.ai/integrations/brex-openapi.md) · [Deel](https://docs.guild.ai/integrations/deel.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
