{ "info": { "name": "Creamy Utopia API", "description": "Ice Cream Shop POS & Management System API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "v1", "item": [ { "name": "auth", "item": [ { "name": "register", "item": [ { "name": "[POST] api/v1/auth/register", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/auth/register", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "auth", "register" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"email\": \"test@example.com\",\n \"password\": \"password123\",\n \"branch_id\": 7,\n \"role\": \"sample_text\"\n}", "options": [] } } } ] }, { "name": "login", "item": [ { "name": "[POST] api/v1/auth/login", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/auth/login", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "auth", "login" ] }, "body": { "mode": "raw", "raw": "{\n \"email\": \"test@example.com\",\n \"password\": \"password123\"\n}", "options": [] } } } ] }, { "name": "logout", "item": [ { "name": "[POST] api/v1/auth/logout", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/auth/logout", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "auth", "logout" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "user", "item": [ { "name": "[GET] api/v1/auth/user", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/auth/user", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "auth", "user" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "refresh-token", "item": [ { "name": "[POST] api/v1/auth/refresh-token", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/auth/refresh-token", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "auth", "refresh-token" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] }, { "name": "branches", "item": [ { "name": "[GET] api/v1/branches", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[POST] api/v1/branches", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches" ] }, "body": { "mode": "raw", "raw": "{\n \"parent_id\": 9,\n \"name\": \"Test User\",\n \"code\": \"sample_text\",\n \"address\": \"sample_text\",\n \"phone\": \"sample_text\",\n \"email\": \"test@example.com\",\n \"is_active\": 1,\n \"settings\": {\n \"stock_restriction_enabled\": 0\n }\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/branches/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/branches/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"parent_id\": 4,\n \"name\": \"Test User\",\n \"code\": \"sample_text\",\n \"address\": \"sample_text\",\n \"phone\": \"sample_text\",\n \"email\": \"test@example.com\",\n \"is_active\": 0,\n \"settings\": {\n \"stock_restriction_enabled\": 1\n }\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/branches/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "settings", "item": [ { "name": "[PUT] api/v1/branches/{id}/settings", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{id}/settings", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{id}", "settings" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "products", "item": [ { "name": "[GET] api/v1/branches/{branchId}/products", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/products", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "products" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[POST] api/v1/branches/{branchId}/products/{productId}", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/products/{productId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "products", "{productId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/branches/{branchId}/products/{productId}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/products/{productId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "products", "{productId}" ] }, "body": { "mode": "raw", "raw": "{\n \"is_available\": 0,\n \"custom_price\": 25\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "bulk-assign", "item": [ { "name": "[POST] api/v1/branches/{branchId}/products/bulk-assign", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/products/bulk-assign", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "products", "bulk-assign" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] }, { "name": "inventory", "item": [ { "name": "stock", "item": [ { "name": "[GET] api/v1/branches/{branchId}/inventory/stock", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/stock", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "stock" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/branches/{branchId}/inventory/stock/{ingredientId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/stock/{ingredientId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "stock", "{ingredientId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "low-stock", "item": [ { "name": "[GET] api/v1/branches/{branchId}/inventory/low-stock", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/low-stock", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "low-stock" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "out-of-stock", "item": [ { "name": "[GET] api/v1/branches/{branchId}/inventory/out-of-stock", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/out-of-stock", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "out-of-stock" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "add-stock", "item": [ { "name": "[POST] api/v1/branches/{branchId}/inventory/add-stock", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/add-stock", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "add-stock" ] }, "body": { "mode": "raw", "raw": "{\n \"ingredient_id\": \"sample_text\",\n \"quantity\": 49,\n \"unit_cost\": 18,\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "deduct-stock", "item": [ { "name": "[POST] api/v1/branches/{branchId}/inventory/deduct-stock", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/deduct-stock", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "deduct-stock" ] }, "body": { "mode": "raw", "raw": "{\n \"ingredient_id\": \"sample_text\",\n \"quantity\": 7,\n \"unit_cost\": 57,\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "adjust-stock", "item": [ { "name": "[POST] api/v1/branches/{branchId}/inventory/adjust-stock", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/adjust-stock", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "adjust-stock" ] }, "body": { "mode": "raw", "raw": "{\n \"ingredient_id\": \"sample_text\",\n \"new_quantity\": 12,\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "record-waste", "item": [ { "name": "[POST] api/v1/branches/{branchId}/inventory/record-waste", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/record-waste", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "record-waste" ] }, "body": { "mode": "raw", "raw": "{\n \"ingredient_id\": \"sample_text\",\n \"quantity\": 17,\n \"unit_cost\": 60,\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "transactions", "item": [ { "name": "[GET] api/v1/branches/{branchId}/inventory/transactions", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/transactions", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "transactions" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "ingredient", "item": [ { "name": "[GET] api/v1/branches/{branchId}/inventory/transactions/ingredient/{ingredientId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/transactions/ingredient/{ingredientId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "transactions", "ingredient", "{ingredientId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "date-range", "item": [ { "name": "[GET] api/v1/branches/{branchId}/inventory/transactions/date-range", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/transactions/date-range", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "transactions", "date-range" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] }, { "name": "alerts", "item": [ { "name": "[GET] api/v1/branches/{branchId}/inventory/alerts", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/alerts", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "alerts" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "resolve", "item": [ { "name": "[POST] api/v1/branches/{branchId}/inventory/alerts/{alertId}/resolve", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/inventory/alerts/{alertId}/resolve", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "inventory", "alerts", "{alertId}", "resolve" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] } ] }, { "name": "cash-register", "item": [ { "name": "open", "item": [ { "name": "[POST] api/v1/branches/{branchId}/cash-register/open", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/cash-register/open", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "cash-register", "open" ] }, "body": { "mode": "raw", "raw": "{\n \"opening_balance\": 21,\n \"date\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "current", "item": [ { "name": "[GET] api/v1/branches/{branchId}/cash-register/current", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/branches/{branchId}/cash-register/current", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "branches", "{branchId}", "cash-register", "current" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] } ] }, { "name": "roles", "item": [ { "name": "[GET] api/v1/roles", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/roles", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "roles" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[POST] api/v1/roles", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/roles", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "roles" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"permissions\": [\n []\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/roles/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/roles/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "roles", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/roles/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/roles/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "roles", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"permissions\": [\n []\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/roles/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/roles/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "roles", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "permissions", "item": [ { "name": "[POST] api/v1/roles/{id}/permissions", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/roles/{id}/permissions", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "roles", "{id}", "permissions" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/roles/{id}/permissions", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/roles/{id}/permissions", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "roles", "{id}", "permissions" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "permissions", "item": [ { "name": "[GET] api/v1/permissions", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/permissions", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "permissions" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "by-module", "item": [ { "name": "[GET] api/v1/permissions/by-module", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/permissions/by-module", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "permissions", "by-module" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] }, { "name": "users", "item": [ { "name": "[GET] api/v1/users", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/users", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "users" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/users/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/users/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "users", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "assign-role", "item": [ { "name": "[POST] api/v1/users/{id}/assign-role", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/users/{id}/assign-role", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "users", "{id}", "assign-role" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "revoke-role", "item": [ { "name": "[POST] api/v1/users/{id}/revoke-role", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/users/{id}/revoke-role", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "users", "{id}", "revoke-role" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "permissions", "item": [ { "name": "[GET] api/v1/users/{id}/permissions", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/users/{id}/permissions", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "users", "{id}", "permissions" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "categories", "item": [ { "name": "[GET] api/v1/categories", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "active", "item": [ { "name": "[GET] api/v1/categories/active", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories/active", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories", "active" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "with-products", "item": [ { "name": "[GET] api/v1/categories/with-products", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories/with-products", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories", "with-products" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/categories", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"slug\": \"sample_text\",\n \"description\": \"sample_text\",\n \"image\": \"sample_text\",\n \"is_active\": 1,\n \"sort_order\": 4\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/categories/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/categories/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"slug\": \"sample_text\",\n \"description\": \"sample_text\",\n \"image\": \"sample_text\",\n \"is_active\": 0,\n \"sort_order\": 3\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/categories/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "restore", "item": [ { "name": "[POST] api/v1/categories/{id}/restore", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/categories/{id}/restore", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "categories", "{id}", "restore" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "products", "item": [ { "name": "[GET] api/v1/products", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/products", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "products" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "active", "item": [ { "name": "[GET] api/v1/products/active", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/products/active", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "products", "active" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "category", "item": [ { "name": "[GET] api/v1/products/category/{categoryId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/products/category/{categoryId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "products", "category", "{categoryId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/products", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/products", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "products" ] }, "body": { "mode": "raw", "raw": "{\n \"category_id\": \"sample_text\",\n \"name\": \"Test User\",\n \"slug\": \"sample_text\",\n \"description\": \"sample_text\",\n \"base_price\": 36,\n \"image\": \"sample_text\",\n \"max_scoops\": 2,\n \"is_active\": 1,\n \"option_set_ids\": [\n []\n ],\n \"inner_option_set_ids\": [\n []\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/products/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/products/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "products", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/products/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/products/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "products", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"category_id\": \"sample_text\",\n \"name\": \"Test User\",\n \"slug\": \"sample_text\",\n \"description\": \"sample_text\",\n \"base_price\": 54,\n \"image\": \"sample_text\",\n \"max_scoops\": 9,\n \"is_active\": 1,\n \"option_set_ids\": [\n []\n ],\n \"inner_option_set_ids\": [\n []\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/products/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/products/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "products", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "option-sets", "item": [ { "name": "[GET] api/v1/option-sets", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "active", "item": [ { "name": "[GET] api/v1/option-sets/active", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/active", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "active" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "type", "item": [ { "name": "[GET] api/v1/option-sets/type/{type}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/type/{type}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "type", "{type}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/option-sets", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"type\": \"sample_text\",\n \"is_required\": 0,\n \"min_select\": 2,\n \"max_select\": 10,\n \"is_active\": 1,\n \"items\": [\n {\n \"name\": \"sample_text\",\n \"price_modifier\": 93,\n \"is_default\": 1,\n \"sort_order\": 5,\n \"is_active\": 0\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/option-sets/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/option-sets/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"type\": \"sample_text\",\n \"is_required\": 1,\n \"min_select\": 0,\n \"max_select\": 7,\n \"is_active\": 0\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/option-sets/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "items", "item": [ { "name": "[GET] api/v1/option-sets/{optionSetId}/items", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/{optionSetId}/items", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "{optionSetId}", "items" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[POST] api/v1/option-sets/{optionSetId}/items", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/{optionSetId}/items", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "{optionSetId}", "items" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"price_modifier\": 64,\n \"is_default\": 1,\n \"sort_order\": 1,\n \"is_active\": 0\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/option-sets/{optionSetId}/items/{itemId}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/{optionSetId}/items/{itemId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "{optionSetId}", "items", "{itemId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/option-sets/{optionSetId}/items/{itemId}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/option-sets/{optionSetId}/items/{itemId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "option-sets", "{optionSetId}", "items", "{itemId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "inner-option-sets", "item": [ { "name": "[GET] api/v1/inner-option-sets", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "active", "item": [ { "name": "[GET] api/v1/inner-option-sets/active", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/active", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "active" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "type", "item": [ { "name": "[GET] api/v1/inner-option-sets/type/{type}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/type/{type}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "type", "{type}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/inner-option-sets", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"type\": \"sample_text\",\n \"is_active\": 0,\n \"items\": [\n {\n \"name\": \"sample_text\",\n \"price\": 41,\n \"sort_order\": 7,\n \"is_active\": 0\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/inner-option-sets/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/inner-option-sets/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"type\": \"sample_text\",\n \"is_active\": 0\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/inner-option-sets/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "items", "item": [ { "name": "[GET] api/v1/inner-option-sets/{innerOptionSetId}/items", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/{innerOptionSetId}/items", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "{innerOptionSetId}", "items" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[POST] api/v1/inner-option-sets/{innerOptionSetId}/items", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/{innerOptionSetId}/items", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "{innerOptionSetId}", "items" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"price\": 80,\n \"sort_order\": 5,\n \"is_active\": 1\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/inner-option-sets/{innerOptionSetId}/items/{itemId}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/{innerOptionSetId}/items/{itemId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "{innerOptionSetId}", "items", "{itemId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/inner-option-sets/{innerOptionSetId}/items/{itemId}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/inner-option-sets/{innerOptionSetId}/items/{itemId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "inner-option-sets", "{innerOptionSetId}", "items", "{itemId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "ingredients", "item": [ { "name": "[GET] api/v1/ingredients", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "active", "item": [ { "name": "[GET] api/v1/ingredients/active", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients/active", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients", "active" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "search", "item": [ { "name": "[GET] api/v1/ingredients/search", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients/search", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients", "search" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "low-stock", "item": [ { "name": "[GET] api/v1/ingredients/low-stock", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients/low-stock", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients", "low-stock" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/ingredients", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"sku\": \"sample_text\",\n \"unit\": \"sample_text\",\n \"cost_per_unit\": 58,\n \"minimum_stock\": 0,\n \"reorder_level\": 34,\n \"is_active\": 0\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/ingredients/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/ingredients/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"sku\": \"sample_text\",\n \"unit\": \"sample_text\",\n \"cost_per_unit\": 48,\n \"minimum_stock\": 33,\n \"reorder_level\": 49,\n \"is_active\": 0\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/ingredients/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/ingredients/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "ingredients", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "recipes", "item": [ { "name": "[GET] api/v1/recipes", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "active", "item": [ { "name": "[GET] api/v1/recipes/active", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes/active", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes", "active" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "product", "item": [ { "name": "[GET] api/v1/recipes/product/{productId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes/product/{productId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes", "product", "{productId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/recipes", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes" ] }, "body": { "mode": "raw", "raw": "{\n \"product_id\": \"sample_text\",\n \"name\": \"Test User\",\n \"description\": \"sample_text\",\n \"instructions\": \"sample_text\",\n \"yield_quantity\": 8,\n \"is_active\": 1,\n \"ingredients\": [\n {\n \"ingredient_id\": \"sample_text\",\n \"quantity\": 86,\n \"unit\": \"sample_text\",\n \"notes\": \"sample_text\"\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/recipes/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/recipes/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"product_id\": \"sample_text\",\n \"name\": \"Test User\",\n \"description\": \"sample_text\",\n \"instructions\": \"sample_text\",\n \"yield_quantity\": 10,\n \"is_active\": 0,\n \"ingredients\": [\n {\n \"ingredient_id\": \"sample_text\",\n \"quantity\": 58,\n \"unit\": \"sample_text\",\n \"notes\": \"sample_text\"\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/recipes/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "cost", "item": [ { "name": "[GET] api/v1/recipes/{id}/cost", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/recipes/{id}/cost", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "recipes", "{id}", "cost" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "scoop-yields", "item": [ { "name": "[GET] api/v1/scoop-yields", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/scoop-yields", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "scoop-yields" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "ingredient", "item": [ { "name": "[GET] api/v1/scoop-yields/ingredient/{ingredientId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/scoop-yields/ingredient/{ingredientId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "scoop-yields", "ingredient", "{ingredientId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/scoop-yields", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/scoop-yields", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "scoop-yields" ] }, "body": { "mode": "raw", "raw": "{\n \"ingredient_id\": \"sample_text\",\n \"option_set_item_id\": \"sample_text\",\n \"yield_per_scoop\": 11,\n \"unit\": \"sample_text\",\n \"is_active\": 1\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/scoop-yields/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/scoop-yields/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "scoop-yields", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"ingredient_id\": \"sample_text\",\n \"option_set_item_id\": \"sample_text\",\n \"yield_per_scoop\": 92,\n \"unit\": \"sample_text\",\n \"is_active\": 0\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/scoop-yields/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/scoop-yields/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "scoop-yields", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "calculate-usage", "item": [ { "name": "[POST] api/v1/scoop-yields/calculate-usage", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/scoop-yields/calculate-usage", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "scoop-yields", "calculate-usage" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] }, { "name": "purchase-orders", "item": [ { "name": "[GET] api/v1/purchase-orders", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "branch", "item": [ { "name": "[GET] api/v1/purchase-orders/branch/{branchId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/branch/{branchId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "branch", "{branchId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "status", "item": [ { "name": "[GET] api/v1/purchase-orders/branch/{branchId}/status/{status}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/branch/{branchId}/status/{status}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "branch", "{branchId}", "status", "{status}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "pending", "item": [ { "name": "[GET] api/v1/purchase-orders/branch/{branchId}/pending", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/branch/{branchId}/pending", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "branch", "{branchId}", "pending" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "[POST] api/v1/purchase-orders", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders" ] }, "body": { "mode": "raw", "raw": "{\n \"branch_id\": \"sample_text\",\n \"supplier_name\": \"sample_text\",\n \"supplier_contact\": \"sample_text\",\n \"expected_at\": \"sample_text\",\n \"notes\": \"sample_text\",\n \"items\": [\n {\n \"ingredient_id\": \"sample_text\",\n \"quantity_ordered\": 27,\n \"unit_cost\": 65\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/purchase-orders/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/purchase-orders/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"supplier_name\": \"sample_text\",\n \"supplier_contact\": \"sample_text\",\n \"expected_at\": \"sample_text\",\n \"notes\": \"sample_text\",\n \"items\": [\n {\n \"ingredient_id\": \"sample_text\",\n \"quantity_ordered\": 56,\n \"unit_cost\": 49\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/purchase-orders/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "status", "item": [ { "name": "[PUT] api/v1/purchase-orders/{id}/status", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/{id}/status", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "{id}", "status" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "receive", "item": [ { "name": "[POST] api/v1/purchase-orders/{id}/receive", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/{id}/receive", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "{id}", "receive" ] }, "body": { "mode": "raw", "raw": "{\n \"items\": [\n {\n \"item_id\": \"sample_text\",\n \"quantity_received\": 87\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "cancel", "item": [ { "name": "[POST] api/v1/purchase-orders/{id}/cancel", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/purchase-orders/{id}/cancel", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "purchase-orders", "{id}", "cancel" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "orders", "item": [ { "name": "[GET] api/v1/orders", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "branch", "item": [ { "name": "[GET] api/v1/orders/branch/{branchId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/branch/{branchId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "branch", "{branchId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "active", "item": [ { "name": "[GET] api/v1/orders/branch/{branchId}/active", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/branch/{branchId}/active", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "branch", "{branchId}", "active" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "status", "item": [ { "name": "[GET] api/v1/orders/branch/{branchId}/status/{status}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/branch/{branchId}/status/{status}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "branch", "{branchId}", "status", "{status}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "today", "item": [ { "name": "[GET] api/v1/orders/branch/{branchId}/today", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/branch/{branchId}/today", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "branch", "{branchId}", "today" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "date-range", "item": [ { "name": "[GET] api/v1/orders/branch/{branchId}/date-range", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/branch/{branchId}/date-range", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "branch", "{branchId}", "date-range" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "daily-summary", "item": [ { "name": "[GET] api/v1/orders/branch/{branchId}/daily-summary", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/branch/{branchId}/daily-summary", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "branch", "{branchId}", "daily-summary" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "[POST] api/v1/orders", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders" ] }, "body": { "mode": "raw", "raw": "{\n \"branch_id\": \"sample_text\",\n \"order_type\": \"sample_text\",\n \"table_number\": \"sample_text\",\n \"customer_name\": \"sample_text\",\n \"customer_phone\": \"sample_text\",\n \"customer_address\": \"sample_text\",\n \"notes\": \"sample_text\",\n \"items\": [\n {\n \"product_id\": \"sample_text\",\n \"quantity\": 3,\n \"unit_price\": 70,\n \"options\": [],\n \"inner_options\": [],\n \"special_instructions\": \"sample_text\"\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/orders/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/orders/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"order_type\": \"sample_text\",\n \"table_number\": \"sample_text\",\n \"customer_name\": \"sample_text\",\n \"customer_phone\": \"sample_text\",\n \"customer_address\": \"sample_text\",\n \"notes\": \"sample_text\",\n \"items\": [\n {\n \"product_id\": \"sample_text\",\n \"quantity\": 4,\n \"unit_price\": 70,\n \"options\": [],\n \"inner_options\": [],\n \"special_instructions\": \"sample_text\"\n }\n ]\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/orders/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "status", "item": [ { "name": "[PUT] api/v1/orders/{id}/status", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{id}/status", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{id}", "status" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "cancel", "item": [ { "name": "[POST] api/v1/orders/{id}/cancel", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{id}/cancel", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{id}", "cancel" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "discount", "item": [ { "name": "[POST] api/v1/orders/{id}/discount", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{id}/discount", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{id}", "discount" ] }, "body": { "mode": "raw", "raw": "{\n \"amount\": 75,\n \"reason\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "payments", "item": [ { "name": "[GET] api/v1/orders/{orderId}/payments", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{orderId}/payments", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{orderId}", "payments" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[POST] api/v1/orders/{orderId}/payments", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{orderId}/payments", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{orderId}", "payments" ] }, "body": { "mode": "raw", "raw": "{\n \"method\": \"sample_text\",\n \"amount\": 45,\n \"tendered\": 81,\n \"reference_number\": \"sample_text\",\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "refund", "item": [ { "name": "[POST] api/v1/orders/{orderId}/payments/{paymentId}/refund", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/orders/{orderId}/payments/{paymentId}/refund", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "orders", "{orderId}", "payments", "{paymentId}", "refund" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] } ] } ] }, { "name": "expense-categories", "item": [ { "name": "[GET] api/v1/expense-categories", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expense-categories", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expense-categories" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[POST] api/v1/expense-categories", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expense-categories", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expense-categories" ] }, "body": { "mode": "raw", "raw": "{\n \"name\": \"Test User\",\n \"description\": \"sample_text\",\n \"is_active\": 1\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/expense-categories/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expense-categories/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expense-categories", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/expense-categories/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expense-categories/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expense-categories", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/expense-categories/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expense-categories/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expense-categories", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "expenses", "item": [ { "name": "[GET] api/v1/expenses", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "branch", "item": [ { "name": "[GET] api/v1/expenses/branch/{branchId}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses/branch/{branchId}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses", "branch", "{branchId}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "[POST] api/v1/expenses", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses" ] }, "body": { "mode": "raw", "raw": "{\n \"branch_id\": \"sample_text\",\n \"expense_category_id\": \"sample_text\",\n \"title\": \"sample_text\",\n \"description\": \"sample_text\",\n \"amount\": 20,\n \"payment_method\": \"sample_text\",\n \"reference_number\": \"sample_text\",\n \"receipt_image\": \"sample_text\",\n \"expense_date\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/expenses/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[PUT] api/v1/expenses/{id}", "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses", "{id}" ] }, "body": { "mode": "raw", "raw": "{\n \"expense_category_id\": \"sample_text\",\n \"title\": \"sample_text\",\n \"description\": \"sample_text\",\n \"amount\": 6,\n \"payment_method\": \"sample_text\",\n \"reference_number\": \"sample_text\",\n \"receipt_image\": \"sample_text\",\n \"expense_date\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[DELETE] api/v1/expenses/{id}", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "approve", "item": [ { "name": "[POST] api/v1/expenses/{id}/approve", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses/{id}/approve", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses", "{id}", "approve" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "reject", "item": [ { "name": "[POST] api/v1/expenses/{id}/reject", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/expenses/{id}/reject", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "expenses", "{id}", "reject" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "cash-registers", "item": [ { "name": "[GET] api/v1/cash-registers", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/cash-registers", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "cash-registers" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "[GET] api/v1/cash-registers/{id}", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/cash-registers/{id}", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "cash-registers", "{id}" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } }, { "name": "", "item": [ { "name": "transactions", "item": [ { "name": "[GET] api/v1/cash-registers/{id}/transactions", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/cash-registers/{id}/transactions", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "cash-registers", "{id}", "transactions" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "summary", "item": [ { "name": "[GET] api/v1/cash-registers/{id}/summary", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/cash-registers/{id}/summary", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "cash-registers", "{id}", "summary" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "close", "item": [ { "name": "[POST] api/v1/cash-registers/{id}/close", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/cash-registers/{id}/close", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "cash-registers", "{id}", "close" ] }, "body": { "mode": "raw", "raw": "{\n \"actual_balance\": 96,\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "add-cash", "item": [ { "name": "[POST] api/v1/cash-registers/{id}/add-cash", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/cash-registers/{id}/add-cash", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "cash-registers", "{id}", "add-cash" ] }, "body": { "mode": "raw", "raw": "{\n \"amount\": 81,\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "remove-cash", "item": [ { "name": "[POST] api/v1/cash-registers/{id}/remove-cash", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/cash-registers/{id}/remove-cash", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "cash-registers", "{id}", "remove-cash" ] }, "body": { "mode": "raw", "raw": "{\n \"amount\": 19,\n \"notes\": \"sample_text\"\n}", "options": [] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] }, { "name": "analytics", "item": [ { "name": "dashboard", "item": [ { "name": "[GET] api/v1/analytics/dashboard", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/dashboard", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "dashboard" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "sales", "item": [ { "name": "[GET] api/v1/analytics/sales", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/sales", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "sales" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "expenses", "item": [ { "name": "[GET] api/v1/analytics/expenses", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/expenses", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "expenses" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "profit-loss", "item": [ { "name": "[GET] api/v1/analytics/profit-loss", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/profit-loss", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "profit-loss" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "top-products", "item": [ { "name": "[GET] api/v1/analytics/top-products", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/top-products", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "top-products" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "hourly-sales", "item": [ { "name": "[GET] api/v1/analytics/hourly-sales", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/hourly-sales", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "hourly-sales" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "sales-by-category", "item": [ { "name": "[GET] api/v1/analytics/sales-by-category", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/sales-by-category", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "sales-by-category" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "sales-by-payment-method", "item": [ { "name": "[GET] api/v1/analytics/sales-by-payment-method", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/sales-by-payment-method", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "sales-by-payment-method" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "branch-comparison", "item": [ { "name": "[GET] api/v1/analytics/branch-comparison", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/branch-comparison", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "branch-comparison" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "inventory-valuation", "item": [ { "name": "[GET] api/v1/analytics/inventory-valuation", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/inventory-valuation", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "inventory-valuation" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] }, { "name": "low-stock-alerts", "item": [ { "name": "[GET] api/v1/analytics/low-stock-alerts", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "url": { "raw": "{{base_url}}/api/v1/analytics/low-stock-alerts", "host": [ "{{base_url}}" ], "path": [ "api", "v1", "analytics", "low-stock-alerts" ] }, "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}" } ] } } } ] } ] } ] } ], "variable": [ { "key": "base_url", "value": "http://localhost" }, { "key": "auth_token", "value": "{{access_token}}", "type": "string", "description": "Bearer token for API authentication" } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] } }