---
title: Fetch files by CIN / LLPIN(V3)
slug: api-marketplace/fetch-files-by-cin-llpinv3
createdAt: 2024-02-07T12:07:46.173Z
---

## Introduction

This innovative tool simplifies acquiring key company documents from the Ministry of Corporate Affairs (MCA) portal. It efficiently provides the Articles of Association (AOA), Memorandum of Association (MOA), and Certificate of Incorporation (COI) in a convenient PDF format. Requiring just the Corporate Identification Number (CIN) for input, this API eliminates the manual effort involved in sourcing these documents, offering a significant time-saving advantage for users. Perfect for professionals who need quick, automated access to essential corporate data.

## API Details

### Endpoint

:::CodeblockTabs
Production Environment

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

:::CodeblockTabs
UAT/Testing environment

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

***

### Request headers&#x20;

| **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. |

***

### Request body parameters

| **Parameter** | **Data type** | **Description**                                            | **Required**           |
| ------------- | ------------- | ---------------------------------------------------------- | ---------------------- |
| cin           | string        | Corporate Identification Number (CIN) of the organization. | Conditionally Required |
| llpin         | string        | Limited Liability Partnership Identification number        | Conditionally Required |

```json
{
   "cin": <cin>
   "llpin": <llpin>
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/roc/fetchFilesByCin' \
--header 'Content-Type: application/json' \
--header 'Authorization: <authToken>' \
--data '{
    "cin": "<cin>",
    "llpin": <llpin>
}'
```

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

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api-preproduction.signzy.tech/api/v3/roc/fetchFilesByCin',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<authToken>'
  },
  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.tech/api/v3/roc/fetchFilesByCin"

payload = json.dumps({
  "cin": "<cinNumber>"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<authToken>'
}

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.tech/api/v3/roc/fetchFilesByCin"
  method := "POST"

  payload := strings.NewReader(`{
    "cin": "<cinNumber>"
}`)

  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", "<authToken>")

  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           | Object        | Result object containing cin and request ID         |
| result.cin       | String        | Corporate Identification Number                     |
| result.llpin     | String        | Limited Liability Partnership Identification number |
| result.requestId | String        | Unique identifier for the request transaction       |

:::CodeblockTabs
200

```json
// In case of cin
{
    "result": {
        "cin": "<cinNumber>",
        "requestId": "<reqId>"
    }
}
// in case of llpin
{
    "result": {
        "llpin": "<llpinNumber>",
        "requestId": "<reqId>"
    }
}

```

400

```json
// When cin Number is incorrect
{
    "errror": {
        "name": "error",
        "message": "Invalid CIN passed",
        "status": 400,
        "statusCode": 400
    }
}
// When llpin Number is incorrect
{
    "error": {
        "name": "error",
        "message": "Invalid llpin",
        "status": "Bad Request",
        "statusCode": 400
    }
}
```

401

```json
// When Auth token is wrong
{
    "message": "Invalid authentication credentials"
}
// When Auth token is not given
{
    "message": "No API key found in request"
}
```
:::

**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!
