---
title: Get Company Details
description: This API will get the company details.
---

This API will get the company details. We must pass merchant id and email id in request. If the request has valid details, we will get details like company id, company name, company domain, company code and company email etc.

## POST

```
https://kraken.airpay.co.in/airpay/ms/invoicepay/api/merchant-details
```

## Parameter

| Field | Type | Description |
| --- | --- | --- |
| merchant_id | Numeric | Need to pass the merchant id of company (length 11, required) |
| email_id | Varchar | Need to pass the email_id of the company (length 50, required) |
## Request-Example: 

```
{
    "merchant_id": 1088,
    "email_id": "xyz@company.com"
}
```

## Success 200

| Field | Type | Description |
| --- | --- | --- |
| result | String | Result message<br>Success - 200 (The transaction is success)<br>Transaction in Process - 211 (The transaction is processing)<br>Failed - 400 (The transaction is failed)<br>Dropped - 401 (The transaction will not register properly)<br>Cancel - 402 (payment that has not yet been processed)<br>Incomplete - 403 (Not recieved any call back from bank)<br>Bounced - 405 (The transaction has bounced)<br>No Records - 503 (There are no records found) |
| data | Varchar | Data contains<br>COMPANY_ID - Company id<br>COMPANY_NAME - Company name<br>COMPANY_DOMAIN - Company domain<br>COMPANY_CODE - Company code<br>COMPANY_EMAIL - Company email<br>AIRPAY_MERCHANT_ID - Airpay merchant id<br>AIRPAY_USERNAME - Airpay username<br>AIRPAY_PASSWORD - Airpay Password<br>AIRPAY_SECRET_KEY - Airpay secret key<br>EXPIRED_ON - Expired on is valid period for the invoice<br>EXPIRED_ON_OLD - Expired on old is valid period for the invoice<br>COMPANY_SECRET_TOKEN - Company secret token |
## Success-Response:

```
HTTP/1.1 200 OK
{
     "result":"success",
     "data": {
                 "COMPANY_ID":"034",
                 "COMPANY_NAME":"newcompany",
                 "COMPANY_DOMAIN":"testcompany",
                 "COMPANY_CODE":"123",
                 "COMPANY_EMAIL":"xyz@sample.com",
                 "AIRPAY_MERCHANT_ID":"1088",
                 "AIRPAY_USERNAME":" 1234567",
                 "AIRPAY_PASSWORD":" passABc",
                 "AIRPAY_SECRET_KEY":" 91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps",
                 "EXPIRED_ON":"168",
                 "EXPIRED_ON_OLD":"168",
                 "COMPANY_SECRET_TOKEN":"91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps"
             }
}
```
## Error-Response: Not Found

```
HTTP/1.1 502 Not Found
 {
     "status": 502,
     "message": []
 }
```