Submit Documents API (Legacy)

POST

https://api.sfox.com/v1/enterprise/ddq/upload

Submit a document or set of documents on behalf of an end user.


Document Requirements

  • The supported MIME types for document submission are image/jpeg, image/png, application/pdf .

  • File extension must be one of jpg, jpeg, png, pdf.

  • File names specified in the file_types object must exactly match the file name attached in the files array. (e.g. files = [.../id_front.png] and file_types = {"id_front.png":"ID"})

  • A valid document type must be submitted with the file name in file_types. Options are:

    • ID: Government issued IDs such as driver's licenses or passports.

    • PoR: Proof of residence documents such as bank statements or utility bills.

Request

Body Parameters (Form Data)

Parameter
Type
Description

user_id required

string

The unique user ID of the user that you are submitting a document or set of documents on behalf of.

files required

File[]

An array of the files you are uploading. Note, each file must be 10MB or smaller.

file_types required

string (JSON format)

The file name and document type of each file you are uploading in JSON format. e.g. {"<FILE_NAME>":"<DOCUMENT_TYPE>"} File names MUST include the file extension and MUST exactly match the the corresponding file in files. Possible document types: ID, PoR

ddq_id

string

The ID of the corresponding EDD request form that this submission is associated with.

Example Requests

Responses

202 Accepted
401 Unauthorized
404 Not Found
422 Unprocessable Entity
500 Internal Server Error

Last updated