Skip to content

GoCardless ​

Sends a GoCardless Direct Debit authorisation link, creates and follows payments, finds customers and mandates.

The GoCardless node sends a SEPA Direct Debit authorisation link, creates and follows payments, and finds customers and mandates: rent, management fees, subscriptions.

See GoCardless to create the connection.

At a glance ​

  • Type: gocardless.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: GoCardless
  • Inputs: main
  • Outputs: main
The ports of “GoCardless”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a GoCardless connection.GoCardlessgocardless.apimainmainerror · only with “Follow the Error output”Connection: GoCardless
The ports of “GoCardless”: what comes in on the left, what goes out on the right

Connection ​

This node needs a GoCardless connection.

Parameters ​

connection ​

GoCardless connection — The GoCardless connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: billingRequest.create
  • Options:
    • billingRequest.create — Request a Direct Debit authorisation: Returns the link where the payer signs their mandate, with a first payment if an amount is given.
    • payment.create — Create a payment: On an existing mandate, on a given date or as soon as possible.
    • payment.get — Get a payment: Its status: submitted, confirmed, paid out, failed…
    • payment.list — List payments: By status, customer or mandate, since a date.
    • customer.find — Find a customer by email: Among the most recent customers.
    • customer.create — Create a customer: Without a mandate: that is signed through an authorisation request.
    • mandate.list — List a customer’s mandates: To know whether they can already be charged.

amount ​

Amount — Accepts 1234.50 as well as 1 234,50 €. Optional for an authorisation request: empty = mandate only.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is one of billingRequest.create, payment.create
  • Expressions: {{ }} accepted

currency ​

Currency

  • Type: Text (string)
  • Required: No
  • Default: EUR
  • 3 characters at most
  • Shown when: action is one of billingRequest.create, payment.create
  • Expressions: {{ }} accepted

description ​

Description — Shown to the payer (November rent, fees…).

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is one of billingRequest.create, payment.create
  • Expressions: {{ }} accepted

mandateId ​

Mandate — The mandate id (MD…), returned by “List a customer’s mandates”.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is payment.create
  • Expressions: {{ }} accepted

chargeDate ​

Charge date — Optional: empty = as soon as possible.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is payment.create
  • Expressions: {{ }} accepted

reference ​

Reference — Optional, shown on the payer’s statement when their scheme allows it.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 140 characters at most
  • Shown when: action is payment.create
  • Expressions: {{ }} accepted

paymentId ​

Payment — The PM… id.

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is payment.get
  • Expressions: {{ }} accepted

customerId ​

Customer — The CU… id. Optional when listing payments, and for an authorisation request (the payer then enters their details).

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is one of billingRequest.create, payment.list, mandate.list
  • Expressions: {{ }} accepted

email ​

Email address

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.address }}
  • Shown when: action is one of customer.find, billingRequest.create, customer.create
  • Expressions: {{ }} accepted

givenName ​

First name

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 100 characters at most
  • Shown when: action is one of billingRequest.create, customer.create
  • Expressions: {{ }} accepted

familyName ​

Last name

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 100 characters at most
  • Shown when: action is one of billingRequest.create, customer.create
  • Expressions: {{ }} accepted

companyName ​

Company — Instead of first and last name, for a company payer.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 200 characters at most
  • Shown when: action is one of billingRequest.create, customer.create
  • Expressions: {{ }} accepted

redirectUrl ​

Return page — Optional: where the payer lands once the mandate is signed.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 2000 characters at most
  • Shown when: action is billingRequest.create
  • Expressions: {{ }} accepted

status ​

Status

  • Type: One choice (options)
  • Required: No
  • Default: any
  • Options:
    • any — Any
    • pending_submission — Pending submission
    • submitted — Submitted
    • confirmed — Confirmed
    • paid_out — Paid out
    • failed — Failed
    • cancelled — Cancelled
    • charged_back — Charged back
  • Shown when: action is payment.list

createdFrom ​

Created since

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is payment.list
  • Expressions: {{ }} accepted

limit ​

Maximum count

  • Type: Number (number)
  • Required: No
  • Default: 20
  • Whole number, from 1 to 500
  • Shown when: action is one of payment.list, mandate.list

Outputs ​

  • main — Taken once the call to GoCardless succeeds, whatever the action. An error response from GoCardless fails the step instead.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.<step>.url }} — string. Authorisation request: the link to send to the payer.
  • {{ data.<step>.id }} — string. The GoCardless id (PM…, CU…).
  • {{ data.<step>.status }} — string. Payments: pending_submission, submitted, confirmed, paid_out, failed…
  • {{ data.<step>.mandateId }} — string. List mandates: the usable mandate, empty when there is none.
  • {{ data.<step>.payments }} — array of { id, status, amount, chargeDate, mandateId }. List payments only.
  • {{ data.<step>.simulated }} — boolean. true when the action was described instead of done: in a test run, creations and changes are not sent; reads always go out for real.
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language (with summaryKey and summaryParams).

Operations ​

The node has a single Action parameter (action). Each action calls the GoCardless API with the connection’s key.

  • Request a Direct Debit authorisation (billingRequest.create, the default). Creates the request and its hosted flow, and publishes the link (url, valid seven days). With an Amount, a first payment is requested at the same time.
  • Create a payment (payment.create) on a Mandate, amount converted to cents; Get a payment and List payments (payment.get, payment.list).
  • Find a customer by email (customer.find), Create a customer (customer.create) and List a customer’s mandates (mandate.list, which publishes the usable mandate flat).

Example ​

A new tenant signs the lease. The mandate node creates the request and Compose sends {{ data.mandate.url }}:

text
action       billingRequest.create
email        {{ data.read.email }}
givenName    {{ data.read.first_name }}
familyName   {{ data.read.last_name }}

Tips ​

  • Test runs. Reads go out for real in a test run; creations and changes are only described (simulated is true).
  • Amounts and dates. Amounts accept 1234.50 as well as 1 234,50 €; dates 2026-11-15 as well as 15/11/2026. An unreadable value is never guessed.
  • Real idempotency. Each creation carries a key derived from the step: a retry after a successful creation is refused by GoCardless instead of charging twice.
  • Errors. integration.unauthorized: the key was refused or revoked, replace it in the connection. integration.rejected: GoCardless refused the request (missing field, invalid value), fix the settings. integration.rate_limited and integration.unavailable are retried automatically. An empty required parameter or an unreadable amount fails the step with node_invalid_param, before any call. See Error handling.

Loop & Roll — the workflow builder for email.