---
title: Get all files by CIN (V3)
slug: api-marketplace/get-all-files-by-cin-v3
description: Learn how to use the provided API to easily fetch all documents associated with a company. Make a POST request with the required parameters such as company ID, access token, and more. The response JSON will provide you with company information, callback U
createdAt: 2023-04-20T21:35:52.000Z
---

## Introduction

Following the initial Fetch All Files by CIN API, the "Get All Files by CIN" API is the essential second step in our two-stage process for downloading comprehensive company documents from the Ministry of Corporate Affairs (MCA). After obtaining a request ID from the "Fetch All Files by CIN" API, this follow-up API enables the actual acquisition of the documents. Designed to provide a secure, efficient, and user-friendly method for retrieving a full range of corporate documents, it is an indispensable tool for professionals requiring detailed and complete corporate information for legal, financial, and compliance purposes. This API completes your data retrieval process, ensuring access to all necessary documents with minimal effort and maximum reliability.

## API Details

### Endpoint

:::CodeblockTabs
Production environment

```jsx
POST https://api.signzy.app/api/v3/roc/getAllFilesByCin
```
:::

:::CodeblockTabs
UAT/Testing environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/roc/getAllFilesByCin
```
:::

***

### Request body parameters

| **Parameter** | **Data Type** | **Description**                                  | **Required** |
| ------------- | ------------- | ------------------------------------------------ | ------------ |
| requestId     | String        | Request ID got from "fetch all files by cin" API | Mandatory    |

### Request body

```json
{
    "requestId": "<Request ID>"
}
```

***

### Request headers

| **Name**      | **Value**        | **Required** | **Description**                                                                                            |
| ------------- | ---------------- | ------------ | ---------------------------------------------------------------------------------------------------------- |
| Content-Type  | application/json | Mandatory    | The type of content that the request body contains.                                                        |
| Authorization | XXXXXXXXXXXXXXX  | Mandatory    | An authentication token to authorize the request. Reach out to the Signzy support team to get one created. |

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/roc/getAllFilesByCin' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Auth token>' \
--data '{
    "requestId": "<Request ID>"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "requestId": "<Request ID>"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.app/api/v3/roc/getAllFilesByCin',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<Auth token>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/roc/getAllFilesByCin"

payload = json.dumps({
  "requestId": "<Request ID>"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Auth token>'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

```go
package main

import (
  "fmt"
  "strings"
  "net/http"
  "io/ioutil"
)

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/roc/getAllFilesByCin"
  method := "POST"

  payload := strings.NewReader(`{
    "requestId": "<Request ID>"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("Authorization", "<Auth token>")

  res, err := client.Do(req)
  if err != nil {
    fmt.Println(err)
    return
  }
  defer res.Body.Close()

  body, err := ioutil.ReadAll(res.Body)
  if err != nil {
    fmt.Println(err)
    return
  }
  fmt.Println(string(body))
}
```
:::

***

### Response body parameters

| **Parameter**                                        | **Data Type** | **Description**                                          |
| ---------------------------------------------------- | ------------- | -------------------------------------------------------- |
| result.companyDocuments.cin                          | String        | CIN (Corporate Identification Number) of the company     |
| result.companyDocuments.callbackUrl                  | String        | Callback URL (if available)                              |
| result.companyDocuments.requestId                    | String        | Request ID for the document retrieval                    |
| result.companyDocuments.files\[i].documentType       | String        | Type or category of the document                         |
| result.companyDocuments.files\[i].documentUrl        | String        | URL to download/view the document                        |
| result.companyDocuments.files\[i].documentName       | String        | Name or title of the document                            |
| result.companyDocuments.files\[i].documentFilingDate | String        | The filing date of the document                          |
| result.companyDocuments.files\[i].documentStatus     | String        | Status of the document (e.g., completed)                 |
| result.companyDocuments.status                       | String        | Status of the document retrieval request                 |
| result.companyDocuments.updatedTimestamp             | Integer       | Timestamp of when the document details were last updated |
| result.companyDocuments.isComplete                   | Integer       | Flag indicating if the document retrieval is complete    |

### Response body

:::CodeblockTabs
200 Status: REQUESTED

```json
{
    "result": {
        "companyDocuments": {
            "cin": "<CIN number>",
            "callbackUrl": "",
            "requestId": "<Request ID>",
            "files": [],
            "status": "REQUESTED",
            "updatedTimestamp": 1704805392,
            "isComplete": 0
        }
    }
}
```

200 Status: completed

```json
{

    "result": {
        "companyDocuments": {
            "cin": "<CIN Number>",
            "callbackUrl": "",
            "requestId": "<Request ID>",
            "files": [
                {
                    "documentType": "Certificates",
                    "documentUrl": "<Publicaly accessible URL to download the document>",
                    "documentName": "CERTIFICATE OF REGISTRATION OF CHARGE-20220610",
                    "documentFilingDate": "10/06/2022",
                    "documentStatus": "completed"
                }
                {
                    "documentType": "Change in Directors",
                    "documentUrl": "<Publicaly accessible URL to download the document>",
                    "documentName": "Form DIR-12-14092023_signed",
                    "documentFilingDate": "14/09/2023",
                    "documentStatus": "completed"
                }
                {
                    "documentType": "Incorporation Documents",
                    "documentUrl": "<Publicaly accessible URL to download the document>",
                    "documentName": "Affidavit from each of the subscriber to the memorandum in Form No. INC-9-13082016",
                    "documentFilingDate": "22/08/2016",
                    "documentStatus": "completed"
                }
                {
                    "documentType": "Charge Documents",
                    "documentUrl": "<Publicaly accessible URL to download the document>",
                    "documentName": "Optional Attachment-(1)-10062022",
                    "documentFilingDate": "10/06/2022",
                    "documentStatus": "completed"
                }
                {
                    "documentType": "Annual Returns and Balance Sheet eForms",
                    "documentUrl": "<Publicaly accessible URL to download the document>",
                    "documentName": "Form MGT-7-20102023",
                    "documentFilingDate": "20/10/2023",
                    "documentStatus": "completed"
                }
                {
                    "documentType": "Other eForm Documents",
                    "documentUrl": "<Publicaly accessible URL to download the document>",
                    "documentName": "Form PAS-6-22112022",
                    "documentFilingDate": "22/11/2022",
                    "documentStatus": "completed"
                }
            ],
            "status": "completed",
            "updatedTimestamp": 1704805392,
            "isComplete": 1
        }
    }
}
```
:::

:::hint{type="warning"}
Typically, fetching data from the MCA takes 4-6 hours within its working hours (9 AM to 5:30 PM). This time might be affected as per MCA website availability. However, if data is requested outside these hours, or shortly before closing, it will be available on the following working day.
:::

***

**Contact Us for Any Assistance**

If you have any questions or need assistance, please reach out to our customer support team. You can contact us via email at <font color="#2166ae">**help\@signzy.com**</font>. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!

