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": "https://api-sandbox.dwolla.com/funding-sources/024c25f9-3a6b-42ce-8ca5-7a8cee9ad5fd",
            "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!