{
	"info": {
		"_postman_id": "6a7e3029-ad4f-4d75-91bc-27b0282c1fad",
		"name": "Reference Documentation",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "24312322",
		"_collection_link": "https://bold-meteor-54090.postman.co/workspace/Team-Workspace~e25aca89-6efb-4113-8601-9dde803124ed/collection/24312322-6a7e3029-ad4f-4d75-91bc-27b0282c1fad?action=share&source=collection_link&creator=24312322"
	},
	"item": [
		{
			"name": "Meeting",
			"item": [
				{
					"name": "Get Meetings",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"task_type\":207 // when filter by activity\n} ",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities/get-meetings?active=true&page=1&expand=agency_users&filter_own=0&per-page=10",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities",
								"get-meetings"
							],
							"query": [
								{
									"key": "active",
									"value": "true",
									"description": "choose one from active, archived and active_past these are filters or tab"
								},
								{
									"key": "archived",
									"value": "true",
									"disabled": true
								},
								{
									"key": "active_past",
									"value": "true",
									"disabled": true
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "expand",
									"value": "agency_users"
								},
								{
									"key": "filter_own",
									"value": "0"
								},
								{
									"key": "per-page",
									"value": "10"
								}
							]
						},
						"description": "This endpoint retrieves transactions for a given account, optionally filtering on the date created (`createdAt`) and the account receiving the transaction (`toAccountId`).\n\n### Response\n\nUpon a successful request, the response will contain an array of transaction objects matching the search criteria.\n\nIf no matching transactions are found, the transactions object will contain an empty array."
					},
					"response": []
				},
				{
					"name": "Get single Meeting",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities/665ef76d8b1a5dad3d04f4bb",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities",
								"665ef76d8b1a5dad3d04f4bb"
							]
						},
						"description": "This endpoint retrieves details of a specific transaction by providing the transaction ID as a path parameter.\n\nIf you are looking to retrieve more than one transaction, check out the **List Transactions** request.\n\n### Response\n\nUpon a successful request, the response will contain a single transaction object matching the search criteria.\n\nIf no transaction with the given ID is found, the request will return a `Not Found` error."
					},
					"response": [
						{
							"name": "Successful Response",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/transactions/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"transactions",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "4",
											"description": "(Required) transaction ID"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:48:21 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "139"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"transaction\": {\n        \"id\": 4,\n        \"createdAt\": \"2024-02-16T22:30:32.000Z\",\n        \"fromAccountId\": 17,\n        \"toAccountId\": 19,\n        \"currency\": \"COSMIC_COINS\",\n        \"amount\": 1000\n    }\n}"
						},
						{
							"name": "Not found",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/transactions/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"transactions",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "999",
											"description": "(Required) transaction id"
										}
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:33:28 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "67"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Transaction does not exist.\"\n}"
						},
						{
							"name": "Forbidden",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/transactions/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"transactions",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "999"
										}
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:21:35 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "95"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"
						}
					]
				},
				{
					"name": "Create New Meeting",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"subject\": \"Aliquid et vel sit e\",\n  \"private\": true,\n  \"status\": \"Scheduled\",\n  \"start_date\": \"2024-07-31T19:02:14+05:00\",\n  \"start_time\": \"2024-07-31T15:02:14.327Z\",\n  \"end_date\": \"2024-07-31T19:02:14+05:00\",\n  \"end_time\": \"2024-07-31T16:02:14.327Z\",\n  \"repeate_type\": \"None\",\n  \"notification\": {\n    \"type\": \"email\",\n    \"duration\": 21,\n    \"time\": \"minutes\"\n  },\n  \"reminder_time\": \"15m\",\n  \"task_type\": \"\",\n  \"task_type_value\": {\n    \"en\": \"\"\n  },\n  \"country\": \"\",\n  \"region\": \"\",\n  \"province\": \"\",\n  \"city\": \"\",\n  \"postal_code\": \"54000\",\n  \"street\": \"962 South Clarendon Lane\",\n  \"street_number\": \"810\",\n  \"google_map\": \"Corrupti maxime est\",\n  \"comments\": \"Minima cillum repell\",\n  \"description\": \"Quia quia qui et dol\",\n  \"participants\": [\n    {\n      \"name\": \"Demo 8 \",\n      \"email\": \"demo-admin08@optima-crm.com\"\n    }\n  ],\n  \"meeting\": [\n    {\n      \"related_to\": \"\",\n      \"account\": \"\",\n      \"owner\": \"\",\n      \"property\": \"\",\n      \"company\": \"\",\n      \"project\": \"\",\n      \"urbanisation\": \"\",\n      \"sale\": \"\",\n      \"commercial_property\": \"\",\n      \"booking\": \"\",\n      \"rental_contracts\": \"\",\n      \"mooring\": \"\",\n      \"boat\": \"\"\n    }\n  ],\n  \"offices\": [\n    \"5b69d3248280de68cc27a093\"\n  ],\n  \"meeting_type\": \"\",\n  \"type\": \"meeting\",\n  \"created_at\": \"\",\n  \"created_by\": \"\",\n  \"agency\": \"\",\n  \"_id\": null,\n  \"color\": \"\"\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities"
							]
						},
						"description": "Creates a new transaction. You can transfer funds between accounts by providing two account IDs in the `fromAccountId` and `toAccountId` fields.\n\n### Response\n\nA successful request will contain a single transaction object with the newly created transaction `id`\n\nIf there are not enough funds in the originator's account to complete the transaction, the request will return a `400 Insufficient Funds` error.\n\n### Important!\n\nTransactions cannot be edited once created, so use this endpoint with caution."
					},
					"response": [
						{
							"name": "Successful Response",
							"originalRequest": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"fromAccountId\" : \"12345678\",\n    \"toAccountId\" : \"87654321\",\n    \"amount\" : 10000,\n    \"currency\" : \"COSMIC_COINS\"\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/api/v1/transactions",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"transactions"
									]
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json",
									"name": "Content-Type",
									"description": "",
									"type": "text"
								}
							],
							"cookie": [],
							"body": "{\n    \"success\": true,\n    \"transaction\": {\n        \"id\": 8\n    }\n}"
						},
						{
							"name": "Insufficient funds",
							"originalRequest": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"fromAccountId\" : 17,\n    \"toAccountId\" : 19,\n    \"amount\" : 1000000000000000000000,\n    \"currency\" : \"COSMIC_COINS\"\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/api/v1/transactions",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"transactions"
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:16:53 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "101"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidBody\",\n    \"message\": \"Insufficient balance in fromAccountId to initiate the transaction.\"\n}"
						},
						{
							"name": "Forbidden",
							"originalRequest": {
								"method": "POST",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/transactions",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"transactions"
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:21:35 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "95"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"
						}
					]
				}
			]
		},
		{
			"name": "Tasks",
			"item": [
				{
					"name": "Get Tasks",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"tab\":\"active\",\n    \"filter_own\":0\n\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities/get-tasks?page=1&expand=agency_users,assignee_user&per-page=10",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities",
								"get-tasks"
							],
							"query": [
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "expand",
									"value": "agency_users,assignee_user"
								},
								{
									"key": "per-page",
									"value": "10"
								}
							]
						},
						"description": "List all accounts that exist at the the Intergalactic Bank. Optionally, filter by `owner` (using a full name), or the `createdAt` date (using `YYYY-MM-DD` format).\n\n### Response\n\nUpon a successful request, the response will return an `accounts` object that contains an array of nested accounts matching the search criteria.\n\nIf no accounts are found to match the search criteria, the `accounts` object will contain an empty array."
					},
					"response": [
						{
							"name": "Successful Response (filter by date)",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts?createdAt=2023-04-10",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts"
									],
									"query": [
										{
											"key": "owner",
											"value": "Nova Newman",
											"disabled": true
										},
										{
											"key": "createdAt",
											"value": "2023-04-10"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json",
									"name": "Content-Type",
									"description": "",
									"type": "text"
								}
							],
							"cookie": [],
							"body": "{\n    \"accounts\": [\n        {\n            \"id\": \"1\",\n            \"owner\": \"Nova Newman\",\n            \"createdAt\": \"2024-01-10T14:54:29.739Z\",\n            \"balance\": 10000,\n            \"currency\" : \"COSMIC_COINS\"\n        },\n        {\n            \"id\": \"2\",\n            \"owner\": \"Gary Galaxy\",\n            \"createdAt\": \"2024-01-10T14:54:29.739Z\",\n            \"balance\": 237,\n            \"currency\" : \"COSMIC_COINS\"\n        }\n    ]\n}"
						},
						{
							"name": "Successful Response (filter by owner)",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts?owner=Nova Newman",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts"
									],
									"query": [
										{
											"key": "owner",
											"value": "Nova Newman"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json",
									"name": "Content-Type",
									"description": "",
									"type": "text"
								}
							],
							"cookie": [],
							"body": "{\n    \"accounts\": [\n        {\n            \"id\": \"1\",\n            \"owner\": \"Nova Newman\",\n            \"createdAt\": \"2023-04-10\",\n            \"balance\": 10000,\n            \"currency\" : \"COSMIC_COINS\"\n        }\n    ]\n}"
						},
						{
							"name": "No matching accounts found",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts?owner=Norman Nobody&createdAt=2023-04-10",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts"
									],
									"query": [
										{
											"key": "owner",
											"value": "Norman Nobody"
										},
										{
											"key": "createdAt",
											"value": "2023-04-10"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json",
									"name": "Content-Type",
									"description": "",
									"type": "text"
								}
							],
							"cookie": [],
							"body": "{\n    \"accounts\": []\n}"
						},
						{
							"name": "Forbidden",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts"
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:21:35 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "95"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"
						}
					]
				},
				{
					"name": "Get Tasks",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities/5fb7a8839528753884565107?expand=a_assignee",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities",
								"5fb7a8839528753884565107"
							],
							"query": [
								{
									"key": "expand",
									"value": "a_assignee"
								}
							]
						},
						"description": "Get information about an account by passing the account `id` as a path parameter.\n\n### Response\n\nUpon a successful request, the response will contain an `account` object matching the search criteria.\n\nIf no account with that ID is found, the request will return a `Not Found` error."
					},
					"response": [
						{
							"name": "Succesful Response",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "26",
											"description": "(Required) ID of account"
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 14:46:30 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "84"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"account\": {\n        \"id\": 26,\n        \"owner\": \"Nova Newman\",\n        \"balance\": 5100,\n        \"currency\": \"COSMIC_COINS\"\n    }\n}"
						},
						{
							"name": "Not found",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "999"
										}
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:18:51 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "63"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Account does not exist.\"\n}"
						},
						{
							"name": "Forbidden",
							"originalRequest": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "22"
										}
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:21:35 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "95"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"
						}
					]
				},
				{
					"name": "Update Account",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"subject\": \"Dolorem consequatur\",\n  \"private\": true,\n  \"priority\": \"Normal\",\n  \"status\": \"Open\",\n  \"start_date\": \"2024-07-31T13:20:17.917Z\",\n  \"start_time\": \"2024-07-31T13:20:17.917Z\",\n  \"end_date\": \"2024-07-31T13:20:17.917Z\",\n  \"end_time\": \"2024-07-31T14:20:17.917Z\",\n  \"notification\": {\n    \"type\": \"email\",\n    \"duration\": 14,\n    \"time\": \"minutes\"\n  },\n  \"assignee_user\": \"None\",\n  \"calendar_id\": \"None\",\n  \"dependent_step\": \"None\",\n  \"milestone\": \"None\",\n  \"related_steps\": \"None\",\n  \"sequence_id\": \"None\",\n  \"steps\": \"None\",\n  \"repeate_type\": \"None\",\n  \"description\": \"Reprehenderit ut ma\",\n  \"offices\": [\"5b69d3248280de68cc27a093\"],\n  \"from\": \"resalesonlinecb\",\n  \"assignee\": [\"62308f760701fb0ae2619556\"],\n  \"contacts\": \"Lumturije Zejnullahu\",\n  \"type\": \"task\"\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities/66aa3a4952f68f86c30a3ae2",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities",
								"66aa3a4952f68f86c30a3ae2"
							]
						},
						"description": "Update information about an account by passing the `accountId` as a path parameter and additional information through the Request Body.\n\n### Request Body Properties\n\n| **Property Name** | **Data Type** | **Description** | **Required?** |\n| --- | --- | --- | --- |\n| owner | String | Full Name | Yes |\n\n### Response\n\nUpon a successful request, the response will contain an `account` object matching the search criteria.\n\nIf no account with that ID is found, the request will return a `Not Found` error.\n\nIf the requesting party does not have Admin permissions, the request will return a `403 Forbidden` Error.\n\n### Important!\n\nOnly Bank Admins have permission to update an account. You may encounter a `403 Forbidden Error` if you try to update an account without the correct permissions."
					},
					"response": [
						{
							"name": "Successful Response",
							"originalRequest": {
								"method": "PATCH",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"owner\":\"4\"\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": ""
										}
									]
								}
							},
							"status": "OK",
							"code": 200,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json",
									"name": "Content-Type",
									"description": "",
									"type": "text"
								}
							],
							"cookie": [],
							"body": "{\n    \"account\": {\n        \"id\": \"2\",\n        \"owner\" : \"Nova Newman\",\n        \"balance\" : 300,\n        \"currency\" : \"COSMIC_COINS\",\n        \"createdAt\" : \"2024-01-10T14:54:29.739Z\"\n    }\n}"
						},
						{
							"name": "Not found",
							"originalRequest": {
								"method": "PATCH",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "999"
										}
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:18:51 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "63"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Account does not exist.\"\n}"
						},
						{
							"name": "Forbidden",
							"originalRequest": {
								"method": "PATCH",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "22"
										}
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:21:35 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "95"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"
						}
					]
				},
				{
					"name": "Delete Account",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities/66aa3a4952f68f86c30a3ae2?created_by=5c4eefaeb15da71b8179d9ad&agency=56b067e02bc1d9fa5dcedef2",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities",
								"66aa3a4952f68f86c30a3ae2"
							],
							"query": [
								{
									"key": "created_by",
									"value": "5c4eefaeb15da71b8179d9ad"
								},
								{
									"key": "agency",
									"value": "56b067e02bc1d9fa5dcedef2"
								}
							]
						},
						"description": "Delete an account by passing in the account `id` as a path parameter.\n\n### Response\n\nA successful request will return an empty response.\n\nIf no account with that ID is found, the request will return a `Not Found` error.\n\nIf the requesting party does not have Admin permissions, the request will return a `403 Forbidden` Error.\n\n### Important!\n\nOnce an account is deleted, it cannot be restored, so please use this endpoint with caution.\n\nAdditionally, only Bank Admins have permission to update an account. You may encounter a `403 Forbidden` Error if you try to update an account without the correct permissions."
					},
					"response": [
						{
							"name": "Successful Response",
							"originalRequest": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": ""
										}
									]
								}
							},
							"status": "No Content",
							"code": 204,
							"_postman_previewlanguage": "Text",
							"header": [],
							"cookie": [],
							"body": ""
						},
						{
							"name": "Not found",
							"originalRequest": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "15"
										}
									]
								}
							},
							"status": "Bad Request",
							"code": 400,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:18:51 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "63"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"instanceNotFound\",\n    \"message\": \"Account does not exist.\"\n}"
						},
						{
							"name": "Forbidden",
							"originalRequest": {
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts/:id",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts",
										":id"
									],
									"variable": [
										{
											"key": "id",
											"value": "22"
										}
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:21:35 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "95"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"
						}
					]
				},
				{
					"name": "Create New Task",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"subject\": \"Dolorem consequatur\",\n  \"private\": true,\n  \"priority\": \"Normal\",\n  \"status\": \"Open\",\n  \"start_date\": \"2024-07-31T13:20:17.917Z\",\n  \"start_time\": \"2024-07-31T13:20:17.917Z\",\n  \"end_date\": \"2024-07-31T13:20:17.917Z\",\n  \"end_time\": \"2024-07-31T14:20:17.917Z\",\n  \"notification\": {\n    \"type\": \"email\",\n    \"duration\": 14,\n    \"time\": \"minutes\"\n  },\n  \"assignee_user\": \"None\",\n  \"calendar_id\": \"None\",\n  \"dependent_step\": \"None\",\n  \"milestone\": \"None\",\n  \"related_steps\": \"None\",\n  \"sequence_id\": \"None\",\n  \"steps\": \"None\",\n  \"repeate_type\": \"None\",\n  \"description\": \"Reprehenderit ut ma\",\n  \"offices\": [\"5b69d3248280de68cc27a093\"],\n  \"from\": \"resalesonlinecb\",\n  \"assignee\": [\"62308f760701fb0ae2619556\"],\n  \"contacts\": \"Lumturije Zejnullahu\",\n  \"type\": \"task\"\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/activities",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"activities"
							]
						},
						"description": "Creates a new account at the Intergalactic Bank.\n\n### Request Body Properties\n\n| Property Name | Property Type | **Description** | **Required?** |\n| --- | --- | --- | --- |\n| owner | String | Full name of the person opening this account | Yes |\n| balance | Number | The starting balance of the account | Yes |\n| currency | String - Possible values: `COSMIC_COINS`, `GALAXY_GOLD`, `MOON_BUCKS` | The currency this account will be using for transactions. This cannot be changed once established. | Yes |\n\n### Response\n\nA successful request will contain a single `account` object with the newly created transaction `id`"
					},
					"response": [
						{
							"name": "Successful Response",
							"originalRequest": {
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\n    \"owner\": \"Nova Newman\",\n \t\"balance\" : 500,\n    \"currency\" : \"COMET_COINS\"\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts"
									]
								}
							},
							"status": "Created",
							"code": 201,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Content-Type",
									"value": "application/json",
									"name": "Content-Type",
									"description": "",
									"type": "text"
								}
							],
							"cookie": [],
							"body": "{\n    \"account\": {\n        \"id\": \"123\"\n    }\n}"
						},
						{
							"name": "Forbidden",
							"originalRequest": {
								"method": "POST",
								"header": [],
								"url": {
									"raw": "{{baseUrl}}/api/v1/accounts",
									"host": [
										"{{baseUrl}}"
									],
									"path": [
										"api",
										"v1",
										"accounts"
									]
								}
							},
							"status": "Forbidden",
							"code": 403,
							"_postman_previewlanguage": "json",
							"header": [
								{
									"key": "Date",
									"value": "Sat, 17 Feb 2024 13:21:35 GMT"
								},
								{
									"key": "Content-Type",
									"value": "application/json; charset=utf-8"
								},
								{
									"key": "Content-Length",
									"value": "95"
								},
								{
									"key": "Connection",
									"value": "keep-alive"
								},
								{
									"key": "uWebSockets",
									"value": "20"
								}
							],
							"cookie": [],
							"body": "{\n    \"name\": \"invalidAuth\",\n    \"message\": \"Please provide a valid API key in the header of the request.\"\n}"
						}
					]
				}
			]
		},
		{
			"name": "Accounts",
			"item": [
				{
					"name": "Get Accounts",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"grid\":false,\n    \"status_not\":\"inactive\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/accounts/search?expand=linked_company_data,users,agency_users,originated_by_name,favorites,language_data,assignedto_obj,updated_by_data,properties,activities_ids,owner&page=1&per-page=20",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"accounts",
								"search"
							],
							"query": [
								{
									"key": "expand",
									"value": "linked_company_data,users,agency_users,originated_by_name,favorites,language_data,assignedto_obj,updated_by_data,properties,activities_ids,owner"
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "per-page",
									"value": "20"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "New Account",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"type\": \"individual\",\n    \"title\": \"Mr.\",\n    \"forename\": \"Demo\",\n    \"surname\": \"One\",\n    \"gender\": \"Male\",\n    \"mobile_phone\": \"+971234567891\",\n    \"email\": \"demo@optimaventurez.com\",\n    \"offices\": [\n        \"664e4b56df183b06a20e2a26\"\n    ],\n    \"assigned_to\": [\n        \"agent@two.com\"\n    ],\n    \"source\": \"other\",\n    \"status\": \"lead\",\n    \"agency\": \"664e4b56df183b06a20e2a23\",\n    \"from_crm\": 1\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/accounts",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"accounts"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Single Account",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/accounts/66a397b538d1df7c6d018a23?expand=linked_users_data",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"accounts",
								"66a397b538d1df7c6d018a23"
							],
							"query": [
								{
									"key": "expand",
									"value": "linked_users_data"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Account Copy",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"_id\": \"66aa4d64a057953a830ef131\",\n    \"type\": \"individual\",\n    \"title\": \"Mr.\",\n    \"forename\": \"Demo\",\n    \"surname\": \"One\",\n    \"gender\": \"Male\",\n    \"linked_users\": \"66a8d19529379510cb0c8997\",\n    \"work_phone\": \"\",\n    \"mobile_phone\": \"+971234567892\",\n    \"email\": \"demo@optimaventurez.com\",\n    \"address\": \"\",\n    \"country\": \"\",\n    \"city\": \"\",\n    \"community\": \"\",\n    \"sub_community\": \"\",\n    \"location\": \"\",\n    \"postal_code\": \"\",\n    \"street\": \"\",\n    \"street_number\": \"\",\n    \"commercial_profile\": {\n        \"transaction_type\": \"\",\n        \"type_one\": \"\",\n        \"type_two\": \"\",\n        \"type_three\": \"\",\n        \"beds_from\": \"\",\n        \"beds_to\": \"\",\n        \"baths_from\": \"\",\n        \"baths_to\": \"\",\n        \"toilets\": \"\",\n        \"bed_from\": \"\",\n        \"bed_to\": \"\",\n        \"countries\": \"\",\n        \"cities\": \"\",\n        \"communities\": \"\",\n        \"sub_communities\": \"\",\n        \"locations\": \"\"\n    },\n    \"offices\": [\n        \"664e4b56df183b06a20e2a26\"\n    ],\n    \"assigned_to\": [\n        \"agent@two.com\"\n    ],\n    \"source\": \"other\",\n    \"status\": \"lead\",\n    \"lead_status\": \"\",\n    \"probability\": \"\",\n    \"linked_company\": \"66aa4d64a057953a830ef130\",\n    \"commercials_interested\": \"\",\n    \"currency\": \"\",\n    \"created_by\": \"664e4efdcfc45720890d89ff\",\n    \"agency\": \"664e4b56df183b06a20e2a23\",\n    \"from_crm\": 1\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/accounts/66aa4d64a057953a830ef131",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"accounts",
								"66aa4d64a057953a830ef131"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Account",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/accounts/status-update?account_id=66aa4d64a057953a830ef131&status=true",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"accounts",
								"status-update"
							],
							"query": [
								{
									"key": "account_id",
									"value": "66aa4d64a057953a830ef131"
								},
								{
									"key": "status",
									"value": "true"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "User Profile",
			"item": [
				{
					"name": "Get Single Profile",
					"protocolProfileBehavior": {
						"disableBodyPruning": true
					},
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"grid\":false,\n    \"status_not\":\"inactive\"\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/users/66a8d19529379510cb0c8997?expand=owner_data,company_data,account_data",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"users",
								"66a8d19529379510cb0c8997"
							],
							"query": [
								{
									"key": "expand",
									"value": "owner_data,company_data,account_data"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "New Profile",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"username\": \"demo2@optima.com\",\n    \"email\": \"demo2@optima.com\",\n    \"agency\": \"664e4b56df183b06a20e2a23\",\n    \"office\": \"664e4b56df183b06a20e2a26\",\n    \"password_hash\": \"Demo1234!@#$\",\n    \"password_repeat\": \"Demo1234!@#$\",\n    \"company\": \"Google\",\n    \"role\": \"agent\",\n    \"master_office\": true,\n    \"firstname\": \"Demo\",\n    \"lastname\": \"Two\",\n    \"phone\": \"\",\n    \"office_phone\": \"\",\n    \"status\": \"10\",\n    \"reports_to\": \"\",\n    \"dp\": \"\",\n    \"linking_account\": \"\",\n    \"linking_owner\": \"\",\n    \"linking_company\": \"\",\n    \"address\": \"\",\n    \"country\": 220,\n    \"state\": \"\",\n    \"city\": 7,\n    \"community\": 97,\n    \"postcode\": \"\",\n    \"street\": \"\",\n    \"street_number\": \"\",\n    \"comments\": \"\",\n    \"commission\": {\n        \"listing\": [\n            {\n                \"sale_value_from\": \"1\",\n                \"sale_value_to\": \"99999999\",\n                \"listing_commission\": null,\n                \"exclusive_listing_commission\": null\n            }\n        ],\n        \"sales\": [\n            {\n                \"sale_value_from\": \"1\",\n                \"sale_value_to\": \"99999999\",\n                \"sales_commission\": null,\n                \"exclusive_sales_commission\": null\n            }\n        ],\n        \"rent\": [\n            {\n                \"rental_value_from\": \"1\",\n                \"rental_value_to\": \"99999\",\n                \"rental_commission\": null,\n                \"exclusive_rental_commission\": null\n            }\n        ]\n    },\n    \"record_per_page\": \"20\",\n    \"grid_record_per_page\": \"5\",\n    \"booking_calendar_per_page\": 10,\n    \"default_lang\": \"en\",\n    \"ical_url\": \"\",\n    \"default_separators\": \"en\",\n    \"load_closed_task\": {\n        \"value\": true\n    },\n    \"activity_reminders\": {\n        \"value\": true\n    },\n    \"email_notification\": 2,\n    \"auto_bcc\": \"\",\n    \"account_view\": \"grid\",\n    \"owner_view\": \"list\",\n    \"properties_view\": \"list\",\n    \"dashboard_view\": \"/dashboard/home\",\n    \"calendar_view\": \"month\",\n    \"google_auth_key\": \"\",\n    \"outlook_access_token\": \"\",\n    \"user_apikey\": {\n        \"value\": null\n    },\n    \"ticket_notifications\": {\n        \"on_create\": true,\n        \"on_close\": true,\n        \"on_update\": true,\n        \"on_open\": true,\n        \"on_delete\": true,\n        \"on_add_attachment\": true,\n        \"on_delete_attachment\": true,\n        \"on_comment\": true\n    },\n    \"signature\": \"\",\n    \"digital_signature\": \"\",\n    \"holidays\": []\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/users",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"users"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Users",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/users/mongo-search?page=1&per-page=25&support_user=false",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"users",
								"mongo-search"
							],
							"query": [
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "per-page",
									"value": "25"
								},
								{
									"key": "support_user",
									"value": "false"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Profile",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n    \"username\": \"demo@optimaventurez.com\",\n    \"email\": \"demo@optimaventurez.com\",\n    \"agency\": \"664e4b56df183b06a20e2a23\",\n    \"office\": \"664e4b56df183b06a20e2a26\",\n    \"company\": \"Google\",\n    \"role\": \"agent\",\n    \"master_office\": true,\n    \"firstname\": \"John\",\n    \"lastname\": \"Doe\",\n    \"phone\": \"+971585858581\",\n    \"office_phone\": \"\",\n    \"status\": \"10\",\n    \"reports_to\": \"\",\n    \"dp\": \"\",\n    \"linking_account\": \"66aa4d64a057953a830ef131\",\n    \"linking_owner\": \"\",\n    \"linking_company\": \"\",\n    \"address\": \"\",\n    \"country\": 220,\n    \"state\": \"\",\n    \"city\": 7,\n    \"community\": 97,\n    \"postcode\": \"\",\n    \"street\": \"\",\n    \"street_number\": \"\",\n    \"comments\": \"\",\n    \"commission\": {\n        \"listing\": [\n            {\n                \"sale_value_from\": \"1\",\n                \"sale_value_to\": \"99999999\",\n                \"listing_commission\": null,\n                \"exclusive_listing_commission\": null\n            }\n        ],\n        \"sales\": [\n            {\n                \"sale_value_from\": \"1\",\n                \"sale_value_to\": \"99999999\",\n                \"sales_commission\": null,\n                \"exclusive_sales_commission\": null\n            }\n        ],\n        \"rent\": [\n            {\n                \"rental_value_from\": \"1\",\n                \"rental_value_to\": \"99999\",\n                \"rental_commission\": null,\n                \"exclusive_rental_commission\": null\n            }\n        ]\n    },\n    \"record_per_page\": \"20\",\n    \"grid_record_per_page\": \"5\",\n    \"booking_calendar_per_page\": 10,\n    \"default_lang\": \"en\",\n    \"ical_url\": \"\",\n    \"default_separators\": \"en\",\n    \"load_closed_task\": {\n        \"value\": true\n    },\n    \"activity_reminders\": {\n        \"value\": true\n    },\n    \"email_notification\": 2,\n    \"auto_bcc\": \"\",\n    \"account_view\": \"grid\",\n    \"owner_view\": \"list\",\n    \"properties_view\": \"list\",\n    \"dashboard_view\": \"/dashboard/home\",\n    \"calendar_view\": \"month\",\n    \"google_auth_key\": \"\",\n    \"outlook_access_token\": \"\",\n    \"user_apikey\": \"3ca9805a408d5004402b78bdf9f57aef\",\n    \"ticket_notifications\": {\n        \"on_create\": true,\n        \"on_close\": true,\n        \"on_update\": true,\n        \"on_open\": true,\n        \"on_delete\": true,\n        \"on_add_attachment\": true,\n        \"on_delete_attachment\": true,\n        \"on_comment\": true\n    },\n    \"signature\": \"\",\n    \"digital_signature\": \"\",\n    \"holidays\": []\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/users/66a8d19529379510cb0c8997",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"users",
								"66a8d19529379510cb0c8997"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Profile",
					"request": {
						"auth": {
							"type": "bearer",
							"bearer": [
								{
									"key": "token",
									"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MTY0MDgwODMsInVzZXIiOnsiX2lkIjoiNjY0ZTRlZmRjZmM0NTcyMDg5MGQ4OWZmIiwiYWdlbmN5IjoiNjY0ZTRiNTZkZjE4M2IwNmEyMGUyYTIzIiwidXNlcl9hcGlrZXkiOnsidmFsdWUiOm51bGx9fX0.bJOkZbCBKxcLBVC6XQRrQbzPefH3RZJpJxBp2nhUDyI",
									"type": "string"
								}
							]
						},
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "https://crm.optimaventurez.com/yiiapp/backend/web/users/66aa54e9de482619270f3365?created_by=664e4efdcfc45720890d89ff&agency=664e4b56df183b06a20e2a23",
							"protocol": "https",
							"host": [
								"crm",
								"optimaventurez",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"users",
								"66aa54e9de482619270f3365"
							],
							"query": [
								{
									"key": "created_by",
									"value": "664e4efdcfc45720890d89ff"
								},
								{
									"key": "agency",
									"value": "664e4b56df183b06a20e2a23"
								}
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Viewing Tours",
			"item": [
				{
					"name": "Get Tours",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\"status\":\"Booked\",\"filter_own\":0} // Pending, Cancelled, Completed , {} \n// filter_own: 1 for my tours",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/viewings/get-search?expand=assignee_user,account_name,agency_data,account_id,created_by_data,account_data&page=1&per_page=10",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"viewings",
								"get-search"
							],
							"query": [
								{
									"key": "expand",
									"value": "assignee_user,account_name,agency_data,account_id,created_by_data,account_data"
								},
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "per_page",
									"value": "10"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "New Tour",
					"request": {
						"method": "POST",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"_id\": \"669fc6eafa3474d21902185c\",\n  \"agency\": \"64a5475c9aff05c6c904912f\",\n  \"subject\": \"Viewing Kitty van\",\n  \"create_account\": false,\n  \"type\": \"viewing\",\n  \"account_name\": \"Kitty van\",\n  \"account\": \"668936726574b8d562047195\",\n  \"language\": [\"NL\"],\n  \"color\": \"\",\n  \"assignee\": \"64a7ebae97d1da426d07d658\",\n  \"status\": \"Booked\",\n  \"date\": \"2024-10-07\",\n  \"end_date\": \"2024-10-07\",\n  \"start_date\": \"2024-10-07\",\n  \"start_time\": \"2024-07-23T08:00:15.116Z\",\n  \"end_time\": \"2024-07-23T08:00:15.116Z\",\n  \"google_map\": \"\",\n  \"viewing_for\": \"Commercial Properties\",\n  \"notification\": {\n    \"type\": \"email\",\n    \"duration\": \"30\",\n    \"time\": \"minutes\"\n  },\n  \"companies\": \"\",\n  \"company_names\": \"\",\n  \"description\": \"\",\n  \"offices\": [\"64a5475c9aff05c6c9049131\"],\n  \"contacts\": \"\",\n  \"companies_contacts\": \"\",\n  \"list\": [\n    {\n      \"time\": \"2024-07-23T08:00:15.116Z\",\n      \"owner\": \"\",\n      \"lat\": \"\",\n      \"lng\": \"\",\n      \"listing_agency\": \"\",\n      \"non_own\": \"\",\n      \"property\": \"\",\n      \"property_title\": \"\",\n      \"property_reference\": \"\",\n      \"property_agency_reference\": \"\",\n      \"property_external_reference\": \"\",\n      \"property_address\": \"\",\n      \"commercial_name\": \"\",\n      \"listing_agent_name\": \"\",\n      \"project\": \"\",\n      \"project_title\": \"\",\n      \"project_reference\": \"\",\n      \"project_agency_reference\": \"\",\n      \"project_user_reference\": \"\",\n      \"project_address\": \"\",\n      \"commercial_property\": \"\",\n      \"commercial_title\": \"\",\n      \"commercial_reference\": \"\",\n      \"commercial_other_reference\": \"\",\n      \"commercial_external_reference\": \"\",\n      \"commercial_address\": \"\",\n      \"commercial_listing_agency_id\": \"\",\n      \"commercial_listing_agency_mobile\": \"\",\n      \"commercial_listing_agency_email\": \"\",\n      \"commercial_agency_contact_id\": \"\",\n      \"commercial_company_contact_id\": \"\",\n      \"commercial_agency_contact_email\": \"\",\n      \"commercial_agency_contact_mobile\": \"\",\n      \"comment\": \"\",\n      \"mooring_name\": \"\",\n      \"mooring\": \"\",\n      \"mooring_title\": \"\",\n      \"mooring_reference\": \"\",\n      \"mooring_other_reference\": \"\",\n      \"mooring_external_reference\": \"\",\n      \"mooring_address\": \"\",\n      \"boat_name\": \"\",\n      \"boat\": \"\",\n      \"boat_title\": \"\",\n      \"boat_reference\": \"\",\n      \"boat_other_reference\": \"\",\n      \"boat_external_reference\": \"\",\n      \"boat_address\": \"\"\n    }\n  ],\n  \"agency_data\": {\n    \"complete_address\": {\n      \"formatted_address\": \"\"\n    }\n  },\n  \"office_data\": {\n    \"name\": \"\"\n  }\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/viewings",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"viewings"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Single Tour",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/viewings/669fc6eafa3474d21902185c?expand=assignee_user,account_name,agency_data,account_id,created_by_data",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"viewings",
								"669fc6eafa3474d21902185c"
							],
							"query": [
								{
									"key": "expand",
									"value": "assignee_user,account_name,agency_data,account_id,created_by_data"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "Update Tour Copy",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"_id\": \"669fc6eafa3474d21902185c\",\n  \"agency\": \"64a5475c9aff05c6c904912f\",\n  \"subject\": \"Viewing Kitty van\",\n  \"create_account\": false,\n  \"type\": \"viewing\",\n  \"account_name\": \"Kitty van\",\n  \"account\": \"668936726574b8d562047195\",\n  \"language\": [\"NL\"],\n  \"color\": \"\",\n  \"assignee\": \"64a7ebae97d1da426d07d658\",\n  \"status\": \"Booked\",\n  \"date\": \"2024-10-07\",\n  \"end_date\": \"2024-10-07\",\n  \"start_date\": \"2024-10-07\",\n  \"start_time\": \"2024-07-23T08:00:15.116Z\",\n  \"end_time\": \"2024-07-23T08:00:15.116Z\",\n  \"google_map\": \"\",\n  \"viewing_for\": \"Commercial Properties\",\n  \"notification\": {\n    \"type\": \"email\",\n    \"duration\": \"30\",\n    \"time\": \"minutes\"\n  },\n  \"companies\": \"\",\n  \"company_names\": \"\",\n  \"description\": \"\",\n  \"offices\": [\"64a5475c9aff05c6c9049131\"],\n  \"contacts\": \"\",\n  \"companies_contacts\": \"\",\n  \"list\": [\n    {\n      \"time\": \"2024-07-23T08:00:15.116Z\",\n      \"owner\": \"\",\n      \"lat\": \"\",\n      \"lng\": \"\",\n      \"listing_agency\": \"\",\n      \"non_own\": \"\",\n      \"property\": \"\",\n      \"property_title\": \"\",\n      \"property_reference\": \"\",\n      \"property_agency_reference\": \"\",\n      \"property_external_reference\": \"\",\n      \"property_address\": \"\",\n      \"commercial_name\": \"\",\n      \"listing_agent_name\": \"\",\n      \"project\": \"\",\n      \"project_title\": \"\",\n      \"project_reference\": \"\",\n      \"project_agency_reference\": \"\",\n      \"project_user_reference\": \"\",\n      \"project_address\": \"\",\n      \"commercial_property\": \"\",\n      \"commercial_title\": \"\",\n      \"commercial_reference\": \"\",\n      \"commercial_other_reference\": \"\",\n      \"commercial_external_reference\": \"\",\n      \"commercial_address\": \"\",\n      \"commercial_listing_agency_id\": \"\",\n      \"commercial_listing_agency_mobile\": \"\",\n      \"commercial_listing_agency_email\": \"\",\n      \"commercial_agency_contact_id\": \"\",\n      \"commercial_company_contact_id\": \"\",\n      \"commercial_agency_contact_email\": \"\",\n      \"commercial_agency_contact_mobile\": \"\",\n      \"comment\": \"\",\n      \"mooring_name\": \"\",\n      \"mooring\": \"\",\n      \"mooring_title\": \"\",\n      \"mooring_reference\": \"\",\n      \"mooring_other_reference\": \"\",\n      \"mooring_external_reference\": \"\",\n      \"mooring_address\": \"\",\n      \"boat_name\": \"\",\n      \"boat\": \"\",\n      \"boat_title\": \"\",\n      \"boat_reference\": \"\",\n      \"boat_other_reference\": \"\",\n      \"boat_external_reference\": \"\",\n      \"boat_address\": \"\"\n    }\n  ],\n  \"agency_data\": {\n    \"complete_address\": {\n      \"formatted_address\": \"\"\n    }\n  },\n  \"office_data\": {\n    \"name\": \"\"\n  }\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/viewings/669fc6eafa3474d21902185c",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"viewings",
								"669fc6eafa3474d21902185c"
							]
						}
					},
					"response": []
				},
				{
					"name": "Delete Tour",
					"request": {
						"method": "DELETE",
						"header": [],
						"url": {
							"raw": "https://dev.optima-crm.com/yiiapp/backend/web/viewings/669fc6eafa3474d21902185c?created_by=64a7eaf95ba5f767650c696d",
							"protocol": "https",
							"host": [
								"dev",
								"optima-crm",
								"com"
							],
							"path": [
								"yiiapp",
								"backend",
								"web",
								"viewings",
								"669fc6eafa3474d21902185c"
							],
							"query": [
								{
									"key": "created_by",
									"value": "64a7eaf95ba5f767650c696d"
								}
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "value",
				"value": "{{apiKey}}",
				"type": "string"
			},
			{
				"key": "key",
				"value": "api-key",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "yiiurl",
			"value": "https://dev.optima-crm.com/yiiapp/backend/web/activities/get-meetings?active=true&page=1&expand=agency_users&filter_own=0&per-page=10",
			"type": "string"
		},
		{
			"key": "apiurl",
			"value": "yFlMjSup.IbHOCjyRiTb8QOO9Ltsbr",
			"type": "string"
		}
	]
}