---
title: Drug License Verification
slug: api-marketplace/drug-license-verification
createdAt: 2024-01-15T05:05:04.824Z
---

## Introduction

The Drug License Verification API is a powerful tool that streamlines the process of verifying drug licenses. It provides comprehensive and up-to-date information on pharmaceutical firms, including details of their licenses, associated pharmacists, and the validity of related licenses. With a simple query using the region code and license number, this API delivers accurate and essential data, ensuring regulatory compliance and supporting informed decisions in various sectors.

***

## API details

### Endpoint

:::CodeblockTabs
Production Endpoint

```text
POST https://api.signzy.app/api/v3/drug/verification
```
:::

:::CodeblockTabs
UAT/Testing  Endpoint

```text
POST https://api-preproduction.signzy.app/api/v3/drug/verification
```
:::

***

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

***

### Request body parameters

| **Parameter**     | **Data Type** | **Description**                     | **Required** |
| ----------------- | ------------- | ----------------------------------- | ------------ |
| **regionCode**    | String        | Identifier for a specific region    | Mandatory    |
| **licenseNumber** | String        | Unique number of a specific license | Mandatory    |

Possible region codes:

| Code | State         |
| ---- | ------------- |
| GJ   | Gujarat       |
| MH   | Maharashtra   |
| PB   | Punjab        |
| RJ   | Rajasthan     |
| UA   | Uttarakhand   |
| UP   | Uttar Pradesh |



```json
{
   "regionCode": "BR",
   "licenseNumber": "12345"
}
```

***

### Code  samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/drug/verification' \
--header 'Content-Type: application/json' \
--header 'Authorization: <Token>' \
--data '{
    "regionCode": "BR",
    "licenseNumber": "12345"
}'
```

```nodejs
const axios = require('axios');
let data = JSON.stringify({
  "regionCode": "BR",
  "licenseNumber": "12345"
});

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

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

```

```python
import http.client
import json

conn = http.client.HTTPSConnection("api-preproduction.signzy.app")
payload = json.dumps({
  "regionCode": "BR",
  "licenseNumber": "12345"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': '<Token>'
}
conn.request("POST", "/api/v3/drug/verification", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
```

```go
package main

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

func main() {

  url := "https://api-preproduction.signzy.app/api/v3/drug/verification"
  method := "POST"

  payload := strings.NewReader(`{
    "regionCode": "BR",
    "licenseNumber": "12345"
}`)

  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", "<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**                                   | Array of Objects | Array of objects containing matched firm details.      |
| **result\[].firmName**                       | String           | Name of the firm                                       |
| **result\[].licences**                       | String           | Types of licences held by the firm                     |
| **result\[].registeredPharmacists**          | String           | Information about the registered pharmacists           |
| **result\[].associatedLicences**             | Array of Objects | Array of objects containing associated licence details |
| **result\[].associatedLicences\[].number**   | String           | Licence number                                         |
| **result\[].associatedLicences\[].validity** | String           | The validity date of the licence                       |

:::CodeblockTabs
200

```json
{
    "result": [
        {
            "firmName": "AJAY MEDICAL STORE",
            "licences": "",
            "registeredPharmacists": "",
            "associatedLicences": [
                {
                    "number": "WLF20B2025UP008175",
                    "validity": "07/09/2030"
                }
            ],
            "address": "KANJARI SARAI MORADABAD, Moradabad, Uttar Pradesh - 244001",
            "licenceType": "Form 20B",
            "licenceStatus": "Active",
            "issueDate": ""
        }
    ]
}
```

400

```json
// Passing empty string licenseNumber
{
   "error": {
       "name": "error",
       "message": "licenseNumber is not allowed to be empty.",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Passing empty string regionCode
{
   "error": {
       "name": "error",
       "message": "regionCode is not allowed to be empty.",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Passing empty string licenseNumber
{
   "error": {
       "name": "error",
       "message": "licenseNumber is not allowed to be empty.",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Passing empty string regionCode
{
   "error": {
       "name": "error",
       "message": "regionCode is not allowed to be empty.",
       "status": "Bad Request",
       "statusCode": 400
   }
}


// Passing non-string regionCode
{
   "error": {
       "name": "error",
       "message": "regionCode must be a string",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Passing non-string licenseNumber
{
   "error": {
       "name": "error",
       "message": "licenseNumber must be a string",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Missing required field regionCode
{
   "error": {
       "name": "error",
       "message": "regionCode is required",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Missing required field licenseNumber
{
   "error": {
       "name": "error",
       "message": "licenseNumber is required",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Passing invalid string regionCode
{
   "error": {
       "name": "error",
       "message": "regionCode is not allowed to have empty spaces or special characters.",
       "status": "Bad Request",
       "statusCode": 400
   }
}



// Passing invalid string licenseNumber
{
   "error": {
       "name": "error",
       "message": "licenseNumber is not allowed to have empty spaces or special characters.",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Passed regionCode is not supported
{
   "error": {
       "name": "error",
       "message": "State not Supported",
       "status": "Bad Request",
       "statusCode": 400
   }
}

// Passed invalid Drug License
{
   "error": {
       "name": "error",
       "message": "Invalid Drug License.",
       "status": "Bad Request",
       "statusCode": 400
   }
}
```
:::

***

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


