---
title: Create Payment
slug: api-marketplace/create-payment
createdAt: 2024-08-19T06:10:30.741Z
---

## Introduction:

## Sample Curl:

:::CodeblockTabs
preproduction

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/fd-booking/create-payment' \
--header 'Authorization: <auth-token>' \
--header 'Content-Type: application/json' \
--data '{
	"applicationId": "de911e40-d8e6-4a7d-b119-df94afaeee92",
	"callbackUrl": "https://www.google.com/",
	"paymentMethod": "UPI"
}'
```

production

```curl
curl --location 'https://api.signzy.app/api/v3/fd-booking/create-payment' \
--header 'Authorization: <auth-token>' \
--header 'Content-Type: application/json' \
--data '{
	"applicationId": "de911e40-d8e6-4a7d-b119-df94afaeee92",
	"callbackUrl": "https://www.google.com/",
	"paymentMethod": "UPI"
}'
```
:::

## Input Parameters

| Parameters    | Type          | Description                                                                             | Mandatory/Optional |
| ------------- | ------------- | --------------------------------------------------------------------------------------- | ------------------ |
| applicationId | String (UUID) | Application ID for which documents need to upload                                       | Mandatory          |
| callbackUrl   | String (URL   | Callback URL. User will be redirected to this url after successfully completing payment | Optional           |
| paymentMethod | String        | Payment Method. Allowed Values: 'UPI', 'Net Banking', 'NEFT/RTGS'                       | Mandatory          |

## Sample Output:

:::CodeblockTabs
json

```json
{
	"id": "e9ef00d7-78f5-4f60-9950-05a4b349d1ec",
	"status": "new",
	"redirectUrl": "https://devapi.tarrakki.com/fd/v1/payments/e9ef00d7-78f5-4f60-9950-05a4b349d1ec/redirect"
}
```
:::

## Output Parameters:

| Parameter   | Type          | Description               |
| ----------- | ------------- | ------------------------- |
| id          | String (UUID) | Payment ID                |
| status      | String        | Status of the Application |
| redirectUrl | String (URL)  | Payment URL               |



## Status Codes:

:::CodeblockTabs
200 OK

```json
{
	"id": "e9ef00d7-78f5-4f60-9950-05a4b349d1ec",
	"status": "new",
	"redirectUrl": "https://devapi.tarrakki.com/fd/v1/payments/e9ef00d7-78f5-4f60-9950-05a4b349d1ec/redirect"
}
```

400

```json
{
	"error": {
		"reason": "VALIDATION_ERROR",
		"status": 400,
		"message": "\"applicationId\" is required",
		"type": "Bad Request",
		"statusCode": 400,
		"name": "error"
	}
}

1. "\"applicationId\" is required"
2. "\"paymentMethod\" must be one of [UPI, Net Banking, NEFT/RTGS]"
3. "Payment already created"
4. "Payment cannot be created, check application status"
```

401

```json
{
    "message": "Invalid authentication credentials"
}
```

404

```json
{
	"error": {
		"reason": "ERROR",
		"status": 404,
		"message": "Invalid application id",
		"type": "Not Found",
		"statusCode": 404,
		"name": "error"
	}
}
```

500

```json
{
    "error": {
        "name": "error",
        "message": "Internal Server Error",
        "status": 500,
        "reason": "ERROR",
        "type": "Internal Server Error",
        "statusCode": 500
    }
}
```
:::



