Skip to content
GoCardless logo

Connectors / Finance · HTTP Connector

GoCardless integration and API

Create a customer, create a mandate and create a payment in GoCardless, and start a workflow when GoCardless sends “Mandate cancelled”.

What can you do with GoCardless on Tray.ai?

GoCardless is a bank payment network for collecting recurring and one-off payments by direct debit and open banking. Tray.ai connects to GoCardless through the HTTP Connector, so your workflows can call the GoCardless API alongside the rest of your stack.

  • When GoCardless sends “Mandate cancelled”, flag the customer's account in your billing system.
  • Create a customer when a new subscription is signed up in your billing system.
  • When GoCardless sends “Mandate failed”, alert the finance team in your team chat.
  • Create a payment when an invoice is approved in your accounting system.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.gocardless.com

Set it up

Connect GoCardless to Tray.ai

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

Save GoCardless's API token

Save the token GoCardless issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token 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.gocardless.com as the base URL. Or paste a cURL example from GoCardless's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List customers”

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

Start workflows from GoCardless events

Give GoCardless the URL of a Tray.ai webhook trigger. “Mandate cancelled” can then start a workflow, and so can 3 other events.

Workflows to build with GoCardless

Connect GoCardless with Slack, Salesforce and Xero

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

Alert finance in Slack when a GoCardless mandate fails

When

Mandate failed

Then

  1. Get a customer in GoCardless
  2. Post a message to the finance channel in Slack

With Slack

Start GoCardless subscriptions for closed Salesforce deals

When

A deal closes in Salesforce

Then

  1. Create a customer in GoCardless
  2. Create a mandate
  3. Create a subscription for the agreed plan

With Salesforce

Record GoCardless payouts in Xero

When

On a schedule

Then

  1. List payouts in GoCardless
  2. Create a bank deposit in Xero for each payout

With Xero

Apps you can build on GoCardless data

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

Failed payment retry queue

Lists failed payments by customer and lets a collections team retry or cancel each one.

Mandate health monitor

Shows cancelled, failed and expired mandates as they happen so finance can reach out or reinstate them.

Subscription manager

Lists customer subscriptions and lets account managers pause, resume or cancel each one.

Give your AI agents GoCardless tools

Build an MCP server on GoCardless 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

  • Create a customer
  • Create a mandate
  • Create a payment
  • Create a subscription
  • Create a refund
  • List payouts
  • List customers
  • Get a customer

What the GoCardless API covers

6 resources and 25 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.

Customers

  • Create a customer
  • List customers
  • Get a customer
  • Update a customer
  • Remove a customer

Mandates

  • Create a mandate
  • List mandates
  • Get a mandate
  • Cancel a mandate
  • Reinstate a mandate

Payments

  • Create a payment
  • List payments
  • Get a payment
  • Cancel a payment
  • Retry a payment

Subscriptions

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

Refunds

  • Create a refund
  • List refunds
  • Get a refund

Payouts

  • List payouts
  • Get a payout

Events GoCardless can send to a Tray.ai webhook trigger

  • Mandate cancelled
  • Mandate failed
  • Mandate expired
  • Mandate replaced

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

docs.gocardless.com/api-reference

Frequently asked questions

What can a Tray.ai workflow do in GoCardless?

The GoCardless API documents 25 actions across 6 resources (Customers, Mandates, Payments, Subscriptions, Refunds, Payouts). For example: Create a customer; Create a mandate; Create a payment. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with GoCardless?

The GoCardless API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which GoCardless events can start a Tray.ai workflow?

GoCardless sends 4 events to a webhook URL, for example: Mandate cancelled; Mandate failed; Mandate expired; Mandate replaced. A Tray.ai webhook trigger receives them and starts a workflow.

See GoCardless 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.