---
title: Create Link
slug: api-marketplace/create-link
createdAt: 2023-11-02T11:46:52.780Z
---

## Introduction

Create Link API takes in a callback URL from you and returns a link for conducting transactions across multiple UPI applications, while also returning account details post-transaction over the provided callback URL.

***

## API details

### Endpoint

:::CodeblockTabs
Production environment

```jsx
POST https://api.signzy.app/api/v3/bankaccountverification/reversepennydrop/createlink
```
:::

:::CodeblockTabs
UAT/Testing environment

```jsx
POST https://api-preproduction.signzy.app/api/v3/bankaccountverification/reversepennydrop/createlink
```
:::

***

### 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** |
| ----------------- | ------------- | ------------------------------------------------------------ | ------------ |
| callbackUrl       | String        | The callback URL to receive the details of the bank account. | Mandatory    |
| enableEnrichement | Boolean       | when enabled , the api will fetch bank details               | Optional     |

```json
{
    "callbackUrl": "https://callback_url.com"
}
```

***

### Code samples

:::CodeblockTabs
```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/bankaccountverification/reversepennydrop/createlink' \
--header 'Authorization: <Your access token>' \
--header 'Content-Type: application/json' \
--data '{
    "callbackUrl": "https://callback_url.com"
}'
```

```nodejs
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://api-preproduction.signzy.app/api/v3/bankaccountverification/reversepennydrop/createlink',
  'headers': {
    'Authorization': '<Your access token>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "callbackUrl": "https://callback_url.com"
  })

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

```

```python
import requests
import json

url = "https://api-preproduction.signzy.app/api/v3/bankaccountverification/reversepennydrop/createlink"

payload = json.dumps({
  "callbackUrl": "https://callback_url.com"
})
headers = {
  'Authorization': '<Your access token>',
  'Content-Type': 'application/json'
}

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.app/api/v3/bankaccountverification/reversepennydrop/createlink"
  method := "POST"

  payload := strings.NewReader(`{
    "callbackUrl": "https://callback_url.com"
}`)

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, payload)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Authorization", "<Your access token>")
  req.Header.Add("Content-Type", "application/json")

  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        | Object containing payment information and URL to perform the transaction.                                                        |
| result.upiUrl         | String        | URL for UPI payment. For Android users, this will open up a drawer of apps and they can choose the app they want to use for BAV. |
| result.bhimUrl        | String        | URL for BHIM UPI payment.                                                                                                        |
| result.gPayUrl        | String        | URL for Google Pay payment.                                                                                                      |
| result.paytmUrl       | String        | URL for Paytm UPI payment.                                                                                                       |
| result.phonepeUrl     | String        | URL for PhonePe payment.                                                                                                         |
| result.qrCodeUrl      | String        | QR Code URL for payment. This can be used by web-based applications.                                                             |
| result.verificationId | String        | Unique ID for the payment request.                                                                                               |
| result.upiUrlExpiry   | String        | Expiry date and time for the UPI URL. The URL has a default validity of 10 mins.                                                 |

:::CodeblockTabs
200

```json
{
    "result": {
        "upiUrl": "",
        "bhimUrl": "BHIM URL",
        "gPayUrl": "Gpay URL",
        "paytmUrl": "Paytm URL",
        "phonepeUrl": "PhonePe URL",
        "qrCodeUrl": "QR Code URL",
        "verificationId": "6571c5473122f4ddc7e8e8ee",
        "upiUrlExpiry": "2023-12-07 18:54:47"
    }
}
```

400

```json
// When callbackUrl is not passed in request body
{
    "error": {
        "name": "error",
        "message": "\"callbackUrl\" is required",
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}

// When empty string is passed in callbackUrl
{
    "error": {
        "name": "error",
        "message": "\"callbackUrl\" is not allowed to be empty",
        "reason": "VALIDATION_ERROR",
        "type": "Bad Request",
        "statusCode": 400
    }
}
```

401

```json
// When API key is not passed
{
    "message": "No API key found in request"
}

// when wrong API Key is passed
{
    "message": "Invalid authentication credentials"
}
```

409

```json
// When upstream is down
{
    "error": {
        "name": "error",
        "message": "Upstream error",
        "reason": "ERROR",
        "type": "Conflict",
        "statusCode": 409
    }
}
```

```curl
```
:::

***

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

