Refund
Create a refund#
/refundsCreates a new refund object.
-
total_amount_confirmation_invalidif the confirmation amount doesn't match the total amount refunded for the payment. This safeguard is there to prevent two processes from creating refunds without awareness of each other. -
available_refund_amount_insufficientif the creditor does not have sufficient balance for refunds available to cover the cost of the requested refund.
Request Body
refundsobject5 properties
amountobject
Amount in minor unit (e.g. pence in GBP, cents in EUR).
referencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
total_amount_confirmationobject
Total expected refunded amount in minor unit (e.g. pence/cents/öre). If there are
other partial refunds against this payment, this value should be the sum of the
existing refunds plus the amount of the refund being created.
Must be supplied if links[payment] is present.
It is possible to opt out of requiring total_amount_confirmation, please contact our support team for more information.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
2 properties
paymentstring
ID of the payment against which the refund is being made.
mandateobjectResponse 201
Resource created successfully
refundsobject9 properties
idstring
Unique identifier, beginning with "RF".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount in minor unit (e.g. pence in GBP, cents in EUR).
statusstring
One of:
created: the refund has been createdpending_submission: the refund has been created, but not yet submitted to the bankssubmitted: the refund has been submitted to the bankspaid: the refund has been included in a payoutcancelled: the refund has been cancelledbounced: the refund has failed to be paidfunds_returned: the refund has had its funds returned
createdpending_submissionsubmittedpaidcancelledbouncedfunds_returnedreferencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDErrors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectList refunds#
/refundsReturns a cursor-paginated list of your refunds.
Response 200
Successful response
refundsarray9 properties
idstring
Unique identifier, beginning with "RF".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount in minor unit (e.g. pence in GBP, cents in EUR).
statusstring
One of:
created: the refund has been createdpending_submission: the refund has been created, but not yet submitted to the bankssubmitted: the refund has been submitted to the bankspaid: the refund has been included in a payoutcancelled: the refund has been cancelledbounced: the refund has failed to be paidfunds_returned: the refund has had its funds returned
createdpending_submissionsubmittedpaidcancelledbouncedfunds_returnedreferencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDmetaobject2 properties
limitintegercursorsobject
2 properties
beforestring
Cursor pointing to the end of the desired set.
afterstring
Cursor pointing to the start of the desired set.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectGet a single refund#
/refunds/{refund_id}Retrieves all details for a single refund
Path Parameters
| Name | Type | Description |
|---|---|---|
refund_idrequired | string | The refund id |
Response 200
Successful response
refundsobject9 properties
idstring
Unique identifier, beginning with "RF".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount in minor unit (e.g. pence in GBP, cents in EUR).
statusstring
One of:
created: the refund has been createdpending_submission: the refund has been created, but not yet submitted to the bankssubmitted: the refund has been submitted to the bankspaid: the refund has been included in a payoutcancelled: the refund has been cancelledbounced: the refund has failed to be paidfunds_returned: the refund has had its funds returned
createdpending_submissionsubmittedpaidcancelledbouncedfunds_returnedreferencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDErrors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectUpdate a refund#
/refunds/{refund_id}Updates a refund object.
Path Parameters
| Name | Type | Description |
|---|---|---|
refund_idrequired | string | The refund id |
Request Body
refundsobject1 properties
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
Response 200
Successful response
refundsobject9 properties
idstring
Unique identifier, beginning with "RF".
created_atstring
Fixed timestamp, recording when this resource was created.
amountobject
Amount in minor unit (e.g. pence in GBP, cents in EUR).
statusstring
One of:
created: the refund has been createdpending_submission: the refund has been created, but not yet submitted to the bankssubmitted: the refund has been submitted to the bankspaid: the refund has been included in a payoutcancelled: the refund has been cancelledbounced: the refund has failed to be paidfunds_returned: the refund has had its funds returned
createdpending_submissionsubmittedpaidcancelledbouncedfunds_returnedreferencestring
An optional reference that will appear on your customer's bank statement. The character limit for this reference is dependent on the scheme.
ACH - 10 characters
Autogiro - 11 characters
Bacs - 10 characters
BECS - 30 characters
BECS NZ - 12 characters
Betalingsservice - 30 characters
Faster Payments - 18 characters
PAD - scheme doesn't offer references
PayTo - 18 characters
SEPA - 140 characters
Note that this reference must be unique (for each merchant) for the BECS scheme as it is a scheme requirement.
Restricted: You can only specify a payment reference for Bacs payments (that is, when collecting from the UK) if you're on the GoCardless Plus, Pro or Enterprise packages.
Restricted: You can not specify a payment reference for Faster Payments.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
fxobject
4 properties
exchange_ratestring
Rate used in the foreign exchange of the amount into the fx_currency.
Present only after a resource is paid out. Has up to 10 decimal places.
estimated_exchange_ratestring
Estimated rate that will be used in the foreign exchange of the amount into the fx_currency.
This will vary based on the prevailing market rate until the moment that it is paid out.
Present only before a resource is paid out. Has up to 10 decimal places.
fx_amountobject
Amount that was paid out in the fx_currency after foreign exchange.
Present only after the resource has been paid out.
fx_currencystring
ISO 4217 code for the currency in which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made via foreign exchange.
AUDCADDKKEURGBPNZDSEKUSDErrors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobject