# GoCardless integrations: customers and mandates

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

**Canonical page:** https://tray.ai/connectors/gocardless-integrations/
**Categories:** Finance
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Customers

Read, create, update, and delete customers in GoCardless from any Tray.ai workflow. The GoCardless API covers calls such as create a customer and list customers.

- Create a customer
- List customers
- Get a customer

### Mandates

Read, create, delete, and manage mandates in GoCardless from any Tray.ai workflow. The GoCardless API covers calls such as create a mandate and list mandates.

- Create a mandate
- List mandates
- Get a mandate

### Payments

Read, create, delete, and manage payments in GoCardless from any Tray.ai workflow. The GoCardless API covers calls such as create a payment and list payments.

- Create a payment
- List payments
- Get a payment

### Subscriptions

Read, create, update, and delete subscriptions in GoCardless from any Tray.ai workflow. The GoCardless API covers calls such as create a subscription and list subscriptions.

- Create a subscription
- List subscriptions
- Pause a subscription

### Refunds

Read and create refunds in GoCardless from any Tray.ai workflow. The GoCardless API covers calls such as create a refund and list refunds.

- Create a refund
- List refunds
- Get a refund

### Payouts

Read payouts in GoCardless from any Tray.ai workflow. The GoCardless API covers calls such as list payouts and get a payout.

- List payouts
- Get a payout

## Challenges Tray.ai solves

### Keeping GoCardless credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store GoCardless credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the GoCardless API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the GoCardless API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to GoCardless?

Yes. Tray.ai connects to GoCardless through the HTTP Connector, which calls the GoCardless API directly. Any call the GoCardless API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated GoCardless connector?

GoCardless runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated GoCardless connector from the GoCardless API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
