Skip to content

Upload Document

Request

Upload the file for one Document Request, identified by its document_id: the id of a Document Request from List Document Requests. As with the other document uploads, x-jiko-signature is not needed. Send the file unprocessed in the request body, and send its name in the Content-Disposition header.

Security
HTTPBearer
Path
document_idstring, (uuid)(Document Id)required
Headers
content-typestring(Content-Type)^(?i:image/png)\s*(;.*)?$required
content-lengthinteger, ( 0 .. 52428800 )(Content-Length)required
content-dispositionstring(Content-Disposition)required
x-jiko-idempotencystring, (uuid)(X-Jiko-Idempotency)required

A new UUID that you generate for each request, reads included. It is part of the request signature and prevents replay of a request. A value that was already sent in the last hour is rejected with 409 jiko.errors.DuplicateRequestError, even if the first request failed. When you retry a request, generate a new value and sign the request again.

curl -i -X POST \
  'https://your-partner-name.sandbox-api.jikoservices.com/api/v1/documents/{document_id}/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'content-disposition: string' \
  -H 'content-length: 1' \
  -H 'content-type: string' \
  -H 'x-jiko-idempotency: 497f6eca-6276-4993-bfeb-53cbbbba6f08'

Responses

Successful Response

Bodyapplication/json
idstring(Id)required
typestring(Type)required
Enum:"ID_FRONT""ID_BACK""ID_BARCODE""SELFIE""IDENTIFICATION_NUMBER_VERIFICATION""ADDRESS_VERIFICATION""PASSPORT""EIN_CONFIRMATION""OPERATING_AGREEMENT""PARTNERSHIP_AGREEMENT"
statusstring(Status)required
Enum:"PENDING_UPLOAD""PENDING_REVIEW""APPROVED""INVALID"
exception_reasonstring or null(Exception Reason)
Any of:
string
namestring or null(Name)
Any of:
string
Response
{ "id": "96e70040-eb4e-48d1-98af-0c793a6ee137", "type": "ARTICLES_OF_INCORPORATION", "status": "APPROVED", "exception_reason": "", "name": "articles_of_incorporation.png" }