---
title: Create Single Pager
description: Single pager is used to create the payment form and subdomain (Domain name of the Merchant) which is collecting the details of the customers before payment and displays the details of the merchant.
---

# QUICK PAYMENTS - Create Single Pager

Single pager is used to create the payment form and subdomain (Domain name of the Merchant) which is collecting the details of the customers before payment and displays the details of the merchant. We must pass merchant name, sub domain, airpay merchant id, username, password, and secret key, then we will get success response and subdomain allocated to this merchant.

## POST

```
https://kraken.airpay.co.in/airpay/ms/singlepager/api/create
```

## Parameter
| Field              | Type    | Required | Description                                                                                                                                                                                                                |
| ------------------ | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| merchant_name      | String  | Yes      | Name of the Merchant (length 80)                                                                                                                                                                                           |
| subdomain          | Varchar | Yes      | Domain name of the Merchant (length 80)<br>Example: `abc.nwpay.co.in`                                                                                                                                                      |
| airpay_merchant_id | Numeric | Yes      | Merchant ID (length 11)                                                                                                                                                                                                    |
| airpay_username    | Varchar | Yes      | Merchant Username (length 50)                                                                                                                                                                                              |
| airpay_password    | Varchar | Yes      | Merchant Password (length 50)                                                                                                                                                                                              |
| airpay_secret_key  | Varchar | Yes      | Merchant Secret Key (length 100)                                                                                                                                                                                           |
| template           | Numeric | No       | Template (length 1)<br>Expected values: `1, 2, 3, 4, 5`<br>Default value: `1`                                                                                                                                              |
| checksum           | Varchar | Yes      | Checksum generation:<br>`hash_hmac('sha256', merchant_name + subdomain + airpay_merchant_id + airpay_username + airpay_username + airpay_secret_key, '91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps');` |

## Request-Example:

```
{
    "merchant_name": "ABC",
    "subdomain": "https://abc.nwpay.co.in",
    "airpay_merchant_id": "1088",
    "airpay_username": "userabc",
    "airpay_password": "passabc",
    "airpay_secret_key": "91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps",
    "template": "1",
    "checksum": "91f5evhk72f56432ec678sdfes685h42sd2t21k430912508233b7r37562g2hps"
}
```

## 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) |
| SinglePager | String | It will display url of the subdomain |

## Success-Response:

```
HTTP/1.1 200 OK
{
         "Result": "Success",
         "SinglePager": {"Subdomain":"https://abc.nwpay.co.in"}
}
```
## Error-Response:

```
 {
     "SinglePager": {
                         "Errors": {
                                     "00": "Header Aunthentication Failed, Invalid Content-Type",
                                     "01": "Header Aunthentication Failed, Airpay-Key Can Not Be Empty",
                                     "02": "Header Aunthentication Failed, Invalid Airpay-Key",
                                     "03": "Merchant Name Can Not Be Empty",
                                     "04": "Subdomain Can Not Be Empty",
                                     "05": "Airpay Merchant Id Can Not Be Empty",
                                     "06": "Airpay Username Can Not Be Empty",
                                     "07": "Airpay Password Can Not Be Empty",
                                     "08": "Airpay Secret Key Can Not Be Empty",
                                     "09": "Domain Already Exist",
                                     "10": "Invalid Request",
                                     "11": "Checksum Can Not Be Empty",
                                     "12": "Wrong Checksum",
                                   }
                 },
     "Result": "Fail"
}
```