Create funding source error types

Hi I’m trying to investigate why a create funding source api call failed for a customer in production. Unfortunately this call swallowed the error. We handle validation error, duplicate resource error, and invalid resource error types. I was hoping to find a list of error types to handle going forward.

Thank you in advance

Hi @paul.yeo, Here is a list of examples for the errors you could encounter for create a customer funding source:

HTTP 400 (MaxNumberOfResources)
    "code": "MaxNumberOfResources",
    "message": "The maximum number of banks have been added."

HTTP 400 (DuplicateResource)
    "code": "DuplicateResource",
    "message": "Bank already exists: id=024c25f9-3a6b-42ce-8ca5-7a8cee9ad5fd",
    "_links": {
        "about": {
            "href": "",
            "type": "application/vnd.dwolla.v1.hal+json",
            "resource-type": "funding-source"

HTTP 400 (ValidationError) (InvalidFormat) - Invalid request param
    "code": "ValidationError",
    "message": "Validation error(s) present. See embedded errors list for more details.",
    "_embedded": {
        "errors": [
                "code": "InvalidFormat",
                "message": "Routing number must be exactly 9 characters.",
                "path": "/routingNumber",
                "_links": {}

HTTP 403 (InvalidResourceState)
  "code": "InvalidResourceState",
  "message": "Resource cannot be modified."}

Let me know if you have a timestamp of when you received the error and I can take a look to see what the exact response body was.

ah thank you spencer!

Hey Spencer, I also implemented the funding source creation, but I think the docs are out of date.

Based on this link, I only can get two error codes: ValidationError and Forbidden. But your answer is a lot more complete.

So my question is how can we know all the possible codes for this and the other services.

This is a problem for us because now I have to tell my client we need to create a new task and more budget to implement more code errors