---
title: Detailed Search by DIN
slug: v2/detailed-search-by-din
description: Learn how to seamlessly add organizations for a patron using the API endpoint with this comprehensive document. Get step-by-step instructions, an easy-to-use sample cURL command, and a breakdown of the required parameters. Discover a sample response and u
createdAt: 2023-04-06T06:47:02.000Z
---

## Introduction

This document provides detailed information on how to use the API endpoint to add organizations for a patron.&#x20;

# Sample cURL

```curl
curl --request POST \
  --url https://signzy.tech/api/v2/patrons/...patronid..../organizations \
  --header 'Accept: */*' \
  --header 'Accept-Language: en-US,en;q=0.8' \
  --header 'Authorization: <Access-Token>' \
  --header 'content-type: application/json' \
  --data '{"identifier":"...companycin...","service":"roc","callbackUrl":"...call URL..."}'
```

| Parameter    | Data Type | Required | Description                                                                                       |
| ------------ | --------- | -------- | ------------------------------------------------------------------------------------------------- |
| patronid     | string    | Yes      | Unique identifier for the patron                                                                  |
| identifier   | string    | Yes      | The Company CIN number is to be verified                                                          |
| service      | string    | Yes      | The name of the service (in this case, "roc") to be used for organization verification            |
| callbackUrl  | string    | Yes      | The callback URL where the response will be sent after the organization verification is completed |
| Access-Token | string    | Yes      | The Access token for authentication                                                               |

# Sample Response

```javascript
         {
        "callbackUrl": "...callback...",
        "accessToken": "...accestoken....",
        "id": "....id...",
        "patronId": "....patronid...",
        "identifier": "...identifier...",
        "service": "roc"
    }
```

| Parameter   | Data Type | Required | Description                                     |
| ----------- | --------- | -------- | ----------------------------------------------- |
| callbackUrl | string    | Yes      | The URL to which the response will be sent back |
| accessToken | string    | Yes      | The Access Token for the authorized user        |
| id          | string    | Yes      | The unique ID for the organization created      |
| patronId    | string    | Yes      | The ID of the patron creating the organization  |
| identifier  | string    | Yes      | The Company CIN number                          |
| service     | string    | Yes      | The name of the service used                    |

