GoCardless integration

Direct debit: mandates, payments, subscriptions, refunds, payouts

Help CentreConnectors

Overview

GoCardless is a direct-debit payment processor – bank-to-bank pull payments (no cards). Popular in UK/EU/AU/NZ/CA/US for subscriptions and one-off bank payments where card fees are too high. The Automize GoCardless connector covers customers, mandates (authorisation to pull), payments, subscriptions, payouts, and refunds.

  • Regions: GoCardless operates regional schemes: Bacs (UK), SEPA Core (EU), BECS (AU), ACH (US), PAD (CA), Autogiro (SE), Betalingsservice (DK), PAD NZ. Scheme picked per mandate.
  • Plans: Pay-per-transaction. Standard, Plus, Pro tiers with volume discounts + features (custom payment pages, white-label).

Setting up the connection

Auth type: API Key.

  1. Sign in to manage.gocardless.com → Developers → Create → Access token.
  2. Pick environment: Sandbox (sandbox.gocardless.com) or Live (api.gocardless.com).
  3. Copy the token (starts with sandbox_ or live_).
  4. In Automize, open Settings → Connectors → GoCardless → Add connection. Paste token + environment.

Find your credentials at https://manage.gocardless.com/developers.


Rate limits

GoCardless enforces 350 requests / 5 sec per token. Connector retries 429 with backoff.


Data model

Direct-debit flow:

    Customer ─── Customer Bank Account ─── Mandate (auth to pull) ─┬─ Payments (one-off)
                                                                   └─ Subscriptions (recurring)
    Payouts (settlement of collected payments into merchant bank)
    Refunds (return funds to customer)

Mandate must be signed-off by the customer (UI redirect flow) before
payments can be pulled.

Available operations

13 operations available. Click any row to jump to its detail.

OperationCategoryWhat it does
Cancel PaymentGeneralCancel a pending payment
Create CustomerGeneralCreate a new customer
Create MandateGeneralCreate a new mandate
Create PaymentGeneralCreate a new payment
Create RefundGeneralCreate a refund for a payment
Create SubscriptionGeneralCreate a recurring subscription
Get PaymentGeneralGet payment details by ID
List CustomersGeneralList all customers
List MandatesGeneralList all mandates
List PaymentsGeneralList all payments
List PayoutsGeneralList all payouts
List RefundsGeneralList all refunds
List SubscriptionsGeneralList all subscriptions

Operations

Cancel Payment

Cancel a pending payment

ParameterRequiredTypeDescription
Payment Id payment_idYestext

Tips

  • Only works while in pending_submission status. Once submitted, can only refund.

Create Customer

Create a new customer

ParameterRequiredTypeDescription
Email emailYestext
Given Name given_nameYestext
Family Name family_nameYestext
Country Code country_codeYestext

Tips

  • email + given_name + family_name + country_code (ISO-2).
  • swedish_identity_number / danish_identity_number for those schemes.

Create Mandate

Create a new mandate

ParameterRequiredTypeDescription
Scheme schemeYestext
Customer Bank Account customer_bank_accountYestext

Tips

  • scheme: bacs, sepa_core, becs, ach, pad, autogiro, etc.
  • customer_bank_account: existing CBA ID. Use Billing Request Flow (redirect to GoCardless) for new customers – gets you authenticated bank details + mandate in one go.

Create Payment

Create a new payment

ParameterRequiredTypeDescription
Amount amountYesnumber
Currency currencyYestext
Mandate mandateYestext
Description descriptionYestext

Tips

  • amount in pence/cents (smallest unit) + currency + mandate (mandate ID).
  • description shows on customer's statement.
  • Charge date defaults based on scheme rules (3 working days for Bacs).

Errors

  • mandate_not_active – Mandate not in active state – may still be pending bank confirmation.
  • mandate_cancelled – Customer cancelled. Need a new mandate.

Create Refund

Create a refund for a payment

ParameterRequiredTypeDescription
Amount amountYesnumber
Payment paymentYestext
Total Amount Confirmation total_amount_confirmationYestext

Tips

  • payment + amount + total_amount_confirmation (must equal the original payment total – safety check).

Create Subscription

Create a recurring subscription

ParameterRequiredTypeDescription
Amount amountYesnumber
Currency currencyYestext
Interval Unit interval_unitYestext
Mandate mandateYestext

Tips

  • amount + currency + interval_unit (weekly, monthly, yearly) + interval (1 = every period) + mandate.
  • Set start_date / end_date for finite-duration subscriptions.

Get Payment

Get payment details by ID

ParameterRequiredTypeDescription
Payment Id payment_idYestext

Tips

  • Returns status: pending_customer_approval, pending_submission, submitted, confirmed, paid_out, cancelled, failed, charged_back.

List Customers

List all customers

No input parameters.

Tips

  • Page via limit + after (cursor). Filter by created_at.

List Mandates

List all mandates

No input parameters.

Tips

  • Filter by customer, status (pending, active, cancelled, failed).

List Payments

List all payments

No input parameters.

Tips

  • Filter by customer, mandate, subscription, status, charge_date.

List Payouts

List all payouts

No input parameters.

Tips

  • Money paid into your bank account by GoCardless. status: pending, paid, bounced.

List Refunds

List all refunds

No input parameters.

Tips

  • Filter by payment.

List Subscriptions

List all subscriptions

No input parameters.

Tips

  • Filter by customer / status.

FAQ

How do I onboard a new customer?
Use Billing Request Flow (redirect-based) – GoCardless handles bank details collection + mandate authorisation in one UI. After completion, you get a fulfilled mandate ready for charging.
Sandbox vs live?
Two separate connections. Sandbox uses test customer scenarios (fake banks). Live processes real money.
Why does payment fail after several days?
Direct debits have settlement windows (Bacs 3 days, SEPA 5 days). status=pending_submission/submitted means in-flight. confirmed = settled. failed = bank rejected (insufficient funds, account closed, etc.).
Payment vs Subscription?
Payment = one-off. Subscription = creates recurring payments automatically on schedule. Both pull via the same mandate.

Related connectors

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.