Skip to main content

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


NameDescriptionRequiredType
documentTypeThe type of document which is being uploaded. Eg. sticker, certificate, schedule etc. Enum: "sticker" "certificate" "schedule"Not RequiredString
entityIdThe entity id to which the file belongs. Requiredstring
entityNameThe entity to which the file belongs. Required if preview is false. Enum: "policies" "invoices" "transactions" "claims" Requiredstring
filesFiles to be uploaded RequiredArray of strings

Response

CodeDescription
200Document Information
409Unauthorized

Response Sample

Content type
application/json
[
{
"statusCode": 200,
"success": true,
"data": [
+ {...}
]
}
...
]