Files
Zumri-Backend/Documentation/api-collection.html
T
Isuru Bimsara 81d0e65686 first commit
2026-08-14 22:46:02 +05:30

25 lines
54 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Oceanic Titan API v1 - API Documentation</title>
<style>
body { margin: 0; padding: 0; }
#opencollection-container { width: 100vw; height: 100vh; }
</style>
<link rel="stylesheet" href="https://cdn.opencollection.com/docs.css">
<script src="https://cdn.opencollection.com/docs.js"></script>
</head>
<body>
<div id="opencollection-container"></div>
<script>
const collectionData = "opencollection: 1.0.0\ninfo:\n name: Oceanic Titan API v1\nitems:\n - info:\n name: Basis Process\n type: folder\n seq: 12\n request:\n auth: inherit\n items:\n - info:\n name: Create New Basis\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/basis\n body:\n type: json\n data: |-\n {\n \"margin\": 25, \n \"USDRate\": 318.69\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Basis\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/basis\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Auth\n type: folder\n seq: 1\n request:\n auth: inherit\n items:\n - info:\n name: Login\n type: http\n seq: 2\n http:\n method: POST\n url: http://localhost:3070/api/auth/login\n body:\n type: json\n data: |-\n {\n \"email\": \"sathira@niolla.lk\", \n \"otp\": \"219104\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Logout\n type: http\n seq: 3\n http:\n method: POST\n url: http://localhost:3070/api/auth/logout\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Me\n type: http\n seq: 4\n http:\n method: GET\n url: http://localhost:3070/api/auth/me\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Request OTP\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/auth/req-otp\n body:\n type: json\n data: |-\n {\n \"email\": \"sathira@niolla.lk\", \n \"password\": \"Niolla@123\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Categories\n type: folder\n seq: 5\n request:\n auth: inherit\n items:\n - info:\n name: Create New Category\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/category\n body:\n type: json\n data: |-\n {\n \"cte_name\": \"Test Category\",\n \"color\": \"#F54927\",\n \"type\": \"Other\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete A Category\n type: http\n seq: 5\n http:\n method: DELETE\n url: http://localhost:3070/api/category/cte_2cae0328-24d2-410b-88e8-1b9f0771c7f3\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get All Categories\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/category\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Category By ID\n type: http\n seq: 3\n http:\n method: GET\n url: http://localhost:3070/api/category/cte_1cb4d835-14dc-4935-a9bf-349b99009b1e\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Category\n type: http\n seq: 4\n http:\n method: PATCH\n url: http://localhost:3070/api/category/cte_2cae0328-24d2-410b-88e8-1b9f0771c7f3\n body:\n type: json\n data: |-\n {\n \"cte_name\": \"Test Category Test\",\n \"color\": \"#F54927\",\n \"type\": \"Other\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Documents\n type: folder\n seq: 13\n request:\n auth: inherit\n items:\n - info:\n name: Pre Cost\n type: folder\n seq: 1\n request:\n auth: inherit\n items:\n - info:\n name: Check Precost Doc Status\n type: http\n seq: 1\n http:\n method: GET\n url: http://localhost:3070/api/document/job/7/status\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Download Precost copy\n type: http\n seq: 1\n http:\n method: GET\n url: http://localhost:3070/api/document/download/precost-1778345812635.pdf\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Precost\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/document/generate\n body:\n type: json\n data: |-\n {\n \"document\": \"precost\", \n \"documentType\": \"pdf\", \n \"documentData\": [\n {\n \"id\": \"pc_da7e962e-6861-423d-b447-2acb8b5f39ec\",\n \"vessel_name\": \"MV Ocean Star\",\n \"date_arrived\": \"2026-04-25\",\n \"date_saild\": \"2026-04-28\",\n \"discount\": 5000,\n \"usd_rate\": 300.50,\n \"total_cost\": 250000,\n \"total_cost_usd\": 832.61,\n \"status\": \"PENDING\",\n \"remark\": \"Initial precost estimation\",\n\n \"items\": [\n {\n \"item_name\": \"Lubricating Oil\",\n \"customer_remark\": \"Urgent delivery\",\n \"quantity\": 100,\n \"unit\": \"Ltr\",\n \"impa\": \"123456\",\n \"vendor_id\": \"vnd_009270f9-e8ef-42d9-a3e4-5398c9466972\",\n \"is_verified_vendor\": true,\n \"unit_price\": 2000,\n \"total_price\": 200000,\n \"basis\": \"FOB\",\n \"unit_rate_usd\": 6.65,\n \"total_price_usd\": 665\n },\n {\n \"item_name\": \"Spare Parts\",\n \"customer_remark\": \"Standard quality\",\n \"quantity\": 10,\n \"unit\": \"PCS\",\n \"impa\": \"654321\",\n \"vendor_id\": \"991ce603-d5fc-42e1-b4c8-06852513fe2d\",\n \"is_verified_vendor\": false,\n \"unit_price\": 3000,\n \"total_price\": 30000,\n \"basis\": \"CIF\",\n \"unit_rate_usd\": 10,\n \"total_price_usd\": 100\n }\n ],\n\n \"additional_charges\": [\n {\n \"charge_name\": \"Port Handling\",\n \"amount\": 10000,\n \"currency\": \"LKR\"\n },\n {\n \"charge_name\": \"Documentation Fee\",\n \"amount\": 50,\n \"currency\": \"USD\"\n }\n ]\n }\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Customer Excel Haddeling\n type: folder\n seq: 11\n request:\n auth: inherit\n items:\n - info:\n name: Download Excel Template\n type: http\n seq: 1\n http:\n method: GET\n url: http://localhost:3070/api/customer-excel/template\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Validate Excel file\n type: http\n seq: 2\n http:\n method: POST\n url: http://localhost:3070/api/customer-excel/validate\n body:\n type: multipart-form\n data:\n - name: file\n type: file\n value:\n - C:\\Users\\User\\Downloads\\1.xlsx\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Inquiry\n type: folder\n seq: 3\n request:\n auth: inherit\n items:\n - info:\n name: Change Inquiry Categories\n type: http\n seq: 6\n http:\n method: PATCH\n url: http://localhost:3070/api/inquiry/inq_2fdc4e0b-f516-42db-8f01-fb276e3bd6ee/categories\n body:\n type: json\n data: |-\n {\n \"categories\": [\n { \"id\": \"cte_ea5d3d01-97b5-499e-a8a5-5a235738a975\", \"name\": \"M Supply\" },\n { \"id\": \"cte_f3ef93d4-9cba-40d3-8e16-a9325fa3a0b0\", \"name\": \"Engine & Electrical Stores\" }\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Change Inquiry Status\n type: http\n seq: 5\n http:\n method: PATCH\n url: http://localhost:3070/api/inquiry/inq_2fdc4e0b-f516-42db-8f01-fb276e3bd6ee/status\n body:\n type: json\n data: |-\n {\n \"status\": \"Completed\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Create New Inquiry\n type: http\n seq: 5\n http:\n method: POST\n url: http://localhost:3070/api/inquiry\n body:\n type: json\n data: |-\n {\n \"vessel_name\": \"MV Ocean Queen\",\n \"agent\": \"Maersk Lanka (Pvt) Ltd\",\n \"eta\": \"2026-02-20\",\n \"port\": \"Colombo\",\n \"received_date\": \"2026-02-15\",\n \"received_time\": \"14:30\",\n \"qout_submission_deadline_date\": \"2026-02-18\",\n \"key_pic_usr_id\": \"usr_z7z34hn4\",\n\n \"categories\": [\n {\n \"id\": \"cte_05daf2fc-20a9-41a3-b030-5a088384d68a\",\n \"name\":\"Provisions (Food & Beverages)\"\n },\n {\n \"id\": \"cte_2c1bc108-920c-43fb-94e2-581145e346cc\",\n \"name\":\"Medicine Supply\"\n }\n ],\n\n \"pics\": [\n {\n \"pic_usr_id\": \"usr_z7z34hn4\",\n \"pic_name\": \"Hemaka\"\n },\n {\n \"pic_usr_id\": \"usr_763107d9-b56f-4b81-9d86-1889f98a6e6c\",\n \"pic_name\": \"Kalana Manupiya\"\n }\n ],\n\n \"customer\": \"ABC Shipping Pvt Ltd\",\n \"customerContact\": \"+94771234567\",\n \"customerEmail\": \"contact@abcshipping.com\",\n \"commissionParty\": \"XYZ Logistics\",\n\n \"status\": \"Pending\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete Inquiry\n type: http\n seq: 7\n http:\n method: DELETE\n url: http://localhost:3070/api/inquiry/inq_2fdc4e0b-f516-42db-8f01-fb276e3bd6ee\n body:\n type: json\n data: ''\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get All Inquiries\n type: http\n seq: 3\n http:\n method: GET\n url: http://localhost:3070/api/inquiry\n body:\n type: json\n data: ''\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Inquiry by ID\n type: http\n seq: 8\n http:\n method: GET\n url: http://localhost:3070/api/inquiry/inq_6f049873-3c52-455a-897f-e3f9c066ff86\n body:\n type: json\n data: ''\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Search Inquiries\n type: http\n seq: 4\n http:\n method: GET\n url: http://localhost:3070/api/inquiry/search?query=colombo&page=1&limit=10\n params:\n - name: query\n value: colombo\n type: query\n - name: page\n value: '1'\n type: query\n - name: limit\n value: '10'\n type: query\n body:\n type: json\n data: ''\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Inquiry\n type: http\n seq: 2\n http:\n method: PUT\n url: http://localhost:3070/api/inquiry/inq_2fdc4e0b-f516-42db-8f01-fb276e3bd6ee\n body:\n type: json\n data: |-\n {\n \"vessel_name\": \"MV Ocean Queen - Greek\",\n \"agent\": \"Maersk Lanka (Pvt) Ltd\",\n \"eta\": \"2026-02-20\",\n \"port\": \"Colombo\",\n \"received_date\": \"2026-02-15\",\n \"received_time\": \"14:30\",\n \"qout_submission_deadline_date\": \"2026-02-18\",\n \"key_pic_usr_id\": \"usr_5ff8afec-5ddc-47d9-a63f-b43df0d8c3b4\",\n\n \"categories\": [\n {\n \"id\": \"cte_226c2d74-a81a-461f-9956-30932728c544\",\n \"name\":\"Medicine Supply\"\n },\n {\n \"id\": \"cte_22ccffa3-f1fa-41ee-aaa9-b9beede7534d\",\n \"name\":\"Cabin & Galley Supplies\"\n }\n ],\n\n \"pics\": [\n {\n \"pic_usr_id\": \"usr_5ff8afec-5ddc-47d9-a63f-b43df0d8c3b4\",\n \"pic_name\": \"Sathira Sri Sathsara\"\n },\n {\n \"pic_usr_id\": \"usr_763107d9-b56f-4b81-9d86-1889f98a6e6c\",\n \"pic_name\": \"Kalana Manupiya\"\n }\n ],\n\n \"customer\": \"ABC Shipping Pvt Ltd\",\n \"customerContact\": \"+94771234567\",\n \"customerEmail\": \"contact@abcshipping.com\",\n \"commissionParty\": \"XYZ Logistics\",\n\n \"status\": \"Pending\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Dashboard\n type: folder\n seq: 15\n request:\n auth: inherit\n items:\n - info:\n name: Get Dashboard data\n type: http\n seq: 1\n http:\n method: GET\n url: http://localhost:3070/api/dashboard\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Inquiry Remarks\n type: folder\n seq: 6\n request:\n auth: inherit\n items:\n - info:\n name: Add New Inquiry Remark\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/inquiry-remarks\n body:\n type: json\n data: |-\n {\n \"inq_id\": \"inq_3d849c06-bef6-4c4e-9a20-128f2373e227\", \n \"remark\": \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete Inquiry Remarks by remark ID\n type: http\n seq: 4\n http:\n method: DELETE\n url: http://localhost:3070/api/inquiry-remarks/rmk_37b42460-ff3b-4ef1-b28a-dba527c3ccaa\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Inquiry Remarks by Inq ID\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/inquiry-remarks/inq_3d849c06-bef6-4c4e-9a20-128f2373e227\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Inquiry Remarks by remark ID\n type: http\n seq: 3\n http:\n method: PUT\n url: http://localhost:3070/api/inquiry-remarks/rmk_37b42460-ff3b-4ef1-b28a-dba527c3ccaa\n body:\n type: json\n data: |-\n {\n \"remark\": \"Lorem Ipsum is simply dummy text.\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Permission\n type: folder\n seq: 16\n request:\n auth: inherit\n items:\n - info:\n name: Create New Permission\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/permission\n body:\n type: json\n data: |-\n {\n \"permissionName\": \"PERM\", \n \"permissionDescription\": \"TEXT\", \n \"page\": \"precost\", \n \"module\": \"precost\", \n \"action\": \"create\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Create New User Roles\n type: http\n seq: 3\n http:\n method: POST\n url: http://localhost:3070/api/permission/roles\n body:\n type: json\n data: |-\n {\n \"roleName\": \"System Developer\", \n \"roleDescription\": \"Niolla team system developer\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Create User Permission\n type: http\n seq: 2\n http:\n method: POST\n url: http://localhost:3070/api/permission/users/permissions/bulk\n body:\n type: json\n data: |-\n {\n \"user_id\": \"usr_yby503wg\", \n \"permission_ids\": [\n \"precost.precost.create\"\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Create User Role permissions\n type: http\n seq: 4\n http:\n method: POST\n url: http://localhost:3070/api/permission/roles/permissions/bulk\n body:\n type: json\n data: |-\n {\n \"role_id\": \"role_1778868989876\", \n \"permission_ids\": [\n \"precost.precost.create\"\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Pre Cost Confirm\n type: folder\n seq: 15\n request:\n auth: inherit\n items:\n - info:\n name: Delete Confirmed Order\n type: http\n seq: 6\n http:\n method: DELETE\n url: http://localhost:3070/api/precost/confirmed/cdb44953-e896-4e7d-b4d3-e8c0443d1297\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Download Excel template\n type: http\n seq: 1\n http:\n method: GET\n url: http://localhost:3070/api/precost/template/pc_55007039-9809-4864-b719-de966afff303\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get All Confirmed Orders\n type: http\n seq: 3\n http:\n method: GET\n url: http://localhost:3070/api/precost/confirmed\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get one Confirmed Order by ID\n type: http\n seq: 4\n http:\n method: GET\n url: http://localhost:3070/api/precost/confirmed/a6c846ee-3c29-41d2-9e25-d7654043df2f\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Confirmed Order status\n type: http\n seq: 5\n http:\n method: PATCH\n url: http://localhost:3070/api/precost/confirmed/cdb44953-e896-4e7d-b4d3-e8c0443d1297/status\n body:\n type: json\n data: |-\n {\n \"gm_status\": \"approved\", \n \"document_status\": \"approved\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Upload Confirmed Order\n type: http\n seq: 2\n http:\n method: POST\n url: http://localhost:3070/api/precost/confirm/pc_55007039-9809-4864-b719-de966afff303\n body:\n type: multipart-form\n data:\n - name: file\n type: file\n value:\n - C:\\Users\\User\\Downloads\\confirm_order_pc_4a043ca8-08be-4741-b47d-241c57512e01.xlsx\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: PIC Todos\n type: folder\n seq: 7\n request:\n auth: inherit\n items:\n - info:\n name: Create New PIC Todo\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/pic-todo\n body:\n type: json\n data: |-\n {\n \"pic_id\": \"usr_5ff8afec-5ddc-47d9-a63f-b43df0d8c3b4\" , \n \"inq_id\": \"inq_3d849c06-bef6-4c4e-9a20-128f2373e227\" , \n \"todo_description\": \"Get Todays market prices for banana\" , \n \"due_date\": \"2026-04-01\" , \n \"due_time\": \"12:15:12\" , \n \"remarks\": \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\" \n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete PIC Todo\n type: http\n seq: 6\n http:\n method: DELETE\n url: http://localhost:3070/api/pic-todo/tdo_077c34c2-94cb-4039-a73d-85fd3b67f6be\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Inquiry Todos By Inquiry ID\n type: http\n seq: 3\n http:\n method: GET\n url: http://localhost:3070/api/pic-todo/inquiry/inq_3d849c06-bef6-4c4e-9a20-128f2373e227\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Inquiry Todos By PIC ID\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/pic-todo/pic/usr_5ff8afec-5ddc-47d9-a63f-b43df0d8c3b4/\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update PIC Todo Status\n type: http\n seq: 4\n http:\n method: PATCH\n url: http://localhost:3070/api/pic-todo/tdo_077c34c2-94cb-4039-a73d-85fd3b67f6be/status\n body:\n type: json\n data: |-\n {\n \"status\": \"completed\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update PIC Todo\n type: http\n seq: 5\n http:\n method: PUT\n url: http://localhost:3070/api/pic-todo/tdo_077c34c2-94cb-4039-a73d-85fd3b67f6be\n body:\n type: json\n data: |-\n {\n \"todo_description\": \"Get Todays market prices for banana sss\" , \n \"due_date\": \"2026-04-01\" , \n \"due_time\": \"12:15:12\" , \n \"remarks\": \"Lorem Ipsum is simply dummy text.\" \n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Pre Cost\n type: folder\n seq: 14\n request:\n auth: inherit\n items:\n - info:\n name: Create Draft Pre Cost\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/precost/draft\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Create New Pre Cost\n type: http\n seq: 3\n http:\n method: POST\n url: http://localhost:3070/api/precost\n body:\n type: json\n data: |-\n {\n \"id\": \"pc_55007039-9809-4864-b719-de966afff303\",\n \"vessel_name\": \"MV Ocean Star\",\n \"date_arrived\": \"2026-04-25\",\n \"date_saild\": \"2026-04-28\",\n \"discount\": 5000,\n \"usd_rate\": 300.50,\n \"total_cost\": 250000,\n \"total_cost_usd\": 832.61,\n \"status\": \"PENDING\",\n \"remark\": \"Initial precost estimation\",\n\n \"items\": [\n {\n \"item_name\": \"Lubricating Oil\",\n \"customer_remark\": \"Urgent delivery\",\n \"quantity\": 100,\n \"unit\": \"Ltr\",\n \"impa\": \"123456\",\n \"vendor_id\": \"vnd_009270f9-e8ef-42d9-a3e4-5398c9466972\",\n \"oms_remark\": \"SAMPLE_TEXT\",\n \"is_verified_vendor\": true,\n \"unit_price\": 2000,\n \"additional_charges\": 10,\n \"total_price\": 200000,\n \"basis\": 0.00431034,\n \"unit_rate_usd\": 6.65,\n \"total_price_usd\": 665\n },\n {\n \"item_name\": \"Spare Parts\",\n \"customer_remark\": \"Standard quality\",\n \"quantity\": 10,\n \"unit\": \"PCS\",\n \"impa\": \"654321\",\n \"vendor_id\": \"b01e5c8a-d735-4a81-8543-4f542b5c64d2\",\n \"oms_remark\": \"SAMPLE_TEXT\",\n \"is_verified_vendor\": false,\n \"unit_price\": 3000,\n \"additional_charges\": 10,\n \"total_price\": 30000,\n \"basis\": 0.00431034,\n \"unit_rate_usd\": 10,\n \"total_price_usd\": 100\n }\n ],\n\n \"additional_charges\": [\n {\n \"charge_name\": \"Port Handling\",\n \"amount\": 10000,\n \"currency\": \"LKR\"\n },\n {\n \"charge_name\": \"Documentation Fee\",\n \"amount\": 50,\n \"currency\": \"USD\"\n }\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Create Tempory Vendor\n type: http\n seq: 2\n http:\n method: POST\n url: http://localhost:3070/api/precost/pc_b9c72fce-f66a-4619-a426-1424a0690072/temp-vendors\n body:\n type: json\n data: |-\n {\n \"vendor_name\": \"Tilina-3\",\n \"contact_person\": \"Tilina\",\n \"email\": \"thilina2004@gmail.com\",\n \"phone\": \"0763498564\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete Pre Cost\n type: http\n seq: 8\n http:\n method: DELETE\n url: http://localhost:3070/api/precost/pc_da7e962e-6861-423d-b447-2acb8b5f39ec\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete vendor\n type: http\n seq: 11\n http:\n method: DELETE\n url: http://localhost:3070/api/precost/temp-vendors/cbfe25d1-d0d2-490b-933b-d4fa1bf92f6a\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get all Pre Costs\n type: http\n seq: 4\n http:\n method: GET\n url: http://localhost:3070/api/precost\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Pre Cost by ID\n type: http\n seq: 5\n http:\n method: GET\n url: http://localhost:3070/api/precost/pc_55007039-9809-4864-b719-de966afff303\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Tempory vendors for pre cost\n type: http\n seq: 9\n http:\n method: GET\n url: http://localhost:3070/api/precost/pc_8cbee5a4-0da1-4808-916b-54e0ff9ed608/temp-vendors\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Payment\n type: http\n seq: 12\n http:\n method: POST\n url: http://localhost:3070/api/precost/payment\n body:\n type: json\n data: |-\n {\n \"preCostId\": \"pc_7e75e720-ebfa-470d-9973-22bc31610349\", \n \"payment_method\": \"Bank Transfer\", \n \"remarks\": \"TEST REMARK\", \n \"is_credit\": true, \n \"currency\": \"USD\",\n \"duration\": \"30 Days\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Pre Cost Status\n type: http\n seq: 7\n http:\n method: PATCH\n url: http://localhost:3070/api/precost/pc_da7e962e-6861-423d-b447-2acb8b5f39ec/status\n body:\n type: json\n data: |-\n {\n \"status\": \"COMPLETED\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Pre Cost\n type: http\n seq: 6\n http:\n method: PUT\n url: http://localhost:3070/api/precost/pc_da7e962e-6861-423d-b447-2acb8b5f39ec\n body:\n type: json\n data: |-\n {\n \"vessel_name\": \"MV Ocean Star - Updated 2\",\n \"date_arrived\": \"2026-04-25\",\n \"date_saild\": \"2026-04-28\",\n \"discount\": 5000,\n \"usd_rate\": 300.50,\n \"total_cost\": 250000,\n \"total_cost_usd\": 832.61,\n \"status\": \"PENDING\",\n \"remark\": \"Initial precost estimation\",\n\n \"items\": [\n {\n \"item_name\": \"Lubricating Oil\",\n \"customer_remark\": \"Urgent delivery - Updated\",\n \"quantity\": 100,\n \"unit\": \"Ltr\",\n \"impa\": \"123456\",\n \"vendor_id\": \"vnd_009270f9-e8ef-42d9-a3e4-5398c9466972\",\n \"is_verified_vendor\": true,\n \"unit_price\": 2000,\n \"total_price\": 200000,\n \"basis\": \"FOB\",\n \"unit_rate_usd\": 6.65,\n \"total_price_usd\": 665\n },\n {\n \"item_name\": \"Spare Parts\",\n \"customer_remark\": \"Standard quality - Updated\",\n \"quantity\": 10,\n \"unit\": \"PCS\",\n \"impa\": \"654321\",\n \"vendor_id\": \"991ce603-d5fc-42e1-b4c8-06852513fe2d\",\n \"is_verified_vendor\": false,\n \"unit_price\": 3000,\n \"total_price\": 30000,\n \"basis\": \"CIF\",\n \"unit_rate_usd\": 10,\n \"total_price_usd\": 100\n }\n ],\n\n \"additional_charges\": [\n {\n \"charge_name\": \"Port Handling\",\n \"amount\": 10000,\n \"currency\": \"LKR\"\n },\n {\n \"charge_name\": \"Documentation Fee\",\n \"amount\": 50,\n \"currency\": \"USD\"\n }\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: UpdateTempory vendor status\n type: http\n seq: 10\n http:\n method: PATCH\n url: http://localhost:3070/api/precost/temp-vendors/0b2f2d09-8c7f-4716-a7f5-fe4c3f267bb8/approval\n body:\n type: json\n data: |-\n {\n \"is_approved\": true\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Upload\n type: folder\n seq: 10\n request:\n auth: inherit\n items:\n - info:\n name: Get Uploaded File\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/upload/signed-url/3\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Upload File\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/upload\n body:\n type: multipart-form\n data:\n - name: file\n type: file\n value:\n - C:\\Users\\User\\Downloads\\SamplePDF.pdf\n - name: use_for\n type: text\n value: vendor_documents\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: User\n type: folder\n seq: 4\n request:\n auth: inherit\n items:\n - info:\n name: Create New User\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/user\n body:\n type: json\n data: |-\n {\n \"firstName\": \"Team\", \n \"lastName\": \"Niolla\", \n \"email\": \"team@niolla.lk\", \n \"role\": \"System Developer\", \n \"accountType\": \"user\", \n \"department\": \"IT Department\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete User\n type: http\n seq: 4\n http:\n method: DELETE\n url: http://localhost:3070/api/user/usr_b00045f7-aafb-482a-8587-d28beb5195ec\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: GET All Users\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/user\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update User\n type: http\n seq: 3\n http:\n method: PATCH\n url: http://localhost:3070/api/user/usr_5ff8afec-5ddc-47d9-a63f-b43df0d8c3b4\n body:\n type: json\n data: |-\n {\n \"firstName\": \"Sathira\", \n \"lastName\": \"Sri Sathsara\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: User Activity\n type: folder\n seq: 9\n request:\n auth: inherit\n items:\n - info:\n name: Get All Users Activies\n type: http\n seq: 1\n http:\n method: GET\n url: http://localhost:3070/api/activity\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get User Activies by User ID\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/activity/user/usr_5ff8afec-5ddc-47d9-a63f-b43df0d8c3b4\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: vendor\n type: folder\n seq: 8\n request:\n auth: inherit\n items:\n - info:\n name: Create New Vendor\n type: http\n seq: 1\n http:\n method: POST\n url: http://localhost:3070/api/vendor\n body:\n type: json\n data: |-\n {\n \"name\": \"ABC Marine Services\",\n \"email\": \"contact@abcmarine.com\",\n \"contact_number\": \"+94771234567\",\n \"address\": \"Colombo Port, Sri Lanka\",\n \"company_type\": \"Food Supplier\",\n \"remark\": \"TEST REMARK\",\n\n \"categories\": [\n {\n \"id\": \"cte_5be45e06-9999-4f7e-9dcc-f9786692cc8b\",\n \"name\": \"Medicine Supply\"\n },\n {\n \"id\": \"cte_5e5a0f0a-c23a-4402-a22e-72db86818133\",\n \"name\": \"Cabin & Galley Supplies\"\n }\n ],\n\n \"pic\": [\n {\n \"firstName\": \"John\",\n \"lastName\": \"Fernando\",\n \"email\": \"john.fernando@abcmarine.com\",\n \"picType\": \"Manager\",\n \"remark\": \"Primary point of contact\",\n \"phone_number\": \"+94770001122\"\n },\n {\n \"firstName\": \"Nimal\",\n \"lastName\": \"Perera\",\n \"email\": \"nimal.perera@abcmarine.com\",\n \"picType\": \"Operations\",\n \"remark\": \"Handles logistics coordination\",\n \"phone_number\": \"+94771112233\"\n }\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Create vendor document\n type: http\n seq: 11\n http:\n method: POST\n url: http://localhost:3070/api/vendor/documents\n body:\n type: json\n data: |-\n {\n \"vendor_id\": \"vnd_009270f9-e8ef-42d9-a3e4-5398c9466972\",\n \"upload_doc_id\": \"2\",\n \"document_type\": \"vendor_registration_form\",\n \"document_expiry_date\": \"2026-05-26\",\n \"remarks\": \"TEST REMARKS\"\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Delete Vendor by ID\n type: http\n seq: 5\n http:\n method: DELETE\n url: http://localhost:3070/api/vendor/vnd_0caf24a5-22a1-4420-b086-db34344f867e\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get All vendor documents\n type: http\n seq: 12\n http:\n method: GET\n url: http://localhost:3070/api/vendor/documents\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get All Vendors\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/vendor\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get single vendor document data\n type: http\n seq: 13\n http:\n method: GET\n url: http://localhost:3070/api/vendor/documents/vdoc_6637bec1-7a48-4afb-a349-6f421661cc9d\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Vendor by ID\n type: http\n seq: 3\n http:\n method: GET\n url: http://localhost:3070/api/vendor/vnd_0caf24a5-22a1-4420-b086-db34344f867e\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Vendor Categories for spesific vendor\n type: http\n seq: 9\n http:\n method: GET\n url: http://localhost:3070/api/vendor/vnd_0caf24a5-22a1-4420-b086-db34344f867e/categories\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Vendor PIC's\n type: http\n seq: 8\n http:\n method: GET\n url: http://localhost:3070/api/vendor/vnd_0caf24a5-22a1-4420-b086-db34344f867e/pics\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Vendor status\n type: http\n seq: 7\n http:\n method: GET\n url: http://localhost:3070/api/vendor/vnd_0caf24a5-22a1-4420-b086-db34344f867e/status\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get vendors for categories\n type: http\n seq: 10\n http:\n method: GET\n url: http://localhost:3070/api/vendor/category/cte_5be45e06-9999-4f7e-9dcc-f9786692cc8b\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Vendor status\n type: http\n seq: 6\n http:\n method: PATCH\n url: http://localhost:3070/api/vendor/vnd_0caf24a5-22a1-4420-b086-db34344f867e/status\n body:\n type: json\n data: |-\n {\n \"is_md_approved\": false\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Update Vendor\n type: http\n seq: 4\n http:\n method: PUT\n url: http://localhost:3070/api/vendor/vnd_0caf24a5-22a1-4420-b086-db34344f867e\n body:\n type: json\n data: |-\n {\n \"name\": \"ABC Marine Services - Sri Lanka\",\n \"email\": \"contact@abcmarine.com\",\n \"contact_number\": \"+94771234567\",\n \"address\": \"Colombo Port, Sri Lanka\",\n \"company_type\": \"Food Supplier\",\n \"remark\": \"TEST REMARK\",\n\n \"categories\": [\n {\n \"id\": \"cte_5be45e06-9999-4f7e-9dcc-f9786692cc8b\",\n \"name\": \"Medicine Supply\"\n },\n {\n \"id\": \"cte_5e5a0f0a-c23a-4402-a22e-72db86818133\",\n \"name\": \"Cabin & Galley Supplies\"\n }\n ],\n\n \"pic\": [\n {\n \"firstName\": \"John\",\n \"lastName\": \"Fernando\",\n \"email\": \"john.fernando@abcmarine.com\",\n \"picType\": \"Manager\",\n \"remark\": \"Primary point of contact\",\n \"phone_number\": \"+94770001122\"\n },\n {\n \"firstName\": \"Nimal\",\n \"lastName\": \"Perera\",\n \"email\": \"nimal.perera@abcmarine.com\",\n \"picType\": \"Operations\",\n \"remark\": \"Handles logistics coordination\",\n \"phone_number\": \"+94771112233\"\n }\n ]\n }\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Pre Cost Vendors\n type: folder\n seq: 17\n request:\n auth: inherit\n items:\n - info:\n name: Get Vendors for precost\n type: http\n seq: 1\n http:\n method: GET\n url: http://localhost:3070/api/precost-vendor/pc_55007039-9809-4864-b719-de966afff303/vendors\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\n - info:\n name: Get Vendor Items for precost\n type: http\n seq: 2\n http:\n method: GET\n url: http://localhost:3070/api/precost-vendor/pc_55007039-9809-4864-b719-de966afff303/vendor/vnd_009270f9-e8ef-42d9-a3e4-5398c9466972/items\n auth: inherit\n settings:\n encodeUrl: true\n timeout: 0\n followRedirects: true\n maxRedirects: 5\nbundled: true\nextensions:\n bruno:\n ignore:\n - node_modules\n - .git\n exportedAt: '2026-05-21T03:03:01.467Z'\n exportedUsing: Bruno/3.0.2\n";
new window.OpenCollection({
target: document.getElementById('opencollection-container'),
opencollection: collectionData,
theme: 'light'
});
</script>
</body>
</html>