Retrieve the GoCardless collection of an invoice
GET/api/v1/invoices/:invoice_id/gocardless_payment
Returns the most recent GoCardless direct-debit collection opened on the invoice, with the status GoCardless itself reports. Answers 404 when the invoice carries no collection - that is the normal answer before one is opened, not an error about the invoice.
Request
Responses
- 200
- 403
- 404
- 429
The collection.
The access token does not carry the read scope, the gocardless_payment feature is not enabled for the invoice's workspace, or the token's application may not read this invoice.
No invoice exists with the given ID, it belongs to another workspace, it is not a sales invoice, or it carries no GoCardless collection.
rate_limited: this OAuth application went over the partner API limit, 300 requests per minute per OAuth application, shared by every authenticated operation, every access token of the application and its calls to the MCP endpoint /mcp, which count against the same window. Nothing was done; retry after Retry-After seconds.
Response Headers
Seconds to wait before retrying.