Company documents
Get documents by companyId
Get company documents
GET
{base url}/v1/companies/{companyId}/document
Returns paginated list of all company documents
Query Parameters
The bearer token is the API users Secret Key
{
"message": "unauthorized",
"code": 92
}
{
"responseCode": "00",
"status": "success",
"message": "Company documents fetch successful",
"data": [ {
"id": "ffbec18c-c7f3-49ed-8012-44d17b16ab5c",
"companyId": "665b5c8a-d30d-41f1-b6e1-508562b4eecb",
"docName": "new file",
"docType": "file",
"file": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"storageLocation": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"status": "active",
"created_at": "2023-12-12T15:16:13.836Z",
"updated_at": "2023-12-12T15:16:13.836Z"
}]
}
{
"responseCode": "00",
"status": "success",
"message": "Company documents fetch successful",
"data": [ {
"id": "ffbec18c-c7f3-49ed-8012-44d17b16ab5c",
"companyId": "665b5c8a-d30d-41f1-b6e1-508562b4eecb",
"docName": "new file",
"docType": "file",
"file": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"storageLocation": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"status": "active",
"created_at": "2023-12-12T15:16:13.836Z",
"updated_at": "2023-12-12T15:16:13.836Z"
}]
}
Get company documents by documentId
Get company documents by document Id
GET
{base url}/v1/companies/document/{documentId}
Get single company document by document Id
Query Parameters
The bearer token is the API users Secret Key
{
"message": "unauthorized",
"code": 92
}
{
"responseCode": "00",
"message": "Documents fetch successful",
"data": [
{
"id": "ffbec18c-c7f3-49ed-8012-44d17b16ab5c",
"companyId": "665b5c8a-d30d-41f1-b6e1-508562b4eecb",
"docName": "new file",
"docType": "file",
"file": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"storageLocation": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"status": "active",
"created_at": "2023-12-12T15:16:13.836Z",
"updated_at": "2023-12-12T15:16:13.836Z"
}
]
}
{
"responseCode": "00",
"message": "Documents fetch successful",
"data": [
{
"id": "ffbec18c-c7f3-49ed-8012-44d17b16ab5c",
"companyId": "665b5c8a-d30d-41f1-b6e1-508562b4eecb",
"docName": "new file",
"docType": "file",
"file": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"storageLocation": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1702394173/documents/kn9ii9jfbi6j3teyyqxl",
"status": "active",
"created_at": "2023-12-12T15:16:13.836Z",
"updated_at": "2023-12-12T15:16:13.836Z"
}
]
}
Create document
Create new document
POST
{base url}/v1/companies/document?companyId={companyId}
Create new company document
Query Parameters
The bearer token is the API users Secret Key
{
"message": "unauthorized",
"code": 92
}
{
"responseCode": "00",
"message": "Company document added successfully"
}
{
"docName": "new file",
"docType": "file",
"file": "https://res.cloudinary.com/dtui4qk9s/raw/upload/v1701158787/documents/aeyxflbnbbh4arkgfbvg"
}
{
"responseCode": "00",
"message": "Company document added successfully"
}