High Volume Merge Postman Collection

{
	"info": {
		"_postman_id": "c612bd1f-3071-42b0-9c3c-dd684dfcabed",
		"name": "HighVolumeMerge",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
		"_exporter_id": "15441571"
	},
	"item": [
		{
			"name": "Upload And Initiate High Volume Merge",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": {
						"token": "{{CONGA_AUTH_TOKEN}}"
					}
				},
				"method": "POST",
				"header": [  
					{  
						"key": "accept",  
						"value": "text/plain"  
					}  
				],
				"body": {
					"mode": "formdata",
					"formdata": [  
						{  
							"key": "SFTPOptions.Port",  
							"value": "2222",  
							"type": "text"  
						},  
						{  
							"key": "SFTPOptions.Host",  
							"value": "localhost",  
							"type": "text"  
						},  
						{  
							"key": "EmailProvider",  
							"value": "None",  
							"type": "text"  
						},  
						{  
							"key": "EmailTemplateId",  
							"value": "789d1bdd-91c0-4dfa-b0ac-13abb9a4b918",  
							"type": "text"  
						},  
						{  
							"key": "UseCongaSign",  
							"value": "false",  
							"type": "text"  
						},  
						{  
							"key": "SFTPOptions.Username",  
							"value": "user",  
							"type": "text"  
						},  
						{  
							"key": "UseSFTP",  
							"value": "true",  
							"type": "text"  
						},  
						{  
							"key": "Format",  
							"value": "Json",  
							"type": "text"  
						},  
						{  
							"key": "SFTPOptions.FolderName",  
							"value": "HighVolumeFileUploads",  
							"type": "text"  
						},  
						{  
							"key": "SFTPOptions.Password",  
							"value": "password",  
							"type": "text"  
						},  
						{  
							"key": "File",  
							"contentType": "application/json",  
							"type": "file",  
							"src": "/C:/Users/ypatel/Downloads/Sample_job_records_11.json"  
						},  
						{  
							"key": "TemplateIds",  
							"value": "7b2010f4-0d75-4498-bf63-e3cfa72b9ee1",  
							"type": "text"  
						}  
					]
				},
				"url": "https://localhost:7261/api/v1/Merge/api/v1/HighVolumeMerge/merge/upload"
			},
			"response": []
		},
		{
			"name": "Auth Token",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [  
							"pm.test(\"Get Auth token\", function () {",  
							"    const response = JSON.parse(pm.response.text());",  
							"    pm.environment.set(\"CONGA_AUTH_TOKEN\", response.access_token);",  
							"});"  
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [  
					{  
						"key": "Content-Type",  
						"value": "application/x-www-form-urlencoded",  
						"type": "default"  
					}  
				],
				"body": {
					"mode": "urlencoded",
					"urlencoded": [  
						{  
							"key": "grant_type",  
							"value": "client_credentials",  
							"type": "default"  
						},  
						{  
							"key": "scope",  
							"value": "{{conga_auth_scope}}",  
							"type": "default"  
						},  
						{  
							"key": "client_id",  
							"value": "{{conga_auth_clientId}}",  
							"type": "default"  
						},  
						{  
							"key": "client_secret",  
							"value": "{{conga_auth_clientSecret}}",  
							"type": "default"  
						}  
					]
				},
				"url": "{{conga_auth_endpoint}}"
			},
			"response": []
		},
		{
			"name": "Batch Status",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": {
						"token": "{{CONGA_AUTH_TOKEN}}"
					}
				},
				"method": "GET",
				"header": [  
					{  
						"key": "accept",  
						"value": "text/plain"  
					}  
				],
				"url": "https://rls-dev.congacloud.io/api/highvolumemerge/v1/status/48e7b248-c0f0-44d6-8e94-1f25dded5807"
			},
			"response": []
		},
		{
			"name": "Batch Summary",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": {
						"token": "{{CONGA_AUTH_TOKEN}}"
					}
				},
				"method": "GET",
				"header": [  
					{  
						"key": "accept",  
						"value": "*/*"  
					}  
				],
				"url": "https://rls-dev.congacloud.io/api/highvolumemerge/v1/status/48e7b248-c0f0-44d6-8e94-1f25dded5807/summary"
			},
			"response": []
		},
		{
			"name": "Download Merged File",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": {
						"token": "{{CONGA_AUTH_TOKEN}}"
					}
				},
				"method": "GET",
				"header": [  
					{  
						"key": "accept",  
						"value": "*/*"  
					}  
				],
				"url": "https://rls-dev.congacloud.io/api/highvolumemerge/v1/document/48e7b248-c0f0-44d6-8e94-1f25dded5807/7fc6c969-bfef-4ece-8fe6-d5ff64ff995c"
			},
			"response": []
		},
		{
			"name": "Initiate High Volume Merge",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": {
						"token": "{{CONGA_AUTH_TOKEN}}"
					}
				},
				"method": "POST",
				"header": [  
					{  
						"key": "accept",  
						"value": "text/plain"  
					},  
					{  
						"key": "Content-Type",  
						"value": "application/json-patch+json"  
					}  
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"dataFileId\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n  \"templateIds\": [\n    \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"\n  ],\n  \"emailTemplateId\": \"string\",\n  \"emailProvider\": \"None\",\n  \"format\": \"Json\",\n  \"useCongaSign\": true,\n  \"useSFTP\": true,\n  \"sftpOptions\": {\n    \"username\": \"string\",\n    \"password\": \"string\",\n    \"host\": \"string\",\n    \"port\": 0,\n    \"folderName\": \"string\"\n  }\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": "https://rls-dev.congacloud.io/api/highvolumemerge/v1/merge"
			},
			"response": []
		}
	]
}