Skip to content
Payfunnels logo

Connectors / Finance · HTTP Connector

Payfunnels integration and API

Create a one-time payment link and create a setup fee in Payfunnels. Connect Payfunnels to the rest of your finance stack with Tray.ai.

What can you do with Payfunnels on Tray.ai?

Payfunnels runs on top of Stripe to let businesses take payments through payment links, invoices, subscriptions, and payment plans without writing code. Tray.ai connects to Payfunnels through the HTTP Connector, so your workflows can call the Payfunnels API alongside the rest of your stack.

  • Create a one-time payment link when a quote is approved in your CRM and email it to the customer.
  • List payments each night and record them in your accounting system.
  • When a customer churns in your CRM, cancel a subscription so they are not billed again.
  • Refund a payment when your help desk approves a refund request.
Connects through
HTTP Connector
Authentication
An API key in a request header or OAuth 2.0
Base URL
https://api.payfunnels.com

Set it up

Connect Payfunnels to Tray.ai

Each step uses Payfunnels's own API details, from its documentation.

Save Payfunnels's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.payfunnels.com as the base URL. Or paste a cURL example from Payfunnels's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List payment links”

It's one of 20 documented actions, under Payment links. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Get a payment link” and “Create a one-time payment link” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Payfunnels

Connect Payfunnels with HubSpot and QuickBooks

Each one uses actions and events from Payfunnels's own API documentation.

Add Payfunnels buyers to HubSpot

When

On a schedule

Then

  1. List payments since the last run
  2. Create or update each buyer as a contact in HubSpot

With HubSpot

Record Payfunnels payments in QuickBooks

When

On a schedule

Then

  1. List payments since the last run
  2. Record each payment as a sales receipt in QuickBooks

With QuickBooks

Cancel Payfunnels subscriptions for churned HubSpot customers

When

A customer is marked churned in HubSpot

Then

  1. Cancel a subscription for the customer
  2. Note the cancellation on the contact in HubSpot

With HubSpot

Apps you can build on Payfunnels data

Internal tools your team can build with an AI assistant, each one using Payfunnels calls from its API documentation.

Subscription pause desk

Lets support find a customer's subscription and pause, resume or cancel it on request.

Payment refund queue

Lists recent payments so finance can review a disputed charge and issue a refund.

Payment link catalog

Shows all payment links and setup fees so sales can find the right link or create a new one.

Give your AI agents Payfunnels tools

Build an MCP server on Payfunnels in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List payment links
  • List payments
  • List subscriptions
  • List setup fees
  • List processing fees
  • Get a payment link
  • Create a one-time payment link
  • Create a recurring payment link

What the Payfunnels API covers

5 resources and 20 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Payment links

  • List payment links
  • Get a payment link
  • Create a one-time payment link
  • Create a recurring payment link
  • Update a payment link
  • Delete a payment link

Payments

  • List payments
  • Get a payment
  • Refund a payment

Subscriptions

  • List subscriptions
  • Get a subscription
  • Cancel a subscription
  • Pause a subscription
  • Resume a subscription

Setup fees

  • List setup fees
  • Create a setup fee
  • Update a setup fee
  • Delete a setup fee

Processing fees

  • List processing fees
  • Get the default processing fee

Checked against Payfunnels's own documentation on 2026-10-22

api.payfunnels.com/docs

Frequently asked questions

What can a Tray.ai workflow do in Payfunnels?

The Payfunnels API documents 20 actions across 5 resources (Payment links, Payments, Subscriptions, Setup fees, Processing fees). For example: List payment links; List payments; List subscriptions. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Payfunnels?

The Payfunnels API uses an API key in a request header and OAuth 2.0. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Payfunnels working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.