{
	"info": {
		"_postman_id": "29ecf029-c4a4-4e13-b7d3-2377b29b6c69",
		"name": "entity_profile",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "27594153"
	},
	"item": [
		{
			"name": "client_management/entity_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_biz_01\",\n  \"account_status\": \"active\",\n  \"reg_date\": 1713780000,\n  \"phone\": \"+1234567890\",\n  \"phone_confirmed\": true,\n  \"email\": \"contact@business.com\",\n  \"email_confirmed\": true,\n  \"user_name\": \"biz_admin_01\",\n  \"password\": \"hashed_password_string\",\n  \"company_name\": \"Global Tech Solutions Inc\",\n  \"website_url\": \"https://www.globaltechsolutions.com\",\n  \"industry\": \"Software Development\",\n  \"document_country\": \"USA\",\n  \"document_confirmed\": true,\n  \"reg_number\": \"BC-99887766\",\n  \"issue_date\": 1577836800,\n  \"expiry_date\": 1893456000,\n  \"vat_number\": \"VAT-77665544\",\n  \"vat_confirmed\": true,\n  \"declaration_of_trust\": true,\n  \"description\": \"Corporate profile for technology services provider.\",\n  \"country\": \"USA\",\n  \"state\": \"California\",\n  \"city\": \"San Francisco\",\n  \"zip\": \"94105\",\n  \"address\": \"456 Innovation Way, Suite 100\",\n  \"address_confirmed\": true,\n  \"purpose_to_open_account\": \"business_operations\",\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    \"multi_user_access\",\n    \"batch_payments\",\n    \"priority_support\"\n  ],\n  \"promotions\": [\n    \"enterprise_discount_2024\"\n  ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.covery.ai/api/clientManagement/entityProfile",
					"protocol": "https",
					"host": [
						"api",
						"covery",
						"ai"
					],
					"path": [
						"api",
						"clientManagement",
						"entityProfile"
					]
				}
			},
			"response": []
		},
		{
			"name": "client_management/entity_profile/all_fields_put",
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"exec": [
							"var nonce = request.headers['x-auth-nonce'];\r",
							"var data = request.data;\r",
							"var secret  = 'add secret';\r",
							"var signature = CryptoJS.SHA256(nonce + data + 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_biz_01\",\n  \"account_status\": \"active\",\n  \"reg_date\": 1713780000,\n  \"phone\": \"+1234567890\",\n  \"phone_confirmed\": true,\n  \"email\": \"contact@business.com\",\n  \"email_confirmed\": true,\n  \"user_name\": \"biz_admin_01\",\n  \"password\": \"hashed_password_string\",\n  \"company_name\": \"Global Tech Solutions Inc\",\n  \"website_url\": \"https://www.globaltechsolutions.com\",\n  \"industry\": \"Software Development\",\n  \"document_country\": \"USA\",\n  \"document_confirmed\": true,\n  \"reg_number\": \"BC-99887766\",\n  \"issue_date\": 1577836800,\n  \"expiry_date\": 1893456000,\n  \"vat_number\": \"VAT-77665544\",\n  \"vat_confirmed\": true,\n  \"declaration_of_trust\": true,\n  \"description\": \"Corporate profile for technology services provider.\",\n  \"country\": \"USA\",\n  \"state\": \"California\",\n  \"city\": \"San Francisco\",\n  \"zip\": \"94105\",\n  \"address\": \"456 Innovation Way, Suite 100\",\n  \"address_confirmed\": true,\n  \"purpose_to_open_account\": \"business_operations\",\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    \"multi_user_access\",\n    \"batch_payments\",\n    \"priority_support\"\n  ],\n  \"promotions\": [\n    \"enterprise_discount_2024\"\n  ]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "https://api.covery.ai/api/clientManagement/entityProfile",
					"protocol": "https",
					"host": [
						"api",
						"covery",
						"ai"
					],
					"path": [
						"api",
						"clientManagement",
						"entityProfile"
					]
				}
			},
			"response": []
		}
	]
}