---
title: Upload Documents
slug: api-marketplace/upload-documents
createdAt: 2024-08-19T06:05:31.467Z
---

## Introduction:

## Sample Curl:

:::CodeblockTabs
preproduction

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/fd-booking/upload-documents' \
--header 'Authorization: <auth-token>' \
--header 'Content-Type: application/json' \
--data '{
	"applicationId": "b76a489e-d95b-4b78-8514-0b5dcaa38461",
	"type": "Aadhaar",
	"referenceNumber": "GJ0620140001084",
	"fileUrl": "https://preproduction-persist.signzy.tech/api/files/41529966/download/44840227a4774b2e821ee6c58145f645e60145e24adf429281c1c19ca821b913.jpeg"
}'
```

production

```curl
curl --location 'https://api.signzy.app/api/v3/fd-booking/upload-documents' \
--header 'Authorization: <auth-token>' \
--header 'Content-Type: application/json' \
--data '{
	"applicationId": "b76a489e-d95b-4b78-8514-0b5dcaa38461",
	"type": "Aadhaar",
	"referenceNumber": "GJ0620140001084",
	"fileUrl": "https://preproduction-persist.signzy.tech/api/files/41529966/download/44840227a4774b2e821ee6c58145f645e60145e24adf429281c1c19ca821b913.jpeg"
}'
```
:::

## Input Parameters:

## Input Parameters:

| Parameters      | Type          | Description                                                                              | Mandatory/Optional     |
| --------------- | ------------- | ---------------------------------------------------------------------------------------- | ---------------------- |
| applicationId   | String (UUID) | Application ID for which documents need to upload                                        | Mandatory              |
| type            | String        | Type of the Document. Allowed types are Photo, PAN, Aadhaar, Aadhaar Front, Aadhaar Back | Mandatory              |
| referenceNumber | String        | ID Number of the Document. Required When type is Aadhaar or PAN                          | Condiational Mandatory |
| fileUrl         | String (URL)  | URL of the Document                                                                      | Mandatory              |



## Sample Output:

:::CodeblockTabs
output

```json
{
	"id": "abf09909-74f0-4922-b588-3a8be1bfd0c1",
	"status": "new"
}
```
:::

## Output Parameters:

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



## Status Codes:

:::CodeblockTabs
200 OK

```json
{
	"id": "abf09909-74f0-4922-b588-3a8be1bfd0c1",
	"status": "new"
}
```

400

```json
{
	"error": {
		"reason": "VALIDATION_ERROR",
		"status": 400,
		"message": "\"type\" must be one of [Photo, PAN, Aadhaar, Aadhaar Front, Aadhaar Back]",
		"type": "Bad Request",
		"statusCode": 400,
		"name": "error"
	}
}

1. "Invalid File URL"
2. "\"type\" must be one of [Photo, PAN, Aadhaar, Aadhaar Front, Aadhaar Back]"
3. "\"referenceNumber\" is not allowed"
4. "Application not found"
5. "Document already uploaded"
```

401

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

500

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



