Upload
Download an uploaded document. Upload a document using this endpoint.
POST /api/v1/documents
Path param
authorization : *bearer
REQUEST BODY SCHEMA: multipart/form-data
Name | Description | Required | Type |
---|---|---|---|
documentType | The type of document which is being uploaded. Eg. sticker, certificate, schedule etc. Enum: "sticker" "certificate" "schedule" | Not Required | String |
entityId | The entity id to which the file belongs. | Required | string |
entityName | The entity to which the file belongs. Required if preview is false. Enum: "policies" "invoices" "transactions" "claims" | Required | string |
files | Files to be uploaded | Required | Array of strings |
Response
Code | Description |
---|---|
200 | Document Information |
409 | Unauthorized |
Response Sample
Content type
application/json
[
{
"statusCode": 200,
"success": true,
"data": [
+ {...}
]
}
...
]