Crea un documento digital asociado a un usuario
| Name | Description |
|---|---|
| document_type | Tipo de documento, opciones: ["business_document", "service", "source_of_founds", "billing", "front_document", "back_document", "dni_selfie"] |
| file | Form-Data File |
Content-Type: application/json Authorization: <integration-token> Authorization-Client: Bearer <jwt-token> Host: example.org Cookie:
POST /hooks/clients/100/digital_documents
{"document_type":"business_document","file":{"original_filename":"test.jpg","tempfile":"#\u003cFile:0x00007fc5c7629ac8\u003e","content_type":"text/plain"}}
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Content-Type: application/json; charset=utf-8 ETag: W/"63e89fda97adc19db7a1a1e778247dce" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 801dd997-4eac-4011-b0ad-7ffa856c0bfe X-Runtime: 0.036586 Vary: Origin Content-Length: 188
200 OK
{
"data": {
"id": 10,
"url": "filename.jpg",
"document_type": "business_document",
"user_id": 100,
"user_type": "User",
"created_at": "2023-04-28T21:44:48.789Z",
"updated_at": "2023-04-28T21:44:48.789Z"
}
}