Create a document for a client

POST https://api-sandbox.dwolla.com/clients/{{clientAccountId}}/documents

Create a document for a Client Account pending verification by uploading a color scan or photo of government issued identification (see below for acceptable document types). This requires a multipart form-data POST request. The uploaded file must be a color image, in a .jpg, .jpeg, or .png format, and less than 10MB in size. Additionally, Business Documents can also be uploaded in a .pdf format.

Request parameters

Form fieldDescription
fileFile contents.
documentTypeAcceptable values of: passport, license, idCard, or other.

HTTP status and error codes

HTTP StatusCodeMessageDescription
201CreatedSuccessA document resource was created.
400BadFileThere was an error with the provided file.Check file and try again.
400InvalidFileTypeInvalid file type.File types supported:
Personal IDs - .jpg, .jpeg or .png.
Business Documents - .jpg, .jpeg, .png, or .pdf.
400MaxNumberOfResourcesOnly 4 documents can be uploaded when verifying a customer.Max of four files upload allowed. Please wait for Dwolla to manually check the documents
400DuplicateResourceDocument already exists.Document already exists. Follow the link to find the existing document for the Client.
403InvalidResourceStateResource cannot be modified.Document creation not allowed for already verified Client.
404NotFoundThe requested resource was not found.Client Account not found. Check Client Account Id.
413FileTooLargeThe provided document is too large. 10MB is the maximum file size allowed.Document requests are limited to 10 MiB.

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"documentType", "value"=>"passport", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Content-Typestring
Cache-Controlstring
Authorizationstring

RESPONSES

status: Created

""