Skip to Content
360credit / Developers
API ReferenceBusiness data submissions

Upload a submission document

POST
/api/v1/data-submissions/{widgetToken}/documents

Uploads JPEG, PNG, or PDF evidence, up to 10,000,000 bytes, to an outstanding document slot. Uses the secret path token. Completed sessions cannot accept uploads.

Path Parameters

widgetToken*string

Secret, expiring submission capability from widget_path. Do not log or share it.

Match^[a-f0-9]{64}$

Request Body

multipart/form-data
  1. body
file_upload*unknown

JPEG, PNG, or PDF file; maximum 10,000,000 bytes.

document_name*string

Requirement name from uploadable_documents.

document_context?string

Context supplied by the selected document requirement, if present.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
curl -X POST 'https://example.com/api/v1/data-submissions/string/documents' \  -F 'document_name=business_registration'
Example Response
{  "data": {    "workflow_type": "business_data_collection",    "can_read": true,    "can_write": true,    "can_submit": true,    "business_name": "string",    "expires_at": "2019-08-24T14:15:22Z",    "kyc_status": "not_configured",    "outstanding_documents": [      "string"    ],    "uploadable_documents": [      {        "name": "string",        "title": "string",        "context": "string"      }    ],    "is_submitted": true,    "completed_at": {},    "return_url": {}  }}