error_reason Fields |
The GoCardlessErrorerror_reason type exposes the following members.
Name | Description | |
---|---|---|
access_token_not_active |
The access token you are using has been disabled.
| |
access_token_not_found |
No access token with the ID specified was found.
| |
bad_request |
The request syntax was incorrect.
| |
bank_account_disabled |
The mandate could not be created because the customer bank account linked is disabled.
| |
bank_account_exists |
The customer or creditor bank account you are trying to create already exists.
These resources must be unique.
You should use the corresponding update endpoints to update the details on the existing bank account instead, which will be referenced as links[customer_bank_account] or links[creditor_bank_account] (as appropriate) in the error response.
| |
cancellation_failed |
The mandate, payment or subscription was not in a cancellable state.
It might have already been cancelled, failed, or it might be too late in the submission process to cancel.
For example, payments cannot be cancelled once they are submitted to the banks.
| |
customer_bank_account_token_used |
The customer bank account could not be created because the token given has already been used.
| |
disable_failed |
The customer or creditor bank account could not be disabled, as it is already disabled.
| |
feature_disabled |
You are trying to use a feature which hasn’t been enabled on your account.
Please contact support if you would like to enable it.
| |
forbidden |
You were authenticated, but you do not have permission to access that resource.
| |
idempotency_key_too_long |
An idempotency key was supplied for this request but exceeded the max length of this key.
See idempotency keys for details on how to work with idempotency.
| |
idempotent_creation_conflict |
The resource has not been created as a resource has already been created with the supplied idempotency key.
See idempotency keys for details.
| |
insufficient_permissions |
The access token you are using does not have the right scope to perform the requested action.
| |
invalid_authorization_header |
The Authorization header sent was not valid.
Make sure it was constructed as described in making requests.
| |
invalid_content_type |
When including a JSON body with a request you must also include a Content-Type header, set to application/json or application/vnd.api+json.
| |
invalid_document_structure |
The JSON sent to the server was not in the correct structure.
Note that JSON parameters may not be sent at the top level, but must be sent under the name of the resource.
See the examples for details on how this is done for each endpoint.
| |
invalid_filters |
The combination of filters specified in the query string of your request are not allowed.
Only certain combinations of filters may be applied to each list endpoint, as documented on each endpoint.
| |
invalid_type |
The errors key may also hold an array of type errors if the JSON you sent was incorrectly typed.
These are in the same format as validation errors (with a message and field per error).
A type error will also be returned if you include any additional, unknown parameters.
| |
link_not_found |
One of the link[resource] IDs in the request was not found.
Your integration should ensure that end users can only use existing resources.
| |
mandate_is_inactive |
The payment could not be created, because the mandate linked is cancelled, failed, or expired.
| |
mandate_not_inactive |
The mandate could not be reinstated, because it is already being submitted, or is active.
| |
mandate_replaced |
The resource could not be created, because the mandate it links to has been replaced (for example, because the creditor has moved to a new Service User Number).
The new mandate can be found through the reference to links[new_mandate] in the error response, or by retrieving the original mandate and checking links[new_mandate].
| |
method_not_allowed |
The HTTP verb used is not permitted.
Note that we do not allow PATCH requests, and PUT must be used to update resources.
| |
missing_authorization_header |
No Authorization header was included in your request.
See making requests for details on how to structure your authorisation header.
| |
missing_version_header |
No GoCardless-Version header was included in your request.
See making requests for details on how to set your version header.
| |
not_acceptable |
The content type specified in your Accept header was not acceptable to this endpoint.
| |
number_of_refunds_exceeded |
The refund could not be created because five refunds have already been created for the given payment.
| |
path_not_found |
The path was not recognised.
Check that you spelled the resource name correctly, and that the URL is formatted correctly.
| |
rate_limit_exceeded |
You have exceeded the rate limit.
See the included headers for when your rate limit will be reset.
| |
refund_payment_invalid_state |
The refund could not be created, because the payment specified is not confirmed or paid_out.
| |
request_body_not_allowed |
Sending a request body is not supported for the HTTP method you have used. Use query string parameters in the URL instead.
| |
request_entity_too_large |
The body of your request is too large.
| |
resource_not_found |
The ID in the request was not found in our database.
| |
retry_failed |
The payment could not be retried.
| |
tls_required |
The GoCardless API can only be accessed over TLS/SSL.
Make sure you are sending requests to urls starting with https://, not http://.
| |
total_amount_confirmation_invalid |
The refund could not be created because the total amount refunded does not match.
| |
unauthorized |
Your username/password was not recognised.
| |
unsupported_media_type |
The API communicates using JSON only.
Make sure that your Accept header permits JSON, and your Content-Type header is supported, if you are sending JSON data (e.g. with a POST or PUT request).
| |
version_not_found |
The GoCardless-Version specified was not found.
The version must be one of those listed in the changelog.
|