Skip to main content

Open a GoCardless collection on an invoice

POST 

/api/v1/invoices/:invoice_id/gocardless_payment

Opens a SEPA direct-debit collection for the invoice's whole outstanding amount through the company's connected GoCardless account. When the customer has not yet authorized a mandate, an authorization request is emailed to the contact named by contact_id and the collection is returned in pending_authorization; the debit itself follows once the mandate is authorized. The body is optional and is only needed for that first authorization. Requires the gocardless_payment feature and a company whose offer allows sales.

Request​

Responses​

The collection was opened.

Response Headers
    Idempotency-Replayed

    Present, and always true, when this response is the stored reply to an earlier call bearing the same Idempotency-Key, the same body and the same query parameters. No collection was opened by the request that received it. Absent on the call that actually opened one.