{
	"info": {
		"_postman_id": "d05c8d11-08ba-4ccd-b8d1-63ef3d9038b2",
		"name": "individual_profile",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "27594153"
	},
	"item": [
		{
			"name": "client_management/individual_profile/all_fields_post",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"function getRandomInt(max) {\r",
							"  return Math.floor(Math.random() * max);\r",
							"}\r",
							"var randDom = getRandomInt(100000);\r",
							"pm.variables.set('randomSequence_id', randDom);\r",
							"var nonce = request.headers['x-auth-nonce'];\r",
							"var data = request.data;\r",
							"var newData = data.toString().replace(\"{{randomSequence_id}}\", randDom)\r",
							"var secret  = 'add token secret';\r",
							"var signature = CryptoJS.SHA256(nonce + newData + secret).toString()\r",
							"pm.globals.set(\"signature\", signature);"
						],
						"type": "text/javascript",
						"packages": {},
						"requests": {}
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "X-Auth-Token",
						"value": "add token",
						"type": "text"
					},
					{
						"key": "X-Auth-Nonce",
						"value": "8989898hhjhj1",
						"type": "text"
					},
					{
						"key": "X-Auth-Signature",
						"value": "{{signature}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"sequence_id\": \"{{randomSequence_id}}\",\n  \"user_merchant_id\": \"merchant_user_01\",\n  \"account_status\": \"active\",\n  \"reg_date\": 1672531200,\n  \"phone\": \"+1234567890\",\n  \"phone_confirmed\": true,\n  \"email\": \"user@example.com\",\n  \"email_confirmed\": true,\n  \"user_name\": \"johndoe\",\n  \"password\": \"hashed_password_string\",\n  \"fullname\": \"John Quincey Doe\",\n  \"has_middle_name\": true,\n  \"birth_date\": 631152000,\n  \"gender\": \"male\",\n  \"marital_status\": \"single\",\n  \"nationality\": \"USA\",\n  \"education\": \"Bachelor's Degree\",\n  \"employment_status\": \"employed\",\n  \"source_of_funds\": \"salary\",\n  \"document_country\": \"USA\",\n  \"document_confirmed\": true,\n  \"reg_number\": \"AB1234567\",\n  \"issue_date\": 1577836800,\n  \"expiry_date\": 1893456000,\n  \"vat_number\": \"VAT987654321\",\n  \"vat_confirmed\": false,\n  \"declaration_of_trust\": true,\n  \"description\": \"General user profile for individual retail client.\",\n  \"country\": \"USA\",\n  \"state\": \"NY\",\n  \"city\": \"New York\",\n  \"zip\": \"10001\",\n  \"address\": \"123 Main St, Apt 4B\",\n  \"address_confirmed\": true,\n  \"purpose_to_open_account\": \"investment\",\n  \"one_operation_limit\": 100.00,\n  \"daily_limit\": 500.00,\n  \"weekly_limit\": 1000.00,\n  \"monthly_limit\": 3000.00,\n  \"annual_limit\": 5000.00,\n  \"active_features\": [\n    \"trading\",\n    \"savings\",\n    \"api_access\"\n  ],\n  \"promotions\": [\n    \"welcome_bonus_2024\",\n    \"referral_credit\"\n  ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.covery.ai/api/clientManagement/individualProfile",
					"protocol": "https",
					"host": [
						"api",
						"covery",
						"ai"
					],
					"path": [
						"api",
						"clientManagement",
						"individualProfile"
					]
				}
			},
			"response": []
		},
		{
			"name": "client_management/individual_profile/all_fields_put",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"function getRandomInt(max) {\r",
							"  return Math.floor(Math.random() * max);\r",
							"}\r",
							"var randDom = getRandomInt(100000);\r",
							"pm.variables.set('randomSequence_id', randDom);\r",
							"var nonce = request.headers['x-auth-nonce'];\r",
							"var data = request.data;\r",
							"var newData = data.toString().replace(\"{{randomSequence_id}}\", randDom)\r",
							"var secret  = 'add token secret';\r",
							"var signature = CryptoJS.SHA256(nonce + newData + secret).toString()\r",
							"pm.globals.set(\"signature\", signature);"
						],
						"type": "text/javascript",
						"packages": {},
						"requests": {}
					}
				}
			],
			"request": {
				"method": "PUT",
				"header": [
					{
						"key": "X-Auth-Token",
						"value": "add token",
						"type": "text"
					},
					{
						"key": "X-Auth-Nonce",
						"value": "8989898hhjhj1",
						"type": "text"
					},
					{
						"key": "X-Auth-Signature",
						"value": "{{signature}}",
						"type": "text"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"client_profile_id\": 123456789,\n  \"user_merchant_id\": \"merchant_user_01\",\n  \"account_status\": \"active\",\n  \"reg_date\": 1672531200,\n  \"phone\": \"+1234567890\",\n  \"phone_confirmed\": true,\n  \"email\": \"user@example.com\",\n  \"email_confirmed\": true,\n  \"user_name\": \"johndoe\",\n  \"password\": \"hashed_password_string\",\n  \"fullname\": \"John Quincey Doe\",\n  \"has_middle_name\": true,\n  \"birth_date\": 631152000,\n  \"gender\": \"male\",\n  \"marital_status\": \"single\",\n  \"nationality\": \"USA\",\n  \"education\": \"Bachelor's Degree\",\n  \"employment_status\": \"employed\",\n  \"source_of_funds\": \"salary\",\n  \"document_country\": \"USA\",\n  \"document_confirmed\": true,\n  \"reg_number\": \"AB1234567\",\n  \"issue_date\": 1577836800,\n  \"expiry_date\": 1893456000,\n  \"vat_number\": \"VAT987654321\",\n  \"vat_confirmed\": false,\n  \"declaration_of_trust\": true,\n  \"description\": \"General user profile for individual retail client.\",\n  \"country\": \"USA\",\n  \"state\": \"NY\",\n  \"city\": \"New York\",\n  \"zip\": \"10001\",\n  \"address\": \"123 Main St, Apt 4B\",\n  \"address_confirmed\": true,\n  \"purpose_to_open_account\": \"investment\",\n  \"one_operation_limit\": 100.00,\n  \"daily_limit\": 500.00,\n  \"weekly_limit\": 1000.00,\n  \"monthly_limit\": 3000.00,\n  \"annual_limit\": 5000.00,\n  \"active_features\": [\n    \"trading\",\n    \"savings\",\n    \"api_access\"\n  ],\n  \"promotions\": [\n    \"welcome_bonus_2024\",\n    \"referral_credit\"\n  ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.covery.ai/api/clientManagement/individualProfile",
					"protocol": "https",
					"host": [
						"api",
						"covery",
						"ai"
					],
					"path": [
						"api",
						"clientManagement",
						"individualProfile"
					]
				}
			},
			"response": []
		}
	]
}