Retrieve the GoCardless refund of an invoice
GET/api/v1/invoices/:invoice_id/gocardless_refund
Returns the most recent refund requested on the invoice's GoCardless collection, and - once issued - the credit note for it: issued when the refund settles or, failing that, 45 days after it was paid. Answers 404 when no refund was ever requested.
Request
Responses
- 200
- 403
- 404
- 429
The refund.
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 no refund was ever requested on it.
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.