Mandate Import
Mandate Imports allow you to migrate existing mandates from other providers into the GoCardless platform.
The process is as follows:
- Create a mandate import
- Add entries to the import
- Submit the import
- Wait until a member of the GoCardless team approves the import, at which point the mandates will be created
- Link up the mandates in your system
When you add entries to your mandate import, they are not turned into actual mandates until the mandate import is submitted by you via the API, and then processed by a member of the GoCardless team. When that happens, a mandate will be created for each entry in the import.
We will issue a mandate_created webhook for each entry, which will be the same as the webhooks
triggered when creating a mandate using the mandates API. Once these
webhooks start arriving, any reconciliation can now be accomplished by
checking the current status of the mandate import and
linking up the mandates to your system.
Restricted: This API is currently only available for approved integrators - please get in touch if you would like to use this API.
Create a new mandate import#
/mandate_importsMandate imports are first created, before mandates are added one-at-a-time, so this endpoint merely signals the start of the import process. Once you've finished adding entries to an import, you should submit it.
Request Body
mandate_importsobject2 properties
schemestring
A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to" and "sepa_core" are supported.
achautogirobacsbecsbecs_nzbetalingsservicefaster_paymentspadpay_tosepa_corelinksobject
Related resources
1 properties
creditorstring
ID of the associated creditor. Only required if your account manages multiple creditors.
Response 201
Resource created successfully
mandate_importsobject5 properties
idstring
Unique identifier, beginning with "IM".
created_atstring
Fixed timestamp, recording when this resource was created.
statusstring
The status of the mandate import.
created: A new mandate import.submitted: After the integrator has finished adding mandates and submitted the import.cancelled: If the integrator cancelled the mandate import.processing: Once a mandate import has been approved by a GoCardless team member it will be in this state while mandates are imported.processed: When all mandates have been imported successfully.
createdsubmittedcancelledprocessingprocessedschemestring
The scheme of the mandates to be imported.
All mandates in a single mandate
import must be for the same scheme.
achautogirobacsbecsbecs_nzbetalingsservicefaster_paymentspadpay_tosepa_corelinksobject
Related resources
1 properties
creditorstring
ID of the associated creditor.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectGet a mandate import#
/mandate_imports/{mandate_import_id}Returns a single mandate import.
Path Parameters
| Name | Type | Description |
|---|---|---|
mandate_import_idrequired | string | The mandate import id |
Response 200
Successful response
mandate_importsobject5 properties
idstring
Unique identifier, beginning with "IM".
created_atstring
Fixed timestamp, recording when this resource was created.
statusstring
The status of the mandate import.
created: A new mandate import.submitted: After the integrator has finished adding mandates and submitted the import.cancelled: If the integrator cancelled the mandate import.processing: Once a mandate import has been approved by a GoCardless team member it will be in this state while mandates are imported.processed: When all mandates have been imported successfully.
createdsubmittedcancelledprocessingprocessedschemestring
The scheme of the mandates to be imported.
All mandates in a single mandate
import must be for the same scheme.
achautogirobacsbecsbecs_nzbetalingsservicefaster_paymentspadpay_tosepa_corelinksobject
Related resources
1 properties
creditorstring
ID of the associated creditor.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectSubmit a mandate import#
/mandate_imports/{mandate_import_id}/actions/submitSubmits the mandate import, which allows it to be processed by a member of the GoCardless team. Once the import has been submitted, it can no longer have entries added to it.
In our sandbox environment, to aid development, we automatically process mandate imports approximately 10 seconds after they are submitted. This will allow you to test both the "submitted" response and wait for the webhook to confirm the processing has begun.
Path Parameters
| Name | Type | Description |
|---|---|---|
mandate_import_idrequired | string | The mandate import id |
Request Body
mandate_importsobjectResponse 200
Action completed successfully
mandate_importsobject5 properties
idstring
Unique identifier, beginning with "IM".
created_atstring
Fixed timestamp, recording when this resource was created.
statusstring
The status of the mandate import.
created: A new mandate import.submitted: After the integrator has finished adding mandates and submitted the import.cancelled: If the integrator cancelled the mandate import.processing: Once a mandate import has been approved by a GoCardless team member it will be in this state while mandates are imported.processed: When all mandates have been imported successfully.
createdsubmittedcancelledprocessingprocessedschemestring
The scheme of the mandates to be imported.
All mandates in a single mandate
import must be for the same scheme.
achautogirobacsbecsbecs_nzbetalingsservicefaster_paymentspadpay_tosepa_corelinksobject
Related resources
1 properties
creditorstring
ID of the associated creditor.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectCancel a mandate import#
/mandate_imports/{mandate_import_id}/actions/cancelCancels the mandate import, which aborts the import process and stops the mandates being set up in GoCardless. Once the import has been cancelled, it can no longer have entries added to it. Mandate imports which have already been submitted or processed cannot be cancelled.
Path Parameters
| Name | Type | Description |
|---|---|---|
mandate_import_idrequired | string | The mandate import id |
Request Body
mandate_importsobjectResponse 200
Action completed successfully
mandate_importsobject5 properties
idstring
Unique identifier, beginning with "IM".
created_atstring
Fixed timestamp, recording when this resource was created.
statusstring
The status of the mandate import.
created: A new mandate import.submitted: After the integrator has finished adding mandates and submitted the import.cancelled: If the integrator cancelled the mandate import.processing: Once a mandate import has been approved by a GoCardless team member it will be in this state while mandates are imported.processed: When all mandates have been imported successfully.
createdsubmittedcancelledprocessingprocessedschemestring
The scheme of the mandates to be imported.
All mandates in a single mandate
import must be for the same scheme.
achautogirobacsbecsbecs_nzbetalingsservicefaster_paymentspadpay_tosepa_corelinksobject
Related resources
1 properties
creditorstring
ID of the associated creditor.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobject