{ "info": { "_postman_id": "90943e73-b99e-468b-b10b-d3a02f751da9", "name": "Reparee Collection", "description": "Auto-generated from OpenAPI spec. Import storage/app/openapi-default.json for the full schema.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "17202336" }, "item": [ { "name": "Login", "item": [ { "name": "POST /api/login", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"admin@example.com\",\n \"password\": \"password123\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/login", "host": [ "{{base_url}}" ], "path": [ "api", "login" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"admin@example.com\",\n \"password\": \"password123\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/login", "host": [ "{{base_url}}" ], "path": [ "api", "login" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Login successful.\",\n \"data\": {\n \"token\": \"1|abc123...\",\n \"user\": {\n \"id\": 1,\n \"first_name\": \"Admin\",\n \"last_name\": \"User\",\n \"email\": \"admin@example.com\"\n }\n }\n}" } ] } ] }, { "name": "Profile", "item": [ { "name": "GET /api/profile", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/profile", "host": [ "{{base_url}}" ], "path": [ "api", "profile" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/profile", "host": [ "{{base_url}}" ], "path": [ "api", "profile" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"type\": \"employee\",\n \"first_name\": \"Admin\",\n \"last_name\": \"User\",\n \"email\": \"admin@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Service Manager\",\n \"salary\": 5000.0,\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": 1,\n \"shop_timing_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Logout", "item": [ { "name": "POST /api/logout", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/logout", "host": [ "{{base_url}}" ], "path": [ "api", "logout" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/logout", "host": [ "{{base_url}}" ], "path": [ "api", "logout" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" } ] } ] }, { "name": "Referral Sources", "item": [ { "name": "Display a listing of referral sources.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/referral-sources", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/referral-sources", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"Google\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "Store a newly created referral source.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Friend Referral\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/referral-sources", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Friend Referral\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/referral-sources", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Google\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified referral source.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Friend Referral\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/referral-sources/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Friend Referral\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/referral-sources/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Google\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified referral source.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/referral-sources/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/referral-sources/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "referral-sources", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Default Referral Source", "item": [ { "name": "Set a referral source as the default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-referral-source", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-referral-source" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-referral-source", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-referral-source" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Google\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Customers", "item": [ { "name": "Display a listing of customers.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers", "host": [ "{{base_url}}" ], "path": [ "api", "customers" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers", "host": [ "{{base_url}}" ], "path": [ "api", "customers" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created customer.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john@example.com\",\n \"phone\": \"+971501234567\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers", "host": [ "{{base_url}}" ], "path": [ "api", "customers" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john@example.com\",\n \"phone\": \"+971501234567\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers", "host": [ "{{base_url}}" ], "path": [ "api", "customers" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Display the specified customer.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified customer.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john@example.com\",\n \"phone\": \"+971501234567\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john@example.com\",\n \"phone\": \"+971501234567\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified customer.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Export customers to Excel.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers/export", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "export" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customers/export", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "export" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "" } ], "cookie": [], "body": "\"\"" } ] }, { "name": "Import customers from Excel file.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": "" } ] }, "url": { "raw": "{{base_url}}/api/customers/import", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "import" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/customers/import", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "import" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Action completed successfully.\"\n}" } ] }, { "name": "Add a note to the specified customer.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Customer prefers original parts.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers/{{id}}/notes/{{note_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}", "notes", "{{note_id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Customer prefers original parts.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers/{{id}}/notes/{{note_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}", "notes", "{{note_id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Delete a note from the specified customer.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers/{{id}}/notes/{{note_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}", "notes", "{{note_id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/customers/{{id}}/notes/{{note_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "customers", "{{id}}", "notes", "{{note_id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Customer Types", "item": [ { "name": "GET /api/customer-types", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customer-types", "host": [ "{{base_url}}" ], "path": [ "api", "customer-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/customer-types", "host": [ "{{base_url}}" ], "path": [ "api", "customer-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"customer_type_id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"string\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Countries", "item": [ { "name": "Display a listing of countries.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/countries", "host": [ "{{base_url}}" ], "path": [ "api", "countries" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/countries", "host": [ "{{base_url}}" ], "path": [ "api", "countries" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Google\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] } ] }, { "name": "States", "item": [ { "name": "Display a listing of states, optionally filtered by country_id.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/states", "host": [ "{{base_url}}" ], "path": [ "api", "states" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/states", "host": [ "{{base_url}}" ], "path": [ "api", "states" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Google\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] } ] }, { "name": "Payment Terms", "item": [ { "name": "Display a listing of payment terms.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-terms", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-terms", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Net 30\",\n \"days\": 30,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created payment term.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Net 30\",\n \"days\": 30\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-terms", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Net 30\",\n \"days\": 30\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-terms", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Net 30\",\n \"days\": 30,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified payment term.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Net 30\",\n \"days\": 30\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-terms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Net 30\",\n \"days\": 30\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-terms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Net 30\",\n \"days\": 30,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified payment term.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-terms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-terms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-terms", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Default Payment Term", "item": [ { "name": "Set a payment term as the default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-payment-term", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-payment-term" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-payment-term", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-payment-term" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Net 30\",\n \"days\": 30,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Shop Types", "item": [ { "name": "Display a listing of shop types.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-types", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-types", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Car Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"string\",\n \"inspection\": \"string\",\n \"image\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created shop type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Car Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-types", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Car Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-types", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Car Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"string\",\n \"inspection\": \"string\",\n \"image\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified shop type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Car Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Car Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Car Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"string\",\n \"inspection\": \"string\",\n \"image\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified shop type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vehicle Body Types", "item": [ { "name": "Display a listing of vehicle body types.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-body-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-body-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vehicle body type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Sedan\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-body-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Sedan\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-body-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vehicle body type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Sedan\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-body-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Sedan\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-body-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vehicle body type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-body-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-body-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-body-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vehicle Fuel Types", "item": [ { "name": "Display a listing of vehicle fuel types.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-fuel-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-fuel-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vehicle fuel type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Petrol\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-fuel-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Petrol\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-fuel-types", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vehicle fuel type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Petrol\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-fuel-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Petrol\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-fuel-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vehicle fuel type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-fuel-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-fuel-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-fuel-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vehicle Transmissions", "item": [ { "name": "Display a listing of vehicle transmissions.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-transmissions", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-transmissions", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vehicle transmission.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Automatic\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-transmissions", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Automatic\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-transmissions", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vehicle transmission.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Automatic\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-transmissions/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Automatic\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-transmissions/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vehicle transmission.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-transmissions/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-transmissions/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-transmissions", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vehicle Colors", "item": [ { "name": "Display a listing of vehicle colors.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-colors", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-colors", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vehicle color.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"White\",\n \"code\": \"#FFFFFF\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-colors", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"White\",\n \"code\": \"#FFFFFF\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-colors", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vehicle color.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"White\",\n \"code\": \"#FFFFFF\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-colors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"White\",\n \"code\": \"#FFFFFF\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-colors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Sedan\",\n \"shop_type_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vehicle color.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-colors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-colors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-colors", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vehicles", "item": [ { "name": "Display a listing of vehicles.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"vehicles/image.jpg\",\n \"image_url\": \"https://example.com/storage/vehicles/image.jpg\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": \"string\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": \"2026-03-31\",\n \"mfg_date\": \"2026-03-31\",\n \"parked_at\": \"string\",\n \"mileage\": \"25000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": \"string\",\n \"rear_tire_size\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vehicle.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"25000\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicles", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"25000\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicles", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"vehicles/image.jpg\",\n \"image_url\": \"https://example.com/storage/vehicles/image.jpg\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": \"string\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": \"2026-03-31\",\n \"mfg_date\": \"2026-03-31\",\n \"parked_at\": \"string\",\n \"mileage\": \"25000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": \"string\",\n \"rear_tire_size\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "GET /api/vehicles/{id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"vehicles/image.jpg\",\n \"image_url\": \"https://example.com/storage/vehicles/image.jpg\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": \"string\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": \"2026-03-31\",\n \"mfg_date\": \"2026-03-31\",\n \"parked_at\": \"string\",\n \"mileage\": \"25000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": \"string\",\n \"rear_tire_size\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vehicle.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"25000\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"25000\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"vehicles/image.jpg\",\n \"image_url\": \"https://example.com/storage/vehicles/image.jpg\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": \"string\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": \"2026-03-31\",\n \"mfg_date\": \"2026-03-31\",\n \"parked_at\": \"string\",\n \"mileage\": \"25000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": \"string\",\n \"rear_tire_size\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vehicle.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Export vehicles to Excel.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles/export", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "export" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicles/export", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "export" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "" } ], "cookie": [], "body": "\"\"" } ] }, { "name": "Import vehicles from Excel file.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": "" } ] }, "url": { "raw": "{{base_url}}/api/vehicles/import", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "import" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/vehicles/import", "host": [ "{{base_url}}" ], "path": [ "api", "vehicles", "import" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Action completed successfully.\"\n}" } ] } ] }, { "name": "Get Vehicle Owners", "item": [ { "name": "Get customers linked to a vehicle.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/get-vehicle-owners", "host": [ "{{base_url}}" ], "path": [ "api", "get-vehicle-owners" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/get-vehicle-owners", "host": [ "{{base_url}}" ], "path": [ "api", "get-vehicle-owners" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"vehicles/image.jpg\",\n \"image_url\": \"https://example.com/storage/vehicles/image.jpg\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": \"string\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": \"2026-03-31\",\n \"mfg_date\": \"2026-03-31\",\n \"parked_at\": \"string\",\n \"mileage\": \"25000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": \"string\",\n \"rear_tire_size\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Link Customer To Vehicle", "item": [ { "name": "Link a customer to a vehicle.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"customer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/link-customer-to-vehicle", "host": [ "{{base_url}}" ], "path": [ "api", "link-customer-to-vehicle" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"customer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/link-customer-to-vehicle", "host": [ "{{base_url}}" ], "path": [ "api", "link-customer-to-vehicle" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"vehicles/image.jpg\",\n \"image_url\": \"https://example.com/storage/vehicles/image.jpg\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": \"string\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": \"2026-03-31\",\n \"mfg_date\": \"2026-03-31\",\n \"parked_at\": \"string\",\n \"mileage\": \"25000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": \"string\",\n \"rear_tire_size\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Unlink Customer From Vehicle", "item": [ { "name": "Unlink a customer from a vehicle.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"customer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/unlink-customer-from-vehicle", "host": [ "{{base_url}}" ], "path": [ "api", "unlink-customer-from-vehicle" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"customer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/unlink-customer-from-vehicle", "host": [ "{{base_url}}" ], "path": [ "api", "unlink-customer-from-vehicle" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"vehicle_body_type_id\": 1,\n \"vehicle_fuel_type_id\": 1,\n \"vehicle_transmission_id\": 1,\n \"vehicle_color_id\": 1,\n \"image\": \"vehicles/image.jpg\",\n \"image_url\": \"https://example.com/storage/vehicles/image.jpg\",\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-1234\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": \"string\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": \"2026-03-31\",\n \"mfg_date\": \"2026-03-31\",\n \"parked_at\": \"string\",\n \"mileage\": \"25000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": \"string\",\n \"rear_tire_size\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Get Makes", "item": [ { "name": "GET /api/get-makes", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/get-makes?shop_type_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "get-makes" ], "query": [ { "key": "shop_type_id", "value": "1" } ] }, "description": "Query: `shop_type_id` (required by controller) filters `make_and_models` rows; response is distinct make names from that table." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/get-makes?shop_type_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "get-makes" ], "query": [ { "key": "shop_type_id", "value": "1" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n \"Honda\",\n \"Toyota\"\n ]\n}" } ] } ] }, { "name": "Get Models", "item": [ { "name": "GET /api/get-models", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/get-models?make=Toyota", "host": [ "{{base_url}}" ], "path": [ "api", "get-models" ], "query": [ { "key": "make", "value": "Toyota" } ] }, "description": "Query: `make` (required) — distinct model names from `make_and_models` for that make." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/get-models?make=Toyota", "host": [ "{{base_url}}" ], "path": [ "api", "get-models" ], "query": [ { "key": "make", "value": "Toyota" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n \"Camry\",\n \"Corolla\",\n \"Prius\"\n ]\n}" } ] } ] }, { "name": "Document Types", "item": [ { "name": "Display a listing of document types.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/document-types", "host": [ "{{base_url}}" ], "path": [ "api", "document-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/document-types", "host": [ "{{base_url}}" ], "path": [ "api", "document-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"Vehicle Registration\",\n \"has_document_number\": true,\n \"min_cart\": 1,\n \"max_cart\": 1,\n \"has_document_expire\": false,\n \"mark_it_mandatory\": false,\n \"min_files\": 1,\n \"max_files\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created document type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Vehicle Registration\",\n \"has_document_number\": true,\n \"has_document_expire\": false,\n \"mark_it_mandatory\": false,\n \"min_files\": 1,\n \"max_files\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/document-types", "host": [ "{{base_url}}" ], "path": [ "api", "document-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Vehicle Registration\",\n \"has_document_number\": true,\n \"has_document_expire\": false,\n \"mark_it_mandatory\": false,\n \"min_files\": 1,\n \"max_files\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/document-types", "host": [ "{{base_url}}" ], "path": [ "api", "document-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Vehicle Registration\",\n \"has_document_number\": true,\n \"min_cart\": 1,\n \"max_cart\": 1,\n \"has_document_expire\": false,\n \"mark_it_mandatory\": false,\n \"min_files\": 1,\n \"max_files\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified document type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Vehicle Registration\",\n \"has_document_number\": true,\n \"has_document_expire\": false,\n \"mark_it_mandatory\": false,\n \"min_files\": 1,\n \"max_files\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/document-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "document-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Vehicle Registration\",\n \"has_document_number\": true,\n \"has_document_expire\": false,\n \"mark_it_mandatory\": false,\n \"min_files\": 1,\n \"max_files\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/document-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "document-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Vehicle Registration\",\n \"has_document_number\": true,\n \"min_cart\": 1,\n \"max_cart\": 1,\n \"has_document_expire\": false,\n \"mark_it_mandatory\": false,\n \"min_files\": 1,\n \"max_files\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified document type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/document-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "document-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/document-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "document-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vehicle Documents", "item": [ { "name": "Display a listing of vehicle documents.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-documents", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-documents", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"document_number\": \"DOC-001\",\n \"document_expire\": \"2027-03-31\",\n \"document_file\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vehicle document.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "vehicle_id", "value": "1", "type": "text", "description": "Required. ID of the vehicle." }, { "key": "document_type_id", "value": "1", "type": "text", "description": "Required. ID of the document type." }, { "key": "customer_id", "value": "1", "type": "text", "description": "Optional. ID of the customer." }, { "key": "document_number", "value": "DOC-001", "type": "text", "description": "Optional. Document number." }, { "key": "document_expire", "value": "2027-12-31", "type": "text", "description": "Optional. Expiry date (YYYY-MM-DD)." }, { "key": "document_file", "type": "file", "description": "Optional. Document file (image/pdf/etc.).", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/vehicle-documents", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "vehicle_id", "value": "1", "type": "text", "description": "Required. ID of the vehicle." }, { "key": "document_type_id", "value": "1", "type": "text", "description": "Required. ID of the document type." }, { "key": "customer_id", "value": "1", "type": "text", "description": "Optional. ID of the customer." }, { "key": "document_number", "value": "DOC-001", "type": "text", "description": "Optional. Document number." }, { "key": "document_expire", "value": "2027-12-31", "type": "text", "description": "Optional. Expiry date (YYYY-MM-DD)." }, { "key": "document_file", "type": "file", "description": "Optional. Document file (image/pdf/etc.).", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/vehicle-documents", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"document_number\": \"DOC-001\",\n \"document_expire\": \"2027-03-31\",\n \"document_file\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vehicle document.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "vehicle_id", "value": "1", "type": "text", "description": "Required. ID of the vehicle." }, { "key": "document_type_id", "value": "1", "type": "text", "description": "Required. ID of the document type." }, { "key": "customer_id", "value": "1", "type": "text", "description": "Optional. ID of the customer." }, { "key": "document_number", "value": "DOC-001", "type": "text", "description": "Optional. Document number." }, { "key": "document_expire", "value": "2027-12-31", "type": "text", "description": "Optional. Expiry date (YYYY-MM-DD)." }, { "key": "document_file", "type": "file", "description": "Optional. Document file (image/pdf/etc.).", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/vehicle-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "vehicle_id", "value": "1", "type": "text", "description": "Required. ID of the vehicle." }, { "key": "document_type_id", "value": "1", "type": "text", "description": "Required. ID of the document type." }, { "key": "customer_id", "value": "1", "type": "text", "description": "Optional. ID of the customer." }, { "key": "document_number", "value": "DOC-001", "type": "text", "description": "Optional. Document number." }, { "key": "document_expire", "value": "2027-12-31", "type": "text", "description": "Optional. Expiry date (YYYY-MM-DD)." }, { "key": "document_file", "type": "file", "description": "Optional. Document file (image/pdf/etc.).", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/vehicle-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"document_number\": \"DOC-001\",\n \"document_expire\": \"2027-03-31\",\n \"document_file\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vehicle document.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-documents", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vehicle Mile And Kms", "item": [ { "name": "Display a listing of vehicle mile/km records.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"miles\": 50000,\n \"fuel_level\": 75,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vehicle mile/km record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"miles\": 50000,\n \"fuel_level\": 80,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Routine mileage check.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"miles\": 50000,\n \"fuel_level\": 80,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Routine mileage check.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"miles\": 50000,\n \"fuel_level\": 75,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vehicle mile/km record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"miles\": 50000,\n \"fuel_level\": 80,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Routine mileage check.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vehicle_id\": 1,\n \"miles\": 50000,\n \"fuel_level\": 80,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Routine mileage check.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"miles\": 50000,\n \"fuel_level\": 75,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vehicle mile/km record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vehicle-mile-and-kms/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vehicle-mile-and-kms", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Departments", "item": [ { "name": "Display a listing of departments.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/departments", "host": [ "{{base_url}}" ], "path": [ "api", "departments" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/departments", "host": [ "{{base_url}}" ], "path": [ "api", "departments" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"image\": \"string\",\n \"is_favorite\": false,\n \"assignment_type\": \"none\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created department.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"assignment_type\": \"none\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/departments", "host": [ "{{base_url}}" ], "path": [ "api", "departments" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"assignment_type\": \"none\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/departments", "host": [ "{{base_url}}" ], "path": [ "api", "departments" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"image\": \"string\",\n \"is_favorite\": false,\n \"assignment_type\": \"none\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified department.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"assignment_type\": \"none\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/departments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "departments", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"assignment_type\": \"none\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/departments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "departments", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"image\": \"string\",\n \"is_favorite\": false,\n \"assignment_type\": \"none\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified department.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/departments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "departments", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/departments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "departments", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Favorite Department", "item": [ { "name": "Mark a department as favorite.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-department", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-department" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-department", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-department" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"image\": \"string\",\n \"is_favorite\": false,\n \"assignment_type\": \"none\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Favorite Department", "item": [ { "name": "Remove favorite flag from a department.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-department", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-department" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-department", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-department" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Service Department\",\n \"description\": \"string\",\n \"manager_id\": 1,\n \"image\": \"string\",\n \"is_favorite\": false,\n \"assignment_type\": \"none\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Employees", "item": [ { "name": "Display a listing of employees.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/employees", "host": [ "{{base_url}}" ], "path": [ "api", "employees" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/employees", "host": [ "{{base_url}}" ], "path": [ "api", "employees" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"type\": \"employee\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane.smith@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Technician\",\n \"salary\": \"5000.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"can_create_appointments\": false,\n \"can_create_bills\": false,\n \"can_create_check_point_labels\": false,\n \"can_create_credit_notes\": false,\n \"can_create_customers\": false,\n \"can_create_departments\": false,\n \"can_create_document_types\": false,\n \"can_create_employees\": false,\n \"can_create_estimates\": false,\n \"can_create_expense_items\": false,\n \"can_create_expenses\": false,\n \"can_create_holidays\": false,\n \"can_create_inspection_categories\": false,\n \"can_create_inspection_check_points\": false,\n \"can_create_inspections\": false,\n \"can_create_insurance_types\": false,\n \"can_create_inventory_adjustments\": false,\n \"can_create_inventory_categories\": false,\n \"can_create_invoice_documents\": false,\n \"can_create_invoice_labels\": false,\n \"can_create_invoice_notes\": false,\n \"can_create_invoice_sequences\": false,\n \"can_create_invoices\": false,\n \"can_create_job_cards\": false,\n \"can_create_labels\": false,\n \"can_create_labor_rates\": false,\n \"can_create_make_and_models\": false,\n \"can_create_parts\": false,\n \"can_create_payment_mades\": false,\n \"can_create_payment_modes\": false,\n \"can_create_payment_recieveds\": false,\n \"can_create_payment_terms\": false,\n \"can_create_purchase_orders\": false,\n \"can_create_quick_notes\": false,\n \"can_create_quick_remarks\": false,\n \"can_create_reasons\": false,\n \"can_create_referral_sources\": false,\n \"can_create_service_group_includes\": false,\n \"can_create_service_group_parts\": false,\n \"can_create_service_group_pricings\": false,\n \"can_create_service_group_services\": false,\n \"can_create_service_groups\": false,\n \"can_create_services\": false,\n \"can_create_settings\": false,\n \"can_create_shop_calenders\": false,\n \"can_create_shop_timings\": false,\n \"can_create_shop_types\": false,\n \"can_create_task_sections\": false,\n \"can_create_task_types\": false,\n \"can_create_tasks\": false,\n \"can_create_taxes\": false,\n \"can_create_time_sheets\": false,\n \"can_create_unit_types\": false,\n \"can_create_vehicle_body_types\": false,\n \"can_create_vehicle_colors\": false,\n \"can_create_vehicle_documents\": false,\n \"can_create_vehicle_fuel_types\": false,\n \"can_create_vehicle_mile_and_kms\": false,\n \"can_create_vehicle_transmissions\": false,\n \"can_create_vehicles\": false,\n \"can_create_vendor_credits\": false,\n \"can_create_vendors\": false,\n \"can_delete_appointments\": false,\n \"can_delete_bills\": false,\n \"can_delete_check_point_labels\": false,\n \"can_delete_credit_notes\": false,\n \"can_delete_customers\": false,\n \"can_delete_departments\": false,\n \"can_delete_document_types\": false,\n \"can_delete_employees\": false,\n \"can_delete_estimates\": false,\n \"can_delete_expense_items\": false,\n \"can_delete_expenses\": false,\n \"can_delete_holidays\": false,\n \"can_delete_inspection_categories\": false,\n \"can_delete_inspection_check_points\": false,\n \"can_delete_inspections\": false,\n \"can_delete_insurance_types\": false,\n \"can_delete_inventory_adjustments\": false,\n \"can_delete_inventory_categories\": false,\n \"can_delete_invoice_documents\": false,\n \"can_delete_invoice_labels\": false,\n \"can_delete_invoice_notes\": false,\n \"can_delete_invoice_sequences\": false,\n \"can_delete_invoices\": false,\n \"can_delete_job_cards\": false,\n \"can_delete_labels\": false,\n \"can_delete_labor_rates\": false,\n \"can_delete_make_and_models\": false,\n \"can_delete_parts\": false,\n \"can_delete_payment_mades\": false,\n \"can_delete_payment_modes\": false,\n \"can_delete_payment_recieveds\": false,\n \"can_delete_payment_terms\": false,\n \"can_delete_purchase_orders\": false,\n \"can_delete_quick_notes\": false,\n \"can_delete_quick_remarks\": false,\n \"can_delete_reasons\": false,\n \"can_delete_referral_sources\": false,\n \"can_delete_service_group_includes\": false,\n \"can_delete_service_group_parts\": false,\n \"can_delete_service_group_pricings\": false,\n \"can_delete_service_group_services\": false,\n \"can_delete_service_groups\": false,\n \"can_delete_services\": false,\n \"can_delete_settings\": false,\n \"can_delete_shop_calenders\": false,\n \"can_delete_shop_timings\": false,\n \"can_delete_shop_types\": false,\n \"can_delete_task_sections\": false,\n \"can_delete_task_types\": false,\n \"can_delete_tasks\": false,\n \"can_delete_taxes\": false,\n \"can_delete_time_sheets\": false,\n \"can_delete_unit_types\": false,\n \"can_delete_vehicle_body_types\": false,\n \"can_delete_vehicle_colors\": false,\n \"can_delete_vehicle_documents\": false,\n \"can_delete_vehicle_fuel_types\": false,\n \"can_delete_vehicle_mile_and_kms\": false,\n \"can_delete_vehicle_transmissions\": false,\n \"can_delete_vehicles\": false,\n \"can_delete_vendor_credits\": false,\n \"can_delete_vendors\": false,\n \"can_update_appointments\": false,\n \"can_update_bills\": false,\n \"can_update_check_point_labels\": false,\n \"can_update_credit_notes\": false,\n \"can_update_customers\": false,\n \"can_update_departments\": false,\n \"can_update_document_types\": false,\n \"can_update_employees\": false,\n \"can_update_estimates\": false,\n \"can_update_expense_items\": false,\n \"can_update_expenses\": false,\n \"can_update_holidays\": false,\n \"can_update_inspection_categories\": false,\n \"can_update_inspection_check_points\": false,\n \"can_update_inspections\": false,\n \"can_update_insurance_types\": false,\n \"can_update_inventory_adjustments\": false,\n \"can_update_inventory_categories\": false,\n \"can_update_invoice_documents\": false,\n \"can_update_invoice_labels\": false,\n \"can_update_invoice_notes\": false,\n \"can_update_invoice_sequences\": false,\n \"can_update_invoices\": false,\n \"can_update_job_cards\": false,\n \"can_update_labels\": false,\n \"can_update_labor_rates\": false,\n \"can_update_make_and_models\": false,\n \"can_update_parts\": false,\n \"can_update_payment_mades\": false,\n \"can_update_payment_modes\": false,\n \"can_update_payment_recieveds\": false,\n \"can_update_payment_terms\": false,\n \"can_update_purchase_orders\": false,\n \"can_update_quick_notes\": false,\n \"can_update_quick_remarks\": false,\n \"can_update_reasons\": false,\n \"can_update_referral_sources\": false,\n \"can_update_service_group_includes\": false,\n \"can_update_service_group_parts\": false,\n \"can_update_service_group_pricings\": false,\n \"can_update_service_group_services\": false,\n \"can_update_service_groups\": false,\n \"can_update_services\": false,\n \"can_update_settings\": false,\n \"can_update_shop_calenders\": false,\n \"can_update_shop_timings\": false,\n \"can_update_shop_types\": false,\n \"can_update_task_sections\": false,\n \"can_update_task_types\": false,\n \"can_update_tasks\": false,\n \"can_update_taxes\": false,\n \"can_update_time_sheets\": false,\n \"can_update_unit_types\": false,\n \"can_update_vehicle_body_types\": false,\n \"can_update_vehicle_colors\": false,\n \"can_update_vehicle_documents\": false,\n \"can_update_vehicle_fuel_types\": false,\n \"can_update_vehicle_mile_and_kms\": false,\n \"can_update_vehicle_transmissions\": false,\n \"can_update_vehicles\": false,\n \"can_update_vendor_credits\": false,\n \"can_update_vendors\": false,\n \"can_view_appointments\": false,\n \"can_view_bills\": false,\n \"can_view_check_point_labels\": false,\n \"can_view_credit_notes\": false,\n \"can_view_customers\": false,\n \"can_view_departments\": false,\n \"can_view_document_types\": false,\n \"can_view_employees\": false,\n \"can_view_estimates\": false,\n \"can_view_expense_items\": false,\n \"can_view_expenses\": false,\n \"can_view_holidays\": false,\n \"can_view_inspection_categories\": false,\n \"can_view_inspection_check_points\": false,\n \"can_view_inspections\": false,\n \"can_view_insurance_types\": false,\n \"can_view_inventory_adjustments\": false,\n \"can_view_inventory_categories\": false,\n \"can_view_invoice_documents\": false,\n \"can_view_invoice_labels\": false,\n \"can_view_invoice_notes\": false,\n \"can_view_invoice_sequences\": false,\n \"can_view_invoices\": false,\n \"can_view_job_cards\": false,\n \"can_view_labels\": false,\n \"can_view_labor_rates\": false,\n \"can_view_make_and_models\": false,\n \"can_view_parts\": false,\n \"can_view_payment_mades\": false,\n \"can_view_payment_modes\": false,\n \"can_view_payment_recieveds\": false,\n \"can_view_payment_terms\": false,\n \"can_view_purchase_orders\": false,\n \"can_view_quick_notes\": false,\n \"can_view_quick_remarks\": false,\n \"can_view_reasons\": false,\n \"can_view_referral_sources\": false,\n \"can_view_service_group_includes\": false,\n \"can_view_service_group_parts\": false,\n \"can_view_service_group_pricings\": false,\n \"can_view_service_group_services\": false,\n \"can_view_service_groups\": false,\n \"can_view_services\": false,\n \"can_view_settings\": false,\n \"can_view_shop_calenders\": false,\n \"can_view_shop_timings\": false,\n \"can_view_shop_types\": false,\n \"can_view_task_sections\": false,\n \"can_view_task_types\": false,\n \"can_view_tasks\": false,\n \"can_view_taxes\": false,\n \"can_view_time_sheets\": false,\n \"can_view_unit_types\": false,\n \"can_view_vehicle_body_types\": false,\n \"can_view_vehicle_colors\": false,\n \"can_view_vehicle_documents\": false,\n \"can_view_vehicle_fuel_types\": false,\n \"can_view_vehicle_mile_and_kms\": false,\n \"can_view_vehicle_transmissions\": false,\n \"can_view_vehicles\": false,\n \"can_view_vendor_credits\": false,\n \"can_view_vendors\": false,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null,\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"shop_calender\": null,\n \"shop_timing\": null,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"role_id\": 1,\n \"role\": {\n \"id\": 1,\n \"name\": \"Super Admin\"\n }\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75,\n \"from\": 1,\n \"to\": 15\n }\n}" } ] }, { "name": "Store a newly created employee.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"password\": \"secret123\",\n \"status\": \"active\",\n \"type\": \"employee\",\n \"phone\": \"+971501234567\",\n \"department_id\": 1,\n \"wage_type\": \"Monthly\",\n \"designation\": \"Technician\",\n \"salary\": 5000,\n \"country_id\": 1,\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"role_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/employees", "host": [ "{{base_url}}" ], "path": [ "api", "employees" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"password\": \"secret123\",\n \"status\": \"active\",\n \"type\": \"employee\",\n \"phone\": \"+971501234567\",\n \"department_id\": 1,\n \"wage_type\": \"Monthly\",\n \"designation\": \"Technician\",\n \"salary\": 5000,\n \"country_id\": 1,\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"role_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/employees", "host": [ "{{base_url}}" ], "path": [ "api", "employees" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Employee created successfully.\",\n \"data\": {\n \"id\": 1,\n \"type\": \"employee\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Technician\",\n \"salary\": \"5000.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"can_create_appointments\": false,\n \"can_create_bills\": false,\n \"can_create_check_point_labels\": false,\n \"can_create_credit_notes\": false,\n \"can_create_customers\": false,\n \"can_create_departments\": false,\n \"can_create_document_types\": false,\n \"can_create_employees\": false,\n \"can_create_estimates\": false,\n \"can_create_expense_items\": false,\n \"can_create_expenses\": false,\n \"can_create_holidays\": false,\n \"can_create_inspection_categories\": false,\n \"can_create_inspection_check_points\": false,\n \"can_create_inspections\": false,\n \"can_create_insurance_types\": false,\n \"can_create_inventory_adjustments\": false,\n \"can_create_inventory_categories\": false,\n \"can_create_invoice_documents\": false,\n \"can_create_invoice_labels\": false,\n \"can_create_invoice_notes\": false,\n \"can_create_invoice_sequences\": false,\n \"can_create_invoices\": false,\n \"can_create_job_cards\": false,\n \"can_create_labels\": false,\n \"can_create_labor_rates\": false,\n \"can_create_make_and_models\": false,\n \"can_create_parts\": false,\n \"can_create_payment_mades\": false,\n \"can_create_payment_modes\": false,\n \"can_create_payment_recieveds\": false,\n \"can_create_payment_terms\": false,\n \"can_create_purchase_orders\": false,\n \"can_create_quick_notes\": false,\n \"can_create_quick_remarks\": false,\n \"can_create_reasons\": false,\n \"can_create_referral_sources\": false,\n \"can_create_service_group_includes\": false,\n \"can_create_service_group_parts\": false,\n \"can_create_service_group_pricings\": false,\n \"can_create_service_group_services\": false,\n \"can_create_service_groups\": false,\n \"can_create_services\": false,\n \"can_create_settings\": false,\n \"can_create_shop_calenders\": false,\n \"can_create_shop_timings\": false,\n \"can_create_shop_types\": false,\n \"can_create_task_sections\": false,\n \"can_create_task_types\": false,\n \"can_create_tasks\": false,\n \"can_create_taxes\": false,\n \"can_create_time_sheets\": false,\n \"can_create_unit_types\": false,\n \"can_create_vehicle_body_types\": false,\n \"can_create_vehicle_colors\": false,\n \"can_create_vehicle_documents\": false,\n \"can_create_vehicle_fuel_types\": false,\n \"can_create_vehicle_mile_and_kms\": false,\n \"can_create_vehicle_transmissions\": false,\n \"can_create_vehicles\": false,\n \"can_create_vendor_credits\": false,\n \"can_create_vendors\": false,\n \"can_delete_appointments\": false,\n \"can_delete_bills\": false,\n \"can_delete_check_point_labels\": false,\n \"can_delete_credit_notes\": false,\n \"can_delete_customers\": false,\n \"can_delete_departments\": false,\n \"can_delete_document_types\": false,\n \"can_delete_employees\": false,\n \"can_delete_estimates\": false,\n \"can_delete_expense_items\": false,\n \"can_delete_expenses\": false,\n \"can_delete_holidays\": false,\n \"can_delete_inspection_categories\": false,\n \"can_delete_inspection_check_points\": false,\n \"can_delete_inspections\": false,\n \"can_delete_insurance_types\": false,\n \"can_delete_inventory_adjustments\": false,\n \"can_delete_inventory_categories\": false,\n \"can_delete_invoice_documents\": false,\n \"can_delete_invoice_labels\": false,\n \"can_delete_invoice_notes\": false,\n \"can_delete_invoice_sequences\": false,\n \"can_delete_invoices\": false,\n \"can_delete_job_cards\": false,\n \"can_delete_labels\": false,\n \"can_delete_labor_rates\": false,\n \"can_delete_make_and_models\": false,\n \"can_delete_parts\": false,\n \"can_delete_payment_mades\": false,\n \"can_delete_payment_modes\": false,\n \"can_delete_payment_recieveds\": false,\n \"can_delete_payment_terms\": false,\n \"can_delete_purchase_orders\": false,\n \"can_delete_quick_notes\": false,\n \"can_delete_quick_remarks\": false,\n \"can_delete_reasons\": false,\n \"can_delete_referral_sources\": false,\n \"can_delete_service_group_includes\": false,\n \"can_delete_service_group_parts\": false,\n \"can_delete_service_group_pricings\": false,\n \"can_delete_service_group_services\": false,\n \"can_delete_service_groups\": false,\n \"can_delete_services\": false,\n \"can_delete_settings\": false,\n \"can_delete_shop_calenders\": false,\n \"can_delete_shop_timings\": false,\n \"can_delete_shop_types\": false,\n \"can_delete_task_sections\": false,\n \"can_delete_task_types\": false,\n \"can_delete_tasks\": false,\n \"can_delete_taxes\": false,\n \"can_delete_time_sheets\": false,\n \"can_delete_unit_types\": false,\n \"can_delete_vehicle_body_types\": false,\n \"can_delete_vehicle_colors\": false,\n \"can_delete_vehicle_documents\": false,\n \"can_delete_vehicle_fuel_types\": false,\n \"can_delete_vehicle_mile_and_kms\": false,\n \"can_delete_vehicle_transmissions\": false,\n \"can_delete_vehicles\": false,\n \"can_delete_vendor_credits\": false,\n \"can_delete_vendors\": false,\n \"can_update_appointments\": false,\n \"can_update_bills\": false,\n \"can_update_check_point_labels\": false,\n \"can_update_credit_notes\": false,\n \"can_update_customers\": false,\n \"can_update_departments\": false,\n \"can_update_document_types\": false,\n \"can_update_employees\": false,\n \"can_update_estimates\": false,\n \"can_update_expense_items\": false,\n \"can_update_expenses\": false,\n \"can_update_holidays\": false,\n \"can_update_inspection_categories\": false,\n \"can_update_inspection_check_points\": false,\n \"can_update_inspections\": false,\n \"can_update_insurance_types\": false,\n \"can_update_inventory_adjustments\": false,\n \"can_update_inventory_categories\": false,\n \"can_update_invoice_documents\": false,\n \"can_update_invoice_labels\": false,\n \"can_update_invoice_notes\": false,\n \"can_update_invoice_sequences\": false,\n \"can_update_invoices\": false,\n \"can_update_job_cards\": false,\n \"can_update_labels\": false,\n \"can_update_labor_rates\": false,\n \"can_update_make_and_models\": false,\n \"can_update_parts\": false,\n \"can_update_payment_mades\": false,\n \"can_update_payment_modes\": false,\n \"can_update_payment_recieveds\": false,\n \"can_update_payment_terms\": false,\n \"can_update_purchase_orders\": false,\n \"can_update_quick_notes\": false,\n \"can_update_quick_remarks\": false,\n \"can_update_reasons\": false,\n \"can_update_referral_sources\": false,\n \"can_update_service_group_includes\": false,\n \"can_update_service_group_parts\": false,\n \"can_update_service_group_pricings\": false,\n \"can_update_service_group_services\": false,\n \"can_update_service_groups\": false,\n \"can_update_services\": false,\n \"can_update_settings\": false,\n \"can_update_shop_calenders\": false,\n \"can_update_shop_timings\": false,\n \"can_update_shop_types\": false,\n \"can_update_task_sections\": false,\n \"can_update_task_types\": false,\n \"can_update_tasks\": false,\n \"can_update_taxes\": false,\n \"can_update_time_sheets\": false,\n \"can_update_unit_types\": false,\n \"can_update_vehicle_body_types\": false,\n \"can_update_vehicle_colors\": false,\n \"can_update_vehicle_documents\": false,\n \"can_update_vehicle_fuel_types\": false,\n \"can_update_vehicle_mile_and_kms\": false,\n \"can_update_vehicle_transmissions\": false,\n \"can_update_vehicles\": false,\n \"can_update_vendor_credits\": false,\n \"can_update_vendors\": false,\n \"can_view_appointments\": false,\n \"can_view_bills\": false,\n \"can_view_check_point_labels\": false,\n \"can_view_credit_notes\": false,\n \"can_view_customers\": false,\n \"can_view_departments\": false,\n \"can_view_document_types\": false,\n \"can_view_employees\": false,\n \"can_view_estimates\": false,\n \"can_view_expense_items\": false,\n \"can_view_expenses\": false,\n \"can_view_holidays\": false,\n \"can_view_inspection_categories\": false,\n \"can_view_inspection_check_points\": false,\n \"can_view_inspections\": false,\n \"can_view_insurance_types\": false,\n \"can_view_inventory_adjustments\": false,\n \"can_view_inventory_categories\": false,\n \"can_view_invoice_documents\": false,\n \"can_view_invoice_labels\": false,\n \"can_view_invoice_notes\": false,\n \"can_view_invoice_sequences\": false,\n \"can_view_invoices\": false,\n \"can_view_job_cards\": false,\n \"can_view_labels\": false,\n \"can_view_labor_rates\": false,\n \"can_view_make_and_models\": false,\n \"can_view_parts\": false,\n \"can_view_payment_mades\": false,\n \"can_view_payment_modes\": false,\n \"can_view_payment_recieveds\": false,\n \"can_view_payment_terms\": false,\n \"can_view_purchase_orders\": false,\n \"can_view_quick_notes\": false,\n \"can_view_quick_remarks\": false,\n \"can_view_reasons\": false,\n \"can_view_referral_sources\": false,\n \"can_view_service_group_includes\": false,\n \"can_view_service_group_parts\": false,\n \"can_view_service_group_pricings\": false,\n \"can_view_service_group_services\": false,\n \"can_view_service_groups\": false,\n \"can_view_services\": false,\n \"can_view_settings\": false,\n \"can_view_shop_calenders\": false,\n \"can_view_shop_timings\": false,\n \"can_view_shop_types\": false,\n \"can_view_task_sections\": false,\n \"can_view_task_types\": false,\n \"can_view_tasks\": false,\n \"can_view_taxes\": false,\n \"can_view_time_sheets\": false,\n \"can_view_unit_types\": false,\n \"can_view_vehicle_body_types\": false,\n \"can_view_vehicle_colors\": false,\n \"can_view_vehicle_documents\": false,\n \"can_view_vehicle_fuel_types\": false,\n \"can_view_vehicle_mile_and_kms\": false,\n \"can_view_vehicle_transmissions\": false,\n \"can_view_vehicles\": false,\n \"can_view_vendor_credits\": false,\n \"can_view_vendors\": false,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null,\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"role_id\": 1,\n \"role\": {\n \"id\": 1,\n \"name\": \"Super Admin\"\n }\n }\n}" } ] }, { "name": "Display the specified employee.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/employees/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/employees/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"type\": \"employee\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane.smith@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Technician\",\n \"salary\": \"5000.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"can_create_appointments\": false,\n \"can_create_bills\": false,\n \"can_create_check_point_labels\": false,\n \"can_create_credit_notes\": false,\n \"can_create_customers\": false,\n \"can_create_departments\": false,\n \"can_create_document_types\": false,\n \"can_create_employees\": false,\n \"can_create_estimates\": false,\n \"can_create_expense_items\": false,\n \"can_create_expenses\": false,\n \"can_create_holidays\": false,\n \"can_create_inspection_categories\": false,\n \"can_create_inspection_check_points\": false,\n \"can_create_inspections\": false,\n \"can_create_insurance_types\": false,\n \"can_create_inventory_adjustments\": false,\n \"can_create_inventory_categories\": false,\n \"can_create_invoice_documents\": false,\n \"can_create_invoice_labels\": false,\n \"can_create_invoice_notes\": false,\n \"can_create_invoice_sequences\": false,\n \"can_create_invoices\": false,\n \"can_create_job_cards\": false,\n \"can_create_labels\": false,\n \"can_create_labor_rates\": false,\n \"can_create_make_and_models\": false,\n \"can_create_parts\": false,\n \"can_create_payment_mades\": false,\n \"can_create_payment_modes\": false,\n \"can_create_payment_recieveds\": false,\n \"can_create_payment_terms\": false,\n \"can_create_purchase_orders\": false,\n \"can_create_quick_notes\": false,\n \"can_create_quick_remarks\": false,\n \"can_create_reasons\": false,\n \"can_create_referral_sources\": false,\n \"can_create_service_group_includes\": false,\n \"can_create_service_group_parts\": false,\n \"can_create_service_group_pricings\": false,\n \"can_create_service_group_services\": false,\n \"can_create_service_groups\": false,\n \"can_create_services\": false,\n \"can_create_settings\": false,\n \"can_create_shop_calenders\": false,\n \"can_create_shop_timings\": false,\n \"can_create_shop_types\": false,\n \"can_create_task_sections\": false,\n \"can_create_task_types\": false,\n \"can_create_tasks\": false,\n \"can_create_taxes\": false,\n \"can_create_time_sheets\": false,\n \"can_create_unit_types\": false,\n \"can_create_vehicle_body_types\": false,\n \"can_create_vehicle_colors\": false,\n \"can_create_vehicle_documents\": false,\n \"can_create_vehicle_fuel_types\": false,\n \"can_create_vehicle_mile_and_kms\": false,\n \"can_create_vehicle_transmissions\": false,\n \"can_create_vehicles\": false,\n \"can_create_vendor_credits\": false,\n \"can_create_vendors\": false,\n \"can_delete_appointments\": false,\n \"can_delete_bills\": false,\n \"can_delete_check_point_labels\": false,\n \"can_delete_credit_notes\": false,\n \"can_delete_customers\": false,\n \"can_delete_departments\": false,\n \"can_delete_document_types\": false,\n \"can_delete_employees\": false,\n \"can_delete_estimates\": false,\n \"can_delete_expense_items\": false,\n \"can_delete_expenses\": false,\n \"can_delete_holidays\": false,\n \"can_delete_inspection_categories\": false,\n \"can_delete_inspection_check_points\": false,\n \"can_delete_inspections\": false,\n \"can_delete_insurance_types\": false,\n \"can_delete_inventory_adjustments\": false,\n \"can_delete_inventory_categories\": false,\n \"can_delete_invoice_documents\": false,\n \"can_delete_invoice_labels\": false,\n \"can_delete_invoice_notes\": false,\n \"can_delete_invoice_sequences\": false,\n \"can_delete_invoices\": false,\n \"can_delete_job_cards\": false,\n \"can_delete_labels\": false,\n \"can_delete_labor_rates\": false,\n \"can_delete_make_and_models\": false,\n \"can_delete_parts\": false,\n \"can_delete_payment_mades\": false,\n \"can_delete_payment_modes\": false,\n \"can_delete_payment_recieveds\": false,\n \"can_delete_payment_terms\": false,\n \"can_delete_purchase_orders\": false,\n \"can_delete_quick_notes\": false,\n \"can_delete_quick_remarks\": false,\n \"can_delete_reasons\": false,\n \"can_delete_referral_sources\": false,\n \"can_delete_service_group_includes\": false,\n \"can_delete_service_group_parts\": false,\n \"can_delete_service_group_pricings\": false,\n \"can_delete_service_group_services\": false,\n \"can_delete_service_groups\": false,\n \"can_delete_services\": false,\n \"can_delete_settings\": false,\n \"can_delete_shop_calenders\": false,\n \"can_delete_shop_timings\": false,\n \"can_delete_shop_types\": false,\n \"can_delete_task_sections\": false,\n \"can_delete_task_types\": false,\n \"can_delete_tasks\": false,\n \"can_delete_taxes\": false,\n \"can_delete_time_sheets\": false,\n \"can_delete_unit_types\": false,\n \"can_delete_vehicle_body_types\": false,\n \"can_delete_vehicle_colors\": false,\n \"can_delete_vehicle_documents\": false,\n \"can_delete_vehicle_fuel_types\": false,\n \"can_delete_vehicle_mile_and_kms\": false,\n \"can_delete_vehicle_transmissions\": false,\n \"can_delete_vehicles\": false,\n \"can_delete_vendor_credits\": false,\n \"can_delete_vendors\": false,\n \"can_update_appointments\": false,\n \"can_update_bills\": false,\n \"can_update_check_point_labels\": false,\n \"can_update_credit_notes\": false,\n \"can_update_customers\": false,\n \"can_update_departments\": false,\n \"can_update_document_types\": false,\n \"can_update_employees\": false,\n \"can_update_estimates\": false,\n \"can_update_expense_items\": false,\n \"can_update_expenses\": false,\n \"can_update_holidays\": false,\n \"can_update_inspection_categories\": false,\n \"can_update_inspection_check_points\": false,\n \"can_update_inspections\": false,\n \"can_update_insurance_types\": false,\n \"can_update_inventory_adjustments\": false,\n \"can_update_inventory_categories\": false,\n \"can_update_invoice_documents\": false,\n \"can_update_invoice_labels\": false,\n \"can_update_invoice_notes\": false,\n \"can_update_invoice_sequences\": false,\n \"can_update_invoices\": false,\n \"can_update_job_cards\": false,\n \"can_update_labels\": false,\n \"can_update_labor_rates\": false,\n \"can_update_make_and_models\": false,\n \"can_update_parts\": false,\n \"can_update_payment_mades\": false,\n \"can_update_payment_modes\": false,\n \"can_update_payment_recieveds\": false,\n \"can_update_payment_terms\": false,\n \"can_update_purchase_orders\": false,\n \"can_update_quick_notes\": false,\n \"can_update_quick_remarks\": false,\n \"can_update_reasons\": false,\n \"can_update_referral_sources\": false,\n \"can_update_service_group_includes\": false,\n \"can_update_service_group_parts\": false,\n \"can_update_service_group_pricings\": false,\n \"can_update_service_group_services\": false,\n \"can_update_service_groups\": false,\n \"can_update_services\": false,\n \"can_update_settings\": false,\n \"can_update_shop_calenders\": false,\n \"can_update_shop_timings\": false,\n \"can_update_shop_types\": false,\n \"can_update_task_sections\": false,\n \"can_update_task_types\": false,\n \"can_update_tasks\": false,\n \"can_update_taxes\": false,\n \"can_update_time_sheets\": false,\n \"can_update_unit_types\": false,\n \"can_update_vehicle_body_types\": false,\n \"can_update_vehicle_colors\": false,\n \"can_update_vehicle_documents\": false,\n \"can_update_vehicle_fuel_types\": false,\n \"can_update_vehicle_mile_and_kms\": false,\n \"can_update_vehicle_transmissions\": false,\n \"can_update_vehicles\": false,\n \"can_update_vendor_credits\": false,\n \"can_update_vendors\": false,\n \"can_view_appointments\": false,\n \"can_view_bills\": false,\n \"can_view_check_point_labels\": false,\n \"can_view_credit_notes\": false,\n \"can_view_customers\": false,\n \"can_view_departments\": false,\n \"can_view_document_types\": false,\n \"can_view_employees\": false,\n \"can_view_estimates\": false,\n \"can_view_expense_items\": false,\n \"can_view_expenses\": false,\n \"can_view_holidays\": false,\n \"can_view_inspection_categories\": false,\n \"can_view_inspection_check_points\": false,\n \"can_view_inspections\": false,\n \"can_view_insurance_types\": false,\n \"can_view_inventory_adjustments\": false,\n \"can_view_inventory_categories\": false,\n \"can_view_invoice_documents\": false,\n \"can_view_invoice_labels\": false,\n \"can_view_invoice_notes\": false,\n \"can_view_invoice_sequences\": false,\n \"can_view_invoices\": false,\n \"can_view_job_cards\": false,\n \"can_view_labels\": false,\n \"can_view_labor_rates\": false,\n \"can_view_make_and_models\": false,\n \"can_view_parts\": false,\n \"can_view_payment_mades\": false,\n \"can_view_payment_modes\": false,\n \"can_view_payment_recieveds\": false,\n \"can_view_payment_terms\": false,\n \"can_view_purchase_orders\": false,\n \"can_view_quick_notes\": false,\n \"can_view_quick_remarks\": false,\n \"can_view_reasons\": false,\n \"can_view_referral_sources\": false,\n \"can_view_service_group_includes\": false,\n \"can_view_service_group_parts\": false,\n \"can_view_service_group_pricings\": false,\n \"can_view_service_group_services\": false,\n \"can_view_service_groups\": false,\n \"can_view_services\": false,\n \"can_view_settings\": false,\n \"can_view_shop_calenders\": false,\n \"can_view_shop_timings\": false,\n \"can_view_shop_types\": false,\n \"can_view_task_sections\": false,\n \"can_view_task_types\": false,\n \"can_view_tasks\": false,\n \"can_view_taxes\": false,\n \"can_view_time_sheets\": false,\n \"can_view_unit_types\": false,\n \"can_view_vehicle_body_types\": false,\n \"can_view_vehicle_colors\": false,\n \"can_view_vehicle_documents\": false,\n \"can_view_vehicle_fuel_types\": false,\n \"can_view_vehicle_mile_and_kms\": false,\n \"can_view_vehicle_transmissions\": false,\n \"can_view_vehicles\": false,\n \"can_view_vendor_credits\": false,\n \"can_view_vendors\": false,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null,\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"shop_calender\": null,\n \"shop_timing\": null,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"role_id\": 1,\n \"role\": {\n \"id\": 1,\n \"name\": \"Super Admin\"\n }\n }\n}" } ] }, { "name": "Update the specified employee.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"status\": \"active\",\n \"phone\": \"+971501234567\",\n \"department_id\": 1,\n \"wage_type\": \"Monthly\",\n \"designation\": \"Senior Technician\",\n \"salary\": 5500,\n \"password\": \"newsecret456\",\n \"role_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/employees/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"status\": \"active\",\n \"phone\": \"+971501234567\",\n \"department_id\": 1,\n \"wage_type\": \"Monthly\",\n \"designation\": \"Senior Technician\",\n \"salary\": 5500,\n \"password\": \"newsecret456\",\n \"role_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/employees/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Employee updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"type\": \"employee\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Senior Technician\",\n \"salary\": \"5500.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"can_create_appointments\": false,\n \"can_create_bills\": false,\n \"can_create_check_point_labels\": false,\n \"can_create_credit_notes\": false,\n \"can_create_customers\": false,\n \"can_create_departments\": false,\n \"can_create_document_types\": false,\n \"can_create_employees\": false,\n \"can_create_estimates\": false,\n \"can_create_expense_items\": false,\n \"can_create_expenses\": false,\n \"can_create_holidays\": false,\n \"can_create_inspection_categories\": false,\n \"can_create_inspection_check_points\": false,\n \"can_create_inspections\": false,\n \"can_create_insurance_types\": false,\n \"can_create_inventory_adjustments\": false,\n \"can_create_inventory_categories\": false,\n \"can_create_invoice_documents\": false,\n \"can_create_invoice_labels\": false,\n \"can_create_invoice_notes\": false,\n \"can_create_invoice_sequences\": false,\n \"can_create_invoices\": false,\n \"can_create_job_cards\": false,\n \"can_create_labels\": false,\n \"can_create_labor_rates\": false,\n \"can_create_make_and_models\": false,\n \"can_create_parts\": false,\n \"can_create_payment_mades\": false,\n \"can_create_payment_modes\": false,\n \"can_create_payment_recieveds\": false,\n \"can_create_payment_terms\": false,\n \"can_create_purchase_orders\": false,\n \"can_create_quick_notes\": false,\n \"can_create_quick_remarks\": false,\n \"can_create_reasons\": false,\n \"can_create_referral_sources\": false,\n \"can_create_service_group_includes\": false,\n \"can_create_service_group_parts\": false,\n \"can_create_service_group_pricings\": false,\n \"can_create_service_group_services\": false,\n \"can_create_service_groups\": false,\n \"can_create_services\": false,\n \"can_create_settings\": false,\n \"can_create_shop_calenders\": false,\n \"can_create_shop_timings\": false,\n \"can_create_shop_types\": false,\n \"can_create_task_sections\": false,\n \"can_create_task_types\": false,\n \"can_create_tasks\": false,\n \"can_create_taxes\": false,\n \"can_create_time_sheets\": false,\n \"can_create_unit_types\": false,\n \"can_create_vehicle_body_types\": false,\n \"can_create_vehicle_colors\": false,\n \"can_create_vehicle_documents\": false,\n \"can_create_vehicle_fuel_types\": false,\n \"can_create_vehicle_mile_and_kms\": false,\n \"can_create_vehicle_transmissions\": false,\n \"can_create_vehicles\": false,\n \"can_create_vendor_credits\": false,\n \"can_create_vendors\": false,\n \"can_delete_appointments\": false,\n \"can_delete_bills\": false,\n \"can_delete_check_point_labels\": false,\n \"can_delete_credit_notes\": false,\n \"can_delete_customers\": false,\n \"can_delete_departments\": false,\n \"can_delete_document_types\": false,\n \"can_delete_employees\": false,\n \"can_delete_estimates\": false,\n \"can_delete_expense_items\": false,\n \"can_delete_expenses\": false,\n \"can_delete_holidays\": false,\n \"can_delete_inspection_categories\": false,\n \"can_delete_inspection_check_points\": false,\n \"can_delete_inspections\": false,\n \"can_delete_insurance_types\": false,\n \"can_delete_inventory_adjustments\": false,\n \"can_delete_inventory_categories\": false,\n \"can_delete_invoice_documents\": false,\n \"can_delete_invoice_labels\": false,\n \"can_delete_invoice_notes\": false,\n \"can_delete_invoice_sequences\": false,\n \"can_delete_invoices\": false,\n \"can_delete_job_cards\": false,\n \"can_delete_labels\": false,\n \"can_delete_labor_rates\": false,\n \"can_delete_make_and_models\": false,\n \"can_delete_parts\": false,\n \"can_delete_payment_mades\": false,\n \"can_delete_payment_modes\": false,\n \"can_delete_payment_recieveds\": false,\n \"can_delete_payment_terms\": false,\n \"can_delete_purchase_orders\": false,\n \"can_delete_quick_notes\": false,\n \"can_delete_quick_remarks\": false,\n \"can_delete_reasons\": false,\n \"can_delete_referral_sources\": false,\n \"can_delete_service_group_includes\": false,\n \"can_delete_service_group_parts\": false,\n \"can_delete_service_group_pricings\": false,\n \"can_delete_service_group_services\": false,\n \"can_delete_service_groups\": false,\n \"can_delete_services\": false,\n \"can_delete_settings\": false,\n \"can_delete_shop_calenders\": false,\n \"can_delete_shop_timings\": false,\n \"can_delete_shop_types\": false,\n \"can_delete_task_sections\": false,\n \"can_delete_task_types\": false,\n \"can_delete_tasks\": false,\n \"can_delete_taxes\": false,\n \"can_delete_time_sheets\": false,\n \"can_delete_unit_types\": false,\n \"can_delete_vehicle_body_types\": false,\n \"can_delete_vehicle_colors\": false,\n \"can_delete_vehicle_documents\": false,\n \"can_delete_vehicle_fuel_types\": false,\n \"can_delete_vehicle_mile_and_kms\": false,\n \"can_delete_vehicle_transmissions\": false,\n \"can_delete_vehicles\": false,\n \"can_delete_vendor_credits\": false,\n \"can_delete_vendors\": false,\n \"can_update_appointments\": false,\n \"can_update_bills\": false,\n \"can_update_check_point_labels\": false,\n \"can_update_credit_notes\": false,\n \"can_update_customers\": false,\n \"can_update_departments\": false,\n \"can_update_document_types\": false,\n \"can_update_employees\": false,\n \"can_update_estimates\": false,\n \"can_update_expense_items\": false,\n \"can_update_expenses\": false,\n \"can_update_holidays\": false,\n \"can_update_inspection_categories\": false,\n \"can_update_inspection_check_points\": false,\n \"can_update_inspections\": false,\n \"can_update_insurance_types\": false,\n \"can_update_inventory_adjustments\": false,\n \"can_update_inventory_categories\": false,\n \"can_update_invoice_documents\": false,\n \"can_update_invoice_labels\": false,\n \"can_update_invoice_notes\": false,\n \"can_update_invoice_sequences\": false,\n \"can_update_invoices\": false,\n \"can_update_job_cards\": false,\n \"can_update_labels\": false,\n \"can_update_labor_rates\": false,\n \"can_update_make_and_models\": false,\n \"can_update_parts\": false,\n \"can_update_payment_mades\": false,\n \"can_update_payment_modes\": false,\n \"can_update_payment_recieveds\": false,\n \"can_update_payment_terms\": false,\n \"can_update_purchase_orders\": false,\n \"can_update_quick_notes\": false,\n \"can_update_quick_remarks\": false,\n \"can_update_reasons\": false,\n \"can_update_referral_sources\": false,\n \"can_update_service_group_includes\": false,\n \"can_update_service_group_parts\": false,\n \"can_update_service_group_pricings\": false,\n \"can_update_service_group_services\": false,\n \"can_update_service_groups\": false,\n \"can_update_services\": false,\n \"can_update_settings\": false,\n \"can_update_shop_calenders\": false,\n \"can_update_shop_timings\": false,\n \"can_update_shop_types\": false,\n \"can_update_task_sections\": false,\n \"can_update_task_types\": false,\n \"can_update_tasks\": false,\n \"can_update_taxes\": false,\n \"can_update_time_sheets\": false,\n \"can_update_unit_types\": false,\n \"can_update_vehicle_body_types\": false,\n \"can_update_vehicle_colors\": false,\n \"can_update_vehicle_documents\": false,\n \"can_update_vehicle_fuel_types\": false,\n \"can_update_vehicle_mile_and_kms\": false,\n \"can_update_vehicle_transmissions\": false,\n \"can_update_vehicles\": false,\n \"can_update_vendor_credits\": false,\n \"can_update_vendors\": false,\n \"can_view_appointments\": false,\n \"can_view_bills\": false,\n \"can_view_check_point_labels\": false,\n \"can_view_credit_notes\": false,\n \"can_view_customers\": false,\n \"can_view_departments\": false,\n \"can_view_document_types\": false,\n \"can_view_employees\": false,\n \"can_view_estimates\": false,\n \"can_view_expense_items\": false,\n \"can_view_expenses\": false,\n \"can_view_holidays\": false,\n \"can_view_inspection_categories\": false,\n \"can_view_inspection_check_points\": false,\n \"can_view_inspections\": false,\n \"can_view_insurance_types\": false,\n \"can_view_inventory_adjustments\": false,\n \"can_view_inventory_categories\": false,\n \"can_view_invoice_documents\": false,\n \"can_view_invoice_labels\": false,\n \"can_view_invoice_notes\": false,\n \"can_view_invoice_sequences\": false,\n \"can_view_invoices\": false,\n \"can_view_job_cards\": false,\n \"can_view_labels\": false,\n \"can_view_labor_rates\": false,\n \"can_view_make_and_models\": false,\n \"can_view_parts\": false,\n \"can_view_payment_mades\": false,\n \"can_view_payment_modes\": false,\n \"can_view_payment_recieveds\": false,\n \"can_view_payment_terms\": false,\n \"can_view_purchase_orders\": false,\n \"can_view_quick_notes\": false,\n \"can_view_quick_remarks\": false,\n \"can_view_reasons\": false,\n \"can_view_referral_sources\": false,\n \"can_view_service_group_includes\": false,\n \"can_view_service_group_parts\": false,\n \"can_view_service_group_pricings\": false,\n \"can_view_service_group_services\": false,\n \"can_view_service_groups\": false,\n \"can_view_services\": false,\n \"can_view_settings\": false,\n \"can_view_shop_calenders\": false,\n \"can_view_shop_timings\": false,\n \"can_view_shop_types\": false,\n \"can_view_task_sections\": false,\n \"can_view_task_types\": false,\n \"can_view_tasks\": false,\n \"can_view_taxes\": false,\n \"can_view_time_sheets\": false,\n \"can_view_unit_types\": false,\n \"can_view_vehicle_body_types\": false,\n \"can_view_vehicle_colors\": false,\n \"can_view_vehicle_documents\": false,\n \"can_view_vehicle_fuel_types\": false,\n \"can_view_vehicle_mile_and_kms\": false,\n \"can_view_vehicle_transmissions\": false,\n \"can_view_vehicles\": false,\n \"can_view_vendor_credits\": false,\n \"can_view_vendors\": false,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null,\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\",\n \"role_id\": 1,\n \"role\": {\n \"id\": 1,\n \"name\": \"Super Admin\"\n }\n }\n}" } ] }, { "name": "Remove the specified employee.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/employees/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/employees/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Employee deleted successfully.\"\n}" } ] }, { "name": "Update permissions for the specified employee.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"can_create_appointments\": false,\n \"can_create_bills\": false,\n \"can_create_check_point_labels\": false,\n \"can_create_credit_notes\": false,\n \"can_create_customers\": false,\n \"can_create_departments\": false,\n \"can_create_document_types\": false,\n \"can_create_employees\": false,\n \"can_create_estimates\": false,\n \"can_create_expense_items\": false,\n \"can_create_expenses\": false,\n \"can_create_holidays\": false,\n \"can_create_inspection_categories\": false,\n \"can_create_inspection_check_points\": false,\n \"can_create_inspections\": false,\n \"can_create_insurance_types\": false,\n \"can_create_inventory_adjustments\": false,\n \"can_create_inventory_categories\": false,\n \"can_create_invoice_documents\": false,\n \"can_create_invoice_labels\": false,\n \"can_create_invoice_notes\": false,\n \"can_create_invoice_sequences\": false,\n \"can_create_invoices\": false,\n \"can_create_job_cards\": false,\n \"can_create_labels\": false,\n \"can_create_labor_rates\": false,\n \"can_create_make_and_models\": false,\n \"can_create_parts\": false,\n \"can_create_payment_mades\": false,\n \"can_create_payment_modes\": false,\n \"can_create_payment_recieveds\": false,\n \"can_create_payment_terms\": false,\n \"can_create_purchase_orders\": false,\n \"can_create_quick_notes\": false,\n \"can_create_quick_remarks\": false,\n \"can_create_reasons\": false,\n \"can_create_referral_sources\": false,\n \"can_create_service_group_includes\": false,\n \"can_create_service_group_parts\": false,\n \"can_create_service_group_pricings\": false,\n \"can_create_service_group_services\": false,\n \"can_create_service_groups\": false,\n \"can_create_services\": false,\n \"can_create_settings\": false,\n \"can_create_shop_calenders\": false,\n \"can_create_shop_timings\": false,\n \"can_create_shop_types\": false,\n \"can_create_task_sections\": false,\n \"can_create_task_types\": false,\n \"can_create_tasks\": false,\n \"can_create_taxes\": false,\n \"can_create_time_sheets\": false,\n \"can_create_unit_types\": false,\n \"can_create_vehicle_body_types\": false,\n \"can_create_vehicle_colors\": false,\n \"can_create_vehicle_documents\": false,\n \"can_create_vehicle_fuel_types\": false,\n \"can_create_vehicle_mile_and_kms\": false,\n \"can_create_vehicle_transmissions\": false,\n \"can_create_vehicles\": false,\n \"can_create_vendor_credits\": false,\n \"can_create_vendors\": false,\n \"can_delete_appointments\": false,\n \"can_delete_bills\": false,\n \"can_delete_check_point_labels\": false,\n \"can_delete_credit_notes\": false,\n \"can_delete_customers\": false,\n \"can_delete_departments\": false,\n \"can_delete_document_types\": false,\n \"can_delete_employees\": false,\n \"can_delete_estimates\": false,\n \"can_delete_expense_items\": false,\n \"can_delete_expenses\": false,\n \"can_delete_holidays\": false,\n \"can_delete_inspection_categories\": false,\n \"can_delete_inspection_check_points\": false,\n \"can_delete_inspections\": false,\n \"can_delete_insurance_types\": false,\n \"can_delete_inventory_adjustments\": false,\n \"can_delete_inventory_categories\": false,\n \"can_delete_invoice_documents\": false,\n \"can_delete_invoice_labels\": false,\n \"can_delete_invoice_notes\": false,\n \"can_delete_invoice_sequences\": false,\n \"can_delete_invoices\": false,\n \"can_delete_job_cards\": false,\n \"can_delete_labels\": false,\n \"can_delete_labor_rates\": false,\n \"can_delete_make_and_models\": false,\n \"can_delete_parts\": false,\n \"can_delete_payment_mades\": false,\n \"can_delete_payment_modes\": false,\n \"can_delete_payment_recieveds\": false,\n \"can_delete_payment_terms\": false,\n \"can_delete_purchase_orders\": false,\n \"can_delete_quick_notes\": false,\n \"can_delete_quick_remarks\": false,\n \"can_delete_reasons\": false,\n \"can_delete_referral_sources\": false,\n \"can_delete_service_group_includes\": false,\n \"can_delete_service_group_parts\": false,\n \"can_delete_service_group_pricings\": false,\n \"can_delete_service_group_services\": false,\n \"can_delete_service_groups\": false,\n \"can_delete_services\": false,\n \"can_delete_settings\": false,\n \"can_delete_shop_calenders\": false,\n \"can_delete_shop_timings\": false,\n \"can_delete_shop_types\": false,\n \"can_delete_task_sections\": false,\n \"can_delete_task_types\": false,\n \"can_delete_tasks\": false,\n \"can_delete_taxes\": false,\n \"can_delete_time_sheets\": false,\n \"can_delete_unit_types\": false,\n \"can_delete_vehicle_body_types\": false,\n \"can_delete_vehicle_colors\": false,\n \"can_delete_vehicle_documents\": false,\n \"can_delete_vehicle_fuel_types\": false,\n \"can_delete_vehicle_mile_and_kms\": false,\n \"can_delete_vehicle_transmissions\": false,\n \"can_delete_vehicles\": false,\n \"can_delete_vendor_credits\": false,\n \"can_delete_vendors\": false,\n \"can_update_appointments\": false,\n \"can_update_bills\": false,\n \"can_update_check_point_labels\": false,\n \"can_update_credit_notes\": false,\n \"can_update_customers\": false,\n \"can_update_departments\": false,\n \"can_update_document_types\": false,\n \"can_update_employees\": false,\n \"can_update_estimates\": false,\n \"can_update_expense_items\": false,\n \"can_update_expenses\": false,\n \"can_update_holidays\": false,\n \"can_update_inspection_categories\": false,\n \"can_update_inspection_check_points\": false,\n \"can_update_inspections\": false,\n \"can_update_insurance_types\": false,\n \"can_update_inventory_adjustments\": false,\n \"can_update_inventory_categories\": false,\n \"can_update_invoice_documents\": false,\n \"can_update_invoice_labels\": false,\n \"can_update_invoice_notes\": false,\n \"can_update_invoice_sequences\": false,\n \"can_update_invoices\": false,\n \"can_update_job_cards\": false,\n \"can_update_labels\": false,\n \"can_update_labor_rates\": false,\n \"can_update_make_and_models\": false,\n \"can_update_parts\": false,\n \"can_update_payment_mades\": false,\n \"can_update_payment_modes\": false,\n \"can_update_payment_recieveds\": false,\n \"can_update_payment_terms\": false,\n \"can_update_purchase_orders\": false,\n \"can_update_quick_notes\": false,\n \"can_update_quick_remarks\": false,\n \"can_update_reasons\": false,\n \"can_update_referral_sources\": false,\n \"can_update_service_group_includes\": false,\n \"can_update_service_group_parts\": false,\n \"can_update_service_group_pricings\": false,\n \"can_update_service_group_services\": false,\n \"can_update_service_groups\": false,\n \"can_update_services\": false,\n \"can_update_settings\": false,\n \"can_update_shop_calenders\": false,\n \"can_update_shop_timings\": false,\n \"can_update_shop_types\": false,\n \"can_update_task_sections\": false,\n \"can_update_task_types\": false,\n \"can_update_tasks\": false,\n \"can_update_taxes\": false,\n \"can_update_time_sheets\": false,\n \"can_update_unit_types\": false,\n \"can_update_vehicle_body_types\": false,\n \"can_update_vehicle_colors\": false,\n \"can_update_vehicle_documents\": false,\n \"can_update_vehicle_fuel_types\": false,\n \"can_update_vehicle_mile_and_kms\": false,\n \"can_update_vehicle_transmissions\": false,\n \"can_update_vehicles\": false,\n \"can_update_vendor_credits\": false,\n \"can_update_vendors\": false,\n \"can_view_appointments\": false,\n \"can_view_bills\": false,\n \"can_view_check_point_labels\": false,\n \"can_view_credit_notes\": false,\n \"can_view_customers\": false,\n \"can_view_departments\": false,\n \"can_view_document_types\": false,\n \"can_view_employees\": false,\n \"can_view_estimates\": false,\n \"can_view_expense_items\": false,\n \"can_view_expenses\": false,\n \"can_view_holidays\": false,\n \"can_view_inspection_categories\": false,\n \"can_view_inspection_check_points\": false,\n \"can_view_inspections\": false,\n \"can_view_insurance_types\": false,\n \"can_view_inventory_adjustments\": false,\n \"can_view_inventory_categories\": false,\n \"can_view_invoice_documents\": false,\n \"can_view_invoice_labels\": false,\n \"can_view_invoice_notes\": false,\n \"can_view_invoice_sequences\": false,\n \"can_view_invoices\": false,\n \"can_view_job_cards\": false,\n \"can_view_labels\": false,\n \"can_view_labor_rates\": false,\n \"can_view_make_and_models\": false,\n \"can_view_parts\": false,\n \"can_view_payment_mades\": false,\n \"can_view_payment_modes\": false,\n \"can_view_payment_recieveds\": false,\n \"can_view_payment_terms\": false,\n \"can_view_purchase_orders\": false,\n \"can_view_quick_notes\": false,\n \"can_view_quick_remarks\": false,\n \"can_view_reasons\": false,\n \"can_view_referral_sources\": false,\n \"can_view_service_group_includes\": false,\n \"can_view_service_group_parts\": false,\n \"can_view_service_group_pricings\": false,\n \"can_view_service_group_services\": false,\n \"can_view_service_groups\": false,\n \"can_view_services\": false,\n \"can_view_settings\": false,\n \"can_view_shop_calenders\": false,\n \"can_view_shop_timings\": false,\n \"can_view_shop_types\": false,\n \"can_view_task_sections\": false,\n \"can_view_task_types\": false,\n \"can_view_tasks\": false,\n \"can_view_taxes\": false,\n \"can_view_time_sheets\": false,\n \"can_view_unit_types\": false,\n \"can_view_vehicle_body_types\": false,\n \"can_view_vehicle_colors\": false,\n \"can_view_vehicle_documents\": false,\n \"can_view_vehicle_fuel_types\": false,\n \"can_view_vehicle_mile_and_kms\": false,\n \"can_view_vehicle_transmissions\": false,\n \"can_view_vehicles\": false,\n \"can_view_vendor_credits\": false,\n \"can_view_vendors\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/employees/{{id}}/update-permissions", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}", "update-permissions" ] }, "description": "Body: boolean keys prefixed with `can_` that exist on `employees`. This sample includes every permission column from the schema (all `false` by default — set to `true` to grant)." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"can_create_appointments\": false,\n \"can_create_bills\": false,\n \"can_create_check_point_labels\": false,\n \"can_create_credit_notes\": false,\n \"can_create_customers\": false,\n \"can_create_departments\": false,\n \"can_create_document_types\": false,\n \"can_create_employees\": false,\n \"can_create_estimates\": false,\n \"can_create_expense_items\": false,\n \"can_create_expenses\": false,\n \"can_create_holidays\": false,\n \"can_create_inspection_categories\": false,\n \"can_create_inspection_check_points\": false,\n \"can_create_inspections\": false,\n \"can_create_insurance_types\": false,\n \"can_create_inventory_adjustments\": false,\n \"can_create_inventory_categories\": false,\n \"can_create_invoice_documents\": false,\n \"can_create_invoice_labels\": false,\n \"can_create_invoice_notes\": false,\n \"can_create_invoice_sequences\": false,\n \"can_create_invoices\": false,\n \"can_create_job_cards\": false,\n \"can_create_labels\": false,\n \"can_create_labor_rates\": false,\n \"can_create_make_and_models\": false,\n \"can_create_parts\": false,\n \"can_create_payment_mades\": false,\n \"can_create_payment_modes\": false,\n \"can_create_payment_recieveds\": false,\n \"can_create_payment_terms\": false,\n \"can_create_purchase_orders\": false,\n \"can_create_quick_notes\": false,\n \"can_create_quick_remarks\": false,\n \"can_create_reasons\": false,\n \"can_create_referral_sources\": false,\n \"can_create_service_group_includes\": false,\n \"can_create_service_group_parts\": false,\n \"can_create_service_group_pricings\": false,\n \"can_create_service_group_services\": false,\n \"can_create_service_groups\": false,\n \"can_create_services\": false,\n \"can_create_settings\": false,\n \"can_create_shop_calenders\": false,\n \"can_create_shop_timings\": false,\n \"can_create_shop_types\": false,\n \"can_create_task_sections\": false,\n \"can_create_task_types\": false,\n \"can_create_tasks\": false,\n \"can_create_taxes\": false,\n \"can_create_time_sheets\": false,\n \"can_create_unit_types\": false,\n \"can_create_vehicle_body_types\": false,\n \"can_create_vehicle_colors\": false,\n \"can_create_vehicle_documents\": false,\n \"can_create_vehicle_fuel_types\": false,\n \"can_create_vehicle_mile_and_kms\": false,\n \"can_create_vehicle_transmissions\": false,\n \"can_create_vehicles\": false,\n \"can_create_vendor_credits\": false,\n \"can_create_vendors\": false,\n \"can_delete_appointments\": false,\n \"can_delete_bills\": false,\n \"can_delete_check_point_labels\": false,\n \"can_delete_credit_notes\": false,\n \"can_delete_customers\": false,\n \"can_delete_departments\": false,\n \"can_delete_document_types\": false,\n \"can_delete_employees\": false,\n \"can_delete_estimates\": false,\n \"can_delete_expense_items\": false,\n \"can_delete_expenses\": false,\n \"can_delete_holidays\": false,\n \"can_delete_inspection_categories\": false,\n \"can_delete_inspection_check_points\": false,\n \"can_delete_inspections\": false,\n \"can_delete_insurance_types\": false,\n \"can_delete_inventory_adjustments\": false,\n \"can_delete_inventory_categories\": false,\n \"can_delete_invoice_documents\": false,\n \"can_delete_invoice_labels\": false,\n \"can_delete_invoice_notes\": false,\n \"can_delete_invoice_sequences\": false,\n \"can_delete_invoices\": false,\n \"can_delete_job_cards\": false,\n \"can_delete_labels\": false,\n \"can_delete_labor_rates\": false,\n \"can_delete_make_and_models\": false,\n \"can_delete_parts\": false,\n \"can_delete_payment_mades\": false,\n \"can_delete_payment_modes\": false,\n \"can_delete_payment_recieveds\": false,\n \"can_delete_payment_terms\": false,\n \"can_delete_purchase_orders\": false,\n \"can_delete_quick_notes\": false,\n \"can_delete_quick_remarks\": false,\n \"can_delete_reasons\": false,\n \"can_delete_referral_sources\": false,\n \"can_delete_service_group_includes\": false,\n \"can_delete_service_group_parts\": false,\n \"can_delete_service_group_pricings\": false,\n \"can_delete_service_group_services\": false,\n \"can_delete_service_groups\": false,\n \"can_delete_services\": false,\n \"can_delete_settings\": false,\n \"can_delete_shop_calenders\": false,\n \"can_delete_shop_timings\": false,\n \"can_delete_shop_types\": false,\n \"can_delete_task_sections\": false,\n \"can_delete_task_types\": false,\n \"can_delete_tasks\": false,\n \"can_delete_taxes\": false,\n \"can_delete_time_sheets\": false,\n \"can_delete_unit_types\": false,\n \"can_delete_vehicle_body_types\": false,\n \"can_delete_vehicle_colors\": false,\n \"can_delete_vehicle_documents\": false,\n \"can_delete_vehicle_fuel_types\": false,\n \"can_delete_vehicle_mile_and_kms\": false,\n \"can_delete_vehicle_transmissions\": false,\n \"can_delete_vehicles\": false,\n \"can_delete_vendor_credits\": false,\n \"can_delete_vendors\": false,\n \"can_update_appointments\": false,\n \"can_update_bills\": false,\n \"can_update_check_point_labels\": false,\n \"can_update_credit_notes\": false,\n \"can_update_customers\": false,\n \"can_update_departments\": false,\n \"can_update_document_types\": false,\n \"can_update_employees\": false,\n \"can_update_estimates\": false,\n \"can_update_expense_items\": false,\n \"can_update_expenses\": false,\n \"can_update_holidays\": false,\n \"can_update_inspection_categories\": false,\n \"can_update_inspection_check_points\": false,\n \"can_update_inspections\": false,\n \"can_update_insurance_types\": false,\n \"can_update_inventory_adjustments\": false,\n \"can_update_inventory_categories\": false,\n \"can_update_invoice_documents\": false,\n \"can_update_invoice_labels\": false,\n \"can_update_invoice_notes\": false,\n \"can_update_invoice_sequences\": false,\n \"can_update_invoices\": false,\n \"can_update_job_cards\": false,\n \"can_update_labels\": false,\n \"can_update_labor_rates\": false,\n \"can_update_make_and_models\": false,\n \"can_update_parts\": false,\n \"can_update_payment_mades\": false,\n \"can_update_payment_modes\": false,\n \"can_update_payment_recieveds\": false,\n \"can_update_payment_terms\": false,\n \"can_update_purchase_orders\": false,\n \"can_update_quick_notes\": false,\n \"can_update_quick_remarks\": false,\n \"can_update_reasons\": false,\n \"can_update_referral_sources\": false,\n \"can_update_service_group_includes\": false,\n \"can_update_service_group_parts\": false,\n \"can_update_service_group_pricings\": false,\n \"can_update_service_group_services\": false,\n \"can_update_service_groups\": false,\n \"can_update_services\": false,\n \"can_update_settings\": false,\n \"can_update_shop_calenders\": false,\n \"can_update_shop_timings\": false,\n \"can_update_shop_types\": false,\n \"can_update_task_sections\": false,\n \"can_update_task_types\": false,\n \"can_update_tasks\": false,\n \"can_update_taxes\": false,\n \"can_update_time_sheets\": false,\n \"can_update_unit_types\": false,\n \"can_update_vehicle_body_types\": false,\n \"can_update_vehicle_colors\": false,\n \"can_update_vehicle_documents\": false,\n \"can_update_vehicle_fuel_types\": false,\n \"can_update_vehicle_mile_and_kms\": false,\n \"can_update_vehicle_transmissions\": false,\n \"can_update_vehicles\": false,\n \"can_update_vendor_credits\": false,\n \"can_update_vendors\": false,\n \"can_view_appointments\": false,\n \"can_view_bills\": false,\n \"can_view_check_point_labels\": false,\n \"can_view_credit_notes\": false,\n \"can_view_customers\": false,\n \"can_view_departments\": false,\n \"can_view_document_types\": false,\n \"can_view_employees\": false,\n \"can_view_estimates\": false,\n \"can_view_expense_items\": false,\n \"can_view_expenses\": false,\n \"can_view_holidays\": false,\n \"can_view_inspection_categories\": false,\n \"can_view_inspection_check_points\": false,\n \"can_view_inspections\": false,\n \"can_view_insurance_types\": false,\n \"can_view_inventory_adjustments\": false,\n \"can_view_inventory_categories\": false,\n \"can_view_invoice_documents\": false,\n \"can_view_invoice_labels\": false,\n \"can_view_invoice_notes\": false,\n \"can_view_invoice_sequences\": false,\n \"can_view_invoices\": false,\n \"can_view_job_cards\": false,\n \"can_view_labels\": false,\n \"can_view_labor_rates\": false,\n \"can_view_make_and_models\": false,\n \"can_view_parts\": false,\n \"can_view_payment_mades\": false,\n \"can_view_payment_modes\": false,\n \"can_view_payment_recieveds\": false,\n \"can_view_payment_terms\": false,\n \"can_view_purchase_orders\": false,\n \"can_view_quick_notes\": false,\n \"can_view_quick_remarks\": false,\n \"can_view_reasons\": false,\n \"can_view_referral_sources\": false,\n \"can_view_service_group_includes\": false,\n \"can_view_service_group_parts\": false,\n \"can_view_service_group_pricings\": false,\n \"can_view_service_group_services\": false,\n \"can_view_service_groups\": false,\n \"can_view_services\": false,\n \"can_view_settings\": false,\n \"can_view_shop_calenders\": false,\n \"can_view_shop_timings\": false,\n \"can_view_shop_types\": false,\n \"can_view_task_sections\": false,\n \"can_view_task_types\": false,\n \"can_view_tasks\": false,\n \"can_view_taxes\": false,\n \"can_view_time_sheets\": false,\n \"can_view_unit_types\": false,\n \"can_view_vehicle_body_types\": false,\n \"can_view_vehicle_colors\": false,\n \"can_view_vehicle_documents\": false,\n \"can_view_vehicle_fuel_types\": false,\n \"can_view_vehicle_mile_and_kms\": false,\n \"can_view_vehicle_transmissions\": false,\n \"can_view_vehicles\": false,\n \"can_view_vendor_credits\": false,\n \"can_view_vendors\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/employees/{{id}}/update-permissions", "host": [ "{{base_url}}" ], "path": [ "api", "employees", "{{id}}", "update-permissions" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Employee permissions updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"type\": \"employee\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane.smith@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Technician\",\n \"salary\": \"5000.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"can_create_appointments\": false,\n \"can_create_bills\": false,\n \"can_create_check_point_labels\": false,\n \"can_create_credit_notes\": false,\n \"can_create_customers\": false,\n \"can_create_departments\": false,\n \"can_create_document_types\": false,\n \"can_create_employees\": false,\n \"can_create_estimates\": true,\n \"can_create_expense_items\": false,\n \"can_create_expenses\": false,\n \"can_create_holidays\": false,\n \"can_create_inspection_categories\": false,\n \"can_create_inspection_check_points\": false,\n \"can_create_inspections\": false,\n \"can_create_insurance_types\": false,\n \"can_create_inventory_adjustments\": false,\n \"can_create_inventory_categories\": false,\n \"can_create_invoice_documents\": false,\n \"can_create_invoice_labels\": false,\n \"can_create_invoice_notes\": false,\n \"can_create_invoice_sequences\": false,\n \"can_create_invoices\": false,\n \"can_create_job_cards\": false,\n \"can_create_labels\": false,\n \"can_create_labor_rates\": false,\n \"can_create_make_and_models\": false,\n \"can_create_parts\": false,\n \"can_create_payment_mades\": false,\n \"can_create_payment_modes\": false,\n \"can_create_payment_recieveds\": false,\n \"can_create_payment_terms\": false,\n \"can_create_purchase_orders\": false,\n \"can_create_quick_notes\": false,\n \"can_create_quick_remarks\": false,\n \"can_create_reasons\": false,\n \"can_create_referral_sources\": false,\n \"can_create_service_group_includes\": false,\n \"can_create_service_group_parts\": false,\n \"can_create_service_group_pricings\": false,\n \"can_create_service_group_services\": false,\n \"can_create_service_groups\": false,\n \"can_create_services\": false,\n \"can_create_settings\": false,\n \"can_create_shop_calenders\": false,\n \"can_create_shop_timings\": false,\n \"can_create_shop_types\": false,\n \"can_create_task_sections\": false,\n \"can_create_task_types\": false,\n \"can_create_tasks\": false,\n \"can_create_taxes\": false,\n \"can_create_time_sheets\": false,\n \"can_create_unit_types\": false,\n \"can_create_vehicle_body_types\": false,\n \"can_create_vehicle_colors\": false,\n \"can_create_vehicle_documents\": false,\n \"can_create_vehicle_fuel_types\": false,\n \"can_create_vehicle_mile_and_kms\": false,\n \"can_create_vehicle_transmissions\": false,\n \"can_create_vehicles\": false,\n \"can_create_vendor_credits\": false,\n \"can_create_vendors\": false,\n \"can_delete_appointments\": false,\n \"can_delete_bills\": false,\n \"can_delete_check_point_labels\": false,\n \"can_delete_credit_notes\": false,\n \"can_delete_customers\": false,\n \"can_delete_departments\": false,\n \"can_delete_document_types\": false,\n \"can_delete_employees\": false,\n \"can_delete_estimates\": false,\n \"can_delete_expense_items\": false,\n \"can_delete_expenses\": false,\n \"can_delete_holidays\": false,\n \"can_delete_inspection_categories\": false,\n \"can_delete_inspection_check_points\": false,\n \"can_delete_inspections\": false,\n \"can_delete_insurance_types\": false,\n \"can_delete_inventory_adjustments\": false,\n \"can_delete_inventory_categories\": false,\n \"can_delete_invoice_documents\": false,\n \"can_delete_invoice_labels\": false,\n \"can_delete_invoice_notes\": false,\n \"can_delete_invoice_sequences\": false,\n \"can_delete_invoices\": false,\n \"can_delete_job_cards\": false,\n \"can_delete_labels\": false,\n \"can_delete_labor_rates\": false,\n \"can_delete_make_and_models\": false,\n \"can_delete_parts\": false,\n \"can_delete_payment_mades\": false,\n \"can_delete_payment_modes\": false,\n \"can_delete_payment_recieveds\": false,\n \"can_delete_payment_terms\": false,\n \"can_delete_purchase_orders\": false,\n \"can_delete_quick_notes\": false,\n \"can_delete_quick_remarks\": false,\n \"can_delete_reasons\": false,\n \"can_delete_referral_sources\": false,\n \"can_delete_service_group_includes\": false,\n \"can_delete_service_group_parts\": false,\n \"can_delete_service_group_pricings\": false,\n \"can_delete_service_group_services\": false,\n \"can_delete_service_groups\": false,\n \"can_delete_services\": false,\n \"can_delete_settings\": false,\n \"can_delete_shop_calenders\": false,\n \"can_delete_shop_timings\": false,\n \"can_delete_shop_types\": false,\n \"can_delete_task_sections\": false,\n \"can_delete_task_types\": false,\n \"can_delete_tasks\": false,\n \"can_delete_taxes\": false,\n \"can_delete_time_sheets\": false,\n \"can_delete_unit_types\": false,\n \"can_delete_vehicle_body_types\": false,\n \"can_delete_vehicle_colors\": false,\n \"can_delete_vehicle_documents\": false,\n \"can_delete_vehicle_fuel_types\": false,\n \"can_delete_vehicle_mile_and_kms\": false,\n \"can_delete_vehicle_transmissions\": false,\n \"can_delete_vehicles\": false,\n \"can_delete_vendor_credits\": false,\n \"can_delete_vendors\": false,\n \"can_update_appointments\": false,\n \"can_update_bills\": false,\n \"can_update_check_point_labels\": false,\n \"can_update_credit_notes\": false,\n \"can_update_customers\": false,\n \"can_update_departments\": false,\n \"can_update_document_types\": false,\n \"can_update_employees\": false,\n \"can_update_estimates\": false,\n \"can_update_expense_items\": false,\n \"can_update_expenses\": false,\n \"can_update_holidays\": false,\n \"can_update_inspection_categories\": false,\n \"can_update_inspection_check_points\": false,\n \"can_update_inspections\": false,\n \"can_update_insurance_types\": false,\n \"can_update_inventory_adjustments\": false,\n \"can_update_inventory_categories\": false,\n \"can_update_invoice_documents\": false,\n \"can_update_invoice_labels\": false,\n \"can_update_invoice_notes\": false,\n \"can_update_invoice_sequences\": false,\n \"can_update_invoices\": false,\n \"can_update_job_cards\": false,\n \"can_update_labels\": false,\n \"can_update_labor_rates\": false,\n \"can_update_make_and_models\": false,\n \"can_update_parts\": false,\n \"can_update_payment_mades\": false,\n \"can_update_payment_modes\": false,\n \"can_update_payment_recieveds\": false,\n \"can_update_payment_terms\": false,\n \"can_update_purchase_orders\": false,\n \"can_update_quick_notes\": false,\n \"can_update_quick_remarks\": false,\n \"can_update_reasons\": false,\n \"can_update_referral_sources\": false,\n \"can_update_service_group_includes\": false,\n \"can_update_service_group_parts\": false,\n \"can_update_service_group_pricings\": false,\n \"can_update_service_group_services\": false,\n \"can_update_service_groups\": false,\n \"can_update_services\": false,\n \"can_update_settings\": false,\n \"can_update_shop_calenders\": false,\n \"can_update_shop_timings\": false,\n \"can_update_shop_types\": false,\n \"can_update_task_sections\": false,\n \"can_update_task_types\": false,\n \"can_update_tasks\": false,\n \"can_update_taxes\": false,\n \"can_update_time_sheets\": false,\n \"can_update_unit_types\": false,\n \"can_update_vehicle_body_types\": false,\n \"can_update_vehicle_colors\": false,\n \"can_update_vehicle_documents\": false,\n \"can_update_vehicle_fuel_types\": false,\n \"can_update_vehicle_mile_and_kms\": false,\n \"can_update_vehicle_transmissions\": false,\n \"can_update_vehicles\": false,\n \"can_update_vendor_credits\": false,\n \"can_update_vendors\": false,\n \"can_view_appointments\": false,\n \"can_view_bills\": false,\n \"can_view_check_point_labels\": false,\n \"can_view_credit_notes\": false,\n \"can_view_customers\": true,\n \"can_view_departments\": false,\n \"can_view_document_types\": false,\n \"can_view_employees\": false,\n \"can_view_estimates\": false,\n \"can_view_expense_items\": false,\n \"can_view_expenses\": false,\n \"can_view_holidays\": false,\n \"can_view_inspection_categories\": false,\n \"can_view_inspection_check_points\": false,\n \"can_view_inspections\": false,\n \"can_view_insurance_types\": false,\n \"can_view_inventory_adjustments\": false,\n \"can_view_inventory_categories\": false,\n \"can_view_invoice_documents\": false,\n \"can_view_invoice_labels\": false,\n \"can_view_invoice_notes\": false,\n \"can_view_invoice_sequences\": false,\n \"can_view_invoices\": false,\n \"can_view_job_cards\": true,\n \"can_view_labels\": false,\n \"can_view_labor_rates\": false,\n \"can_view_make_and_models\": false,\n \"can_view_parts\": false,\n \"can_view_payment_mades\": false,\n \"can_view_payment_modes\": false,\n \"can_view_payment_recieveds\": false,\n \"can_view_payment_terms\": false,\n \"can_view_purchase_orders\": false,\n \"can_view_quick_notes\": false,\n \"can_view_quick_remarks\": false,\n \"can_view_reasons\": false,\n \"can_view_referral_sources\": false,\n \"can_view_service_group_includes\": false,\n \"can_view_service_group_parts\": false,\n \"can_view_service_group_pricings\": false,\n \"can_view_service_group_services\": false,\n \"can_view_service_groups\": false,\n \"can_view_services\": false,\n \"can_view_settings\": false,\n \"can_view_shop_calenders\": false,\n \"can_view_shop_timings\": false,\n \"can_view_shop_types\": false,\n \"can_view_task_sections\": false,\n \"can_view_task_types\": false,\n \"can_view_tasks\": false,\n \"can_view_taxes\": false,\n \"can_view_time_sheets\": false,\n \"can_view_unit_types\": false,\n \"can_view_vehicle_body_types\": false,\n \"can_view_vehicle_colors\": false,\n \"can_view_vehicle_documents\": false,\n \"can_view_vehicle_fuel_types\": false,\n \"can_view_vehicle_mile_and_kms\": false,\n \"can_view_vehicle_transmissions\": false,\n \"can_view_vehicles\": false,\n \"can_view_vendor_credits\": false,\n \"can_view_vendors\": false,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null,\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"shop_calender\": null,\n \"shop_timing\": null,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\",\n \"role_id\": 1,\n \"role\": {\n \"id\": 1,\n \"name\": \"Super Admin\"\n }\n }\n}" } ] }, { "name": "Auto generate sequence by table.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/auto-generate/{{table}}", "host": [ "{{base_url}}" ], "path": [ "api", "auto-generate", "{{table}}" ] }, "description": "Set {{table}} to any supported table with a number column. Explicit prefixes: job_cards=ORD-, estimates=EST-, invoices=INV-, purchase_orders=PO-, bills=BILL-, expenses=EXP-, tasks=TASK-, appointments=APPT-, services=SRV-, parts=PART-, expense_items=EXP-ITEM-, inspections=INS-. Returns next sequence like ORD-0001." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/auto-generate/job_cards", "host": [ "{{base_url}}" ], "path": [ "api", "auto-generate", "job_cards" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": \"ORD-0001\"\n}" } ] } ] }, { "name": "Roles", "item": [ { "name": "Display a listing of roles.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/roles", "host": [ "{{base_url}}" ], "path": [ "api", "roles" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/roles", "host": [ "{{base_url}}" ], "path": [ "api", "roles" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"Super Admin\",\n \"description\": \"System role with full permissions.\",\n \"can_view_customers\": true,\n \"can_update_job_cards\": true\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "Store a newly created role.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Workshop Manager\",\n \"description\": \"Operational manager role\",\n \"can_view_customers\": true,\n \"can_update_job_cards\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/roles", "host": [ "{{base_url}}" ], "path": [ "api", "roles" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Workshop Manager\",\n \"description\": \"Operational manager role\",\n \"can_view_customers\": true,\n \"can_update_job_cards\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/roles", "host": [ "{{base_url}}" ], "path": [ "api", "roles" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Role created successfully.\",\n \"data\": {\n \"id\": 2,\n \"name\": \"Workshop Manager\",\n \"description\": \"Operational manager role\",\n \"can_view_customers\": true,\n \"can_update_job_cards\": true\n }\n}" } ] }, { "name": "Update the specified role.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Workshop Supervisor\",\n \"description\": \"Updated role\",\n \"can_update_job_cards\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/roles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "roles", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Workshop Supervisor\",\n \"description\": \"Updated role\",\n \"can_update_job_cards\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/roles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "roles", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Role updated successfully.\",\n \"data\": {\n \"id\": 2,\n \"name\": \"Workshop Supervisor\",\n \"description\": \"Updated role\",\n \"can_update_job_cards\": true\n }\n}" } ] }, { "name": "Remove the specified role.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/roles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "roles", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/roles/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "roles", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Role deleted successfully.\"\n}" } ] } ] }, { "name": "Unit Types", "item": [ { "name": "Display a listing of unit types.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/unit-types", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/unit-types", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Each\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created unit type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Each\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/unit-types", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Each\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/unit-types", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Each\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified unit type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Each\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/unit-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Each\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/unit-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Each\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified unit type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/unit-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/unit-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "unit-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Favorite Unit Type", "item": [ { "name": "Mark a unit type as favorite.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-unit-type", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-unit-type" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-unit-type", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-unit-type" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Each\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Favorite Unit Type", "item": [ { "name": "Remove favorite flag from a unit type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-unit-type", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-unit-type" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-unit-type", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-unit-type" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Each\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Inventory Categories", "item": [ { "name": "Display a listing of inventory categories.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"title\": \"Engine Parts\",\n \"image\": \"string\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created inventory category.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Oil & Fluids\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Oil & Fluids\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"title\": \"Engine Parts\",\n \"image\": \"string\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified inventory category.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Oil & Fluids\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Oil & Fluids\",\n \"shop_type_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"title\": \"Engine Parts\",\n \"image\": \"string\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified inventory category.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-categories", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Favorite Inventory Category", "item": [ { "name": "Mark an inventory category as favorite.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-inventory-category", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-inventory-category" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-inventory-category", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-inventory-category" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"title\": \"Engine Parts\",\n \"image\": \"string\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Favorite Inventory Category", "item": [ { "name": "Remove favorite flag from an inventory category.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-inventory-category", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-inventory-category" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-inventory-category", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-inventory-category" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"title\": \"Engine Parts\",\n \"image\": \"string\",\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Labor Rates", "item": [ { "name": "Display a listing of labor rates.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labor-rates", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labor-rates", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Standard Labor Rate\",\n \"rate\": 50,\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created labor rate.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Standard Labor\",\n \"rate\": 75.0\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labor-rates", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Standard Labor\",\n \"rate\": 75.0\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labor-rates", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Labor Rate\",\n \"rate\": 50,\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified labor rate.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Standard Labor\",\n \"rate\": 75.0\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labor-rates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Standard Labor\",\n \"rate\": 75.0\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labor-rates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Labor Rate\",\n \"rate\": 50,\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified labor rate.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labor-rates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labor-rates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labor-rates", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Favorite Labor Rate", "item": [ { "name": "Mark a labor rate as favorite.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-labor-rate", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-labor-rate" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-favorite-labor-rate", "host": [ "{{base_url}}" ], "path": [ "api", "set-favorite-labor-rate" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Labor Rate\",\n \"rate\": 50,\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Favorite Labor Rate", "item": [ { "name": "Remove favorite flag from a labor rate.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-labor-rate", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-labor-rate" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-favorite-labor-rate", "host": [ "{{base_url}}" ], "path": [ "api", "remove-favorite-labor-rate" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Labor Rate\",\n \"rate\": 50,\n \"is_favorite\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Vendors", "item": [ { "name": "Display a listing of vendors.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendors", "host": [ "{{base_url}}" ], "path": [ "api", "vendors" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendors", "host": [ "{{base_url}}" ], "path": [ "api", "vendors" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vendor.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"payment_terms_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendors", "host": [ "{{base_url}}" ], "path": [ "api", "vendors" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"payment_terms_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendors", "host": [ "{{base_url}}" ], "path": [ "api", "vendors" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vendor.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"payment_terms_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendors", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"payment_terms_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendors", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vendor.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendors", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendors/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendors", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Toggle Vendor Status", "item": [ { "name": "POST /api/toggle-vendor-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-vendor-status", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-vendor-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-vendor-status", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-vendor-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Create Vendor Address", "item": [ { "name": "POST /api/create-vendor-address", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vendor_id\": 1,\n \"address_line_1\": \"123 Main Street\",\n \"address_line_2\": \"Suite 100\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\",\n \"phone_number\": \"+971501234567\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/create-vendor-address", "host": [ "{{base_url}}" ], "path": [ "api", "create-vendor-address" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vendor_id\": 1,\n \"address_line_1\": \"123 Main Street\",\n \"address_line_2\": \"Suite 100\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\",\n \"phone_number\": \"+971501234567\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/create-vendor-address", "host": [ "{{base_url}}" ], "path": [ "api", "create-vendor-address" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"salutation\": \"Mr.\",\n \"first_name\": \"Ali\",\n \"last_name\": \"Hassan\",\n \"company_name\": \"Hassan Parts Co.\",\n \"email\": \"ali@example.com\",\n \"phone\": \"+971501234567\",\n \"alternate_phone\": \"string\",\n \"opening_balance\": 0,\n \"credit_limit\": 0,\n \"website\": \"string\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Vendor Address", "item": [ { "name": "GET /api/vendor-address/{id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-address/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-address", "{{id}}" ] }, "description": "Path `id` is the **vendor id** (not the address id). Returns the first `vendor_addresses` row for that vendor with `country` and `state` loaded, or `data: null` if none." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-address/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-address", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"vendor_id\": 1,\n \"title\": \"Main warehouse\",\n \"address_line_1\": \"123 Industrial Rd\",\n \"address_line_2\": null,\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\",\n \"phone_number\": \"+971501234567\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"country\": {\n \"id\": 1,\n \"name\": \"United Arab Emirates\"\n },\n \"state\": {\n \"id\": 1,\n \"name\": \"Dubai\"\n }\n }\n}" } ] } ] }, { "name": "Inspection Categories", "item": [ { "name": "GET /api/inspection-categories", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"inspection_name\": \"Safety Inspection\",\n \"inventory_category_id\": 1,\n \"shop_type_id\": 1,\n \"item_code\": \"INSP-CAT-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"string\",\n \"description\": \"string\",\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"sales_chart_of_account\": \"string\",\n \"selling_price\": 100,\n \"labor_hours\": 1,\n \"sales_information\": true,\n \"purchase_information\": false,\n \"purchase_price\": 1.0,\n \"purchase_chart_of_account\": \"string\",\n \"vendor_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created inspection category.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"status\": \"in_progress\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"status\": \"in_progress\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-categories", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_name\": \"Safety Inspection\",\n \"inventory_category_id\": 1,\n \"shop_type_id\": 1,\n \"item_code\": \"INSP-CAT-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"string\",\n \"description\": \"string\",\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"sales_chart_of_account\": \"string\",\n \"selling_price\": 100,\n \"labor_hours\": 1,\n \"sales_information\": true,\n \"purchase_information\": false,\n \"purchase_price\": 1.0,\n \"purchase_chart_of_account\": \"string\",\n \"vendor_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified inspection category.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"status\": \"in_progress\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"status\": \"in_progress\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_name\": \"Safety Inspection\",\n \"inventory_category_id\": 1,\n \"shop_type_id\": 1,\n \"item_code\": \"INSP-CAT-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"string\",\n \"description\": \"string\",\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"sales_chart_of_account\": \"string\",\n \"selling_price\": 100,\n \"labor_hours\": 1,\n \"sales_information\": true,\n \"purchase_information\": false,\n \"purchase_price\": 1.0,\n \"purchase_chart_of_account\": \"string\",\n \"vendor_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified inspection category.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-categories/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-categories", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Inspections", "item": [ { "name": "Display a listing of inspections.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspections", "host": [ "{{base_url}}" ], "path": [ "api", "inspections" ] }, "description": "Optional query: search, customer_id, vehicle_id, job_card_id, department_id, inspection_category_id, employee_id, date_from, date_to, sort_by (id, title, order_number, date, time, status, created_at, updated_at), sort_order (asc|desc), per_page (1-100). Default order: date desc, time desc. Each item includes labels, job_card, inspection_category, labor_rate." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspections", "host": [ "{{base_url}}" ], "path": [ "api", "inspections" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"employee_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Initial walk-around.\",\n \"status\": \"in_progress\",\n \"job_card_id\": 1,\n \"inspection_category_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": \"120.00\",\n \"working_hours\": \"2.50\",\n \"labor_hours\": \"2.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-123\",\n \"department_id\": 1,\n \"description\": \"Full vehicle inspection.\",\n \"labels\": [\n {\n \"id\": 1,\n \"title\": \"Safety\",\n \"color_code\": \"#e63946\",\n \"pivot\": {\n \"inspection_id\": 1,\n \"label_id\": 1\n }\n }\n ],\n \"job_card\": {\n \"id\": 1,\n \"title\": \"JC-001\",\n \"order_number\": \"ORD-1001\"\n },\n \"inspection_category\": {\n \"id\": 1,\n \"inspection_name\": \"Pre-Delivery\"\n },\n \"labor_rate\": {\n \"id\": 1,\n \"title\": \"Standard\",\n \"rate\": \"95.00\",\n \"is_favorite\": true\n },\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75,\n \"from\": 1,\n \"to\": 15\n }\n}" } ] }, { "name": "Store a newly created inspection.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"employee_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Initial walk-around notes.\",\n \"status\": \"in_progress\",\n \"job_card_id\": null,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": 120.0,\n \"working_hours\": 2.5,\n \"labor_hours\": 2.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-123\",\n \"description\": \"Full vehicle inspection.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections", "host": [ "{{base_url}}" ], "path": [ "api", "inspections" ] }, "description": "Required: title, customer_id, vehicle_id, department_id, inspection_category_id, employee_id, order_number, date, time (H:i:s). Optional: note, status, job_card_id, rate_type (flat_rate|hourly), labor_rate_id, quantity, rate, working_hours, labor_hours, tax, chart_of_account, description." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"employee_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Initial walk-around notes.\",\n \"status\": \"in_progress\",\n \"job_card_id\": null,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": 120.0,\n \"working_hours\": 2.5,\n \"labor_hours\": 2.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-123\",\n \"description\": \"Full vehicle inspection.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections", "host": [ "{{base_url}}" ], "path": [ "api", "inspections" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Inspection created successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"employee_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"09:00:00\",\n \"note\": \"Initial walk-around notes.\",\n \"status\": \"in_progress\",\n \"job_card_id\": null,\n \"inspection_category_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": \"120.00\",\n \"working_hours\": \"2.50\",\n \"labor_hours\": \"2.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-123\",\n \"department_id\": 1,\n \"description\": \"Full vehicle inspection.\",\n \"labels\": [],\n \"job_card\": null,\n \"inspection_category\": {\n \"id\": 1,\n \"inspection_name\": \"Pre-Delivery\"\n },\n \"labor_rate\": {\n \"id\": 1,\n \"title\": \"Standard\",\n \"rate\": \"95.00\",\n \"is_favorite\": true\n },\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified inspection.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection (updated)\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"employee_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"10:30:00\",\n \"note\": \"Updated notes.\",\n \"status\": \"completed\",\n \"job_card_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 2,\n \"quantity\": 2,\n \"rate\": 135.5,\n \"working_hours\": 3.0,\n \"labor_hours\": 2.75,\n \"tax\": \"8%\",\n \"chart_of_account\": \"COA-456\",\n \"description\": \"Inspection completed.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}" ] }, "description": "Partial update: send only fields to change. Same optional fields as create (including quantity); use null for job_card_id or labor_rate_id to clear when allowed." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Service Inspection (updated)\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"employee_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"10:30:00\",\n \"note\": \"Updated notes.\",\n \"status\": \"completed\",\n \"job_card_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 2,\n \"quantity\": 2,\n \"rate\": 135.5,\n \"working_hours\": 3.0,\n \"labor_hours\": 2.75,\n \"tax\": \"8%\",\n \"chart_of_account\": \"COA-456\",\n \"description\": \"Inspection completed.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Inspection updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Pre-Service Inspection (updated)\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"employee_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"10:30:00\",\n \"note\": \"Updated notes.\",\n \"status\": \"completed\",\n \"job_card_id\": 1,\n \"inspection_category_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 2,\n \"quantity\": 2,\n \"rate\": \"135.50\",\n \"working_hours\": \"3.00\",\n \"labor_hours\": \"2.75\",\n \"tax\": \"8%\",\n \"chart_of_account\": \"COA-456\",\n \"department_id\": 1,\n \"description\": \"Inspection completed.\",\n \"labels\": [],\n \"job_card\": {\n \"id\": 1,\n \"title\": \"JC-001\",\n \"order_number\": \"ORD-1001\"\n },\n \"inspection_category\": {\n \"id\": 1,\n \"inspection_name\": \"Pre-Delivery\"\n },\n \"labor_rate\": {\n \"id\": 2,\n \"title\": \"Premium\",\n \"rate\": \"110.00\",\n \"is_favorite\": false\n },\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:30:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified inspection.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Inspection deleted successfully\"\n}" } ] }, { "name": "POST /api/inspections/{id}/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "Repeat for multiple files", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "add-attachment" ] }, "description": "Multipart: `attachments[]` (one or more files). Max 20 per inspection total; 5 MB each. Mimes: images, video, audio, pdf, office docs." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "Repeat for multiple files", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "add-attachment" ] }, "description": "Multipart: `attachments[]` (one or more files). Max 20 per inspection total; 5 MB each. Mimes: images, video, audio, pdf, office docs." }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\"message\":\"Attachment(s) added successfully\",\"data\":{\"id\":1,\"title\":\"Pre-Service Inspection\",\"attachments\":[{\"id\":1,\"inspection_id\":1,\"file_path\":\"inspection_attachments/photo.jpg\",\"created_at\":\"2026-03-31T12:00:00.000000Z\",\"updated_at\":\"2026-03-31T12:00:00.000000Z\"}]}}" } ] }, { "name": "DELETE /api/inspections/{id}/delete-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "delete-attachment" ] }, "description": "Body or query: `attachment_id` (inspection_attachments.id). Deletes file from public disk." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "delete-attachment" ] }, "description": "Body or query: `attachment_id` (inspection_attachments.id). Deletes file from public disk." }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\"message\":\"Attachment deleted successfully\",\"data\":{\"id\":1,\"title\":\"Pre-Service Inspection\",\"attachments\":[]}}" } ] }, { "name": "GET /api/inspections/{id}/get-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspections/{{id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] }, "description": "Query or body: `attachment_id`. Returns `id`, `inspection_id`, `file_path`, public `url`, timestamps." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspections/{{id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] }, "description": "Query or body: `attachment_id`. Returns `id`, `inspection_id`, `file_path`, public `url`, timestamps." }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\"data\":{\"id\":1,\"inspection_id\":1,\"file_path\":\"inspection_attachments/photo.jpg\",\"url\":\"http://localhost/storage/inspection_attachments/photo.jpg\",\"created_at\":\"2026-03-31T12:00:00.000000Z\",\"updated_at\":\"2026-03-31T12:00:00.000000Z\"}}" } ] }, { "name": "POST /api/inspections/{id}/add-label", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/add-label", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "add-label" ] }, "description": "Body: `label_id` (required). Idempotent if label already linked." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/add-label", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "add-label" ] }, "description": "Body: `label_id` (required). Idempotent if label already linked." }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\"message\":\"Label added to inspection successfully\",\"data\":{\"id\":1,\"title\":\"Pre-Service Inspection\",\"labels\":[{\"id\":1,\"title\":\"Safety\",\"color_code\":\"#e63946\"}]}}" } ] }, { "name": "POST /api/inspections/{id}/delete-label", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/delete-label", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "delete-label" ] }, "description": "Body: `label_id` (required). Returns 404 if label not attached." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspections/{{id}}/delete-label", "host": [ "{{base_url}}" ], "path": [ "api", "inspections", "{{id}}", "delete-label" ] }, "description": "Body: `label_id` (required). Returns 404 if label not attached." }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\"message\":\"Label removed from inspection successfully\",\"data\":{\"id\":1,\"title\":\"Pre-Service Inspection\",\"labels\":[]}}" } ] }, { "name": "POST /api/change-inspection-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"status\": \"completed\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/change-inspection-status", "host": [ "{{base_url}}" ], "path": [ "api", "change-inspection-status" ] }, "description": "Body: `id` (inspections.id), `status` (in_progress|completed|cancelled). Not under /inspections/{id}." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"status\": \"completed\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/change-inspection-status", "host": [ "{{base_url}}" ], "path": [ "api", "change-inspection-status" ] }, "description": "Body: `id` (inspections.id), `status` (in_progress|completed|cancelled). Not under /inspections/{id}." }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\"message\":\"Inspection status updated successfully\",\"data\":{\"id\":1,\"title\":\"Pre-Service Inspection\",\"status\":\"completed\"}}" } ] } ] }, { "name": "Change Inspection Status", "item": [ { "name": "POST /api/change-inspection-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"status\": \"in_progress\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/change-inspection-status", "host": [ "{{base_url}}" ], "path": [ "api", "change-inspection-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"status\": \"in_progress\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/change-inspection-status", "host": [ "{{base_url}}" ], "path": [ "api", "change-inspection-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Pre-Service Inspection\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"employee_id\": 1,\n \"order_number\": \"INSP-001\",\n \"date\": \"2026-03-31\",\n \"time\": \"09:00\",\n \"note\": \"string\",\n \"status\": \"in_progress\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Labels", "item": [ { "name": "Display a listing of labels.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labels", "host": [ "{{base_url}}" ], "path": [ "api", "labels" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labels", "host": [ "{{base_url}}" ], "path": [ "api", "labels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labels", "host": [ "{{base_url}}" ], "path": [ "api", "labels" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labels", "host": [ "{{base_url}}" ], "path": [ "api", "labels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labels", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labels", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labels", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "labels", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Insurance Types", "item": [ { "name": "Display a listing of insurance types.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/insurance-types", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/insurance-types", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Comprehensive\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created insurance type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Third Party\",\n \"description\": \"Third party insurance coverage.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/insurance-types", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Third Party\",\n \"description\": \"Third party insurance coverage.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/insurance-types", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Comprehensive\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified insurance type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Third Party\",\n \"description\": \"Third party insurance coverage.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/insurance-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Third Party\",\n \"description\": \"Third party insurance coverage.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/insurance-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Comprehensive\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified insurance type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/insurance-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/insurance-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "insurance-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Estimates", "item": [ { "name": "Estimate — nested (appointments, documents, lines, attachments)", "item": [ { "name": "Appointments & estimate attachments", "item": [ { "name": "POST /api/estimates/{id}/link-appointment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"appointment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}/link-appointment", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "link-appointment" ] } }, "response": [] }, { "name": "POST /api/estimates/{id}/unlink-appointment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"appointment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}/unlink-appointment", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "unlink-appointment" ] } }, "response": [] }, { "name": "POST /api/estimates/{id}/store-authorisation", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"services_status\": \"accepted\",\n \"parts_status\": \"accepted\",\n \"inspections_status\": \"accepted\",\n \"expense_items_status\": \"accepted\",\n \"authorisation_method\": \"in_person\",\n \"employee_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}/store-authorisation", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "store-authorisation" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"services_status\": \"accepted\",\n \"parts_status\": \"accepted\",\n \"inspections_status\": \"accepted\",\n \"expense_items_status\": \"accepted\",\n \"authorisation_method\": \"in_person\",\n \"employee_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}/store-authorisation", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "store-authorisation" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Estimate authorisation stored successfully\",\n \"data\": {\n \"estimate\": {\n \"id\": 1,\n \"is_authorisation\": true,\n \"authorisation_date\": \"2026-04-13\",\n \"authorisation_time\": \"14:30:00\",\n \"authorisation_method\": \"in_person\",\n \"total_accepted\": 8\n },\n \"updated_counts\": {\n \"services\": 3,\n \"parts\": 2,\n \"inspections\": 1,\n \"expense_items\": 2\n },\n \"histories_count\": 9\n }\n}" } ] }, { "name": "POST /api/estimates/{id}/update-invoice", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}/update-invoice", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "update-invoice" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}/update-invoice", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "update-invoice" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Invoice synced from estimate successfully.\",\n \"data\": {\n \"invoice\": {\n \"id\": 1,\n \"estimate_id\": 1,\n \"invoice_parts\": [\n {\n \"part_id\": 1,\n \"quantity\": \"2.00\",\n \"rate\": \"45.50\"\n }\n ],\n \"invoice_inpsection_categories\": [\n {\n \"inspection_category_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"rate\": \"80.00\"\n }\n ],\n \"invoice_services\": [\n {\n \"service_id\": 1,\n \"quantity\": \"1.00\",\n \"rate\": \"120.00\"\n }\n ],\n \"invoice_expenses\": [\n {\n \"expense_id\": 1,\n \"quantity\": \"1.00\",\n \"rate\": \"25.00\"\n }\n ]\n },\n \"synced_counts\": {\n \"services\": 1,\n \"parts\": 1,\n \"inspections\": 1,\n \"expense_items\": 1\n }\n }\n}" } ] }, { "name": "POST /api/estimates/{id}/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "One or more files; max 5MB each.", "src": "/path/to/file.pdf" } ] }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "add-attachment" ] } }, "response": [] }, { "name": "DELETE /api/estimates/{id}/delete-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimates/{{id}}/delete-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "delete-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] }, { "name": "GET /api/estimates/{id}/get-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimates/{{id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] } ], "description": "Link/unlink appointments via appointments.estimate_id. Attachments: multipart form field attachments[] (array of files)." }, { "name": "Estimate documents", "item": [ { "name": "GET /api/estimate/{id}/documents", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/documents", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "documents" ] } }, "response": [] }, { "name": "POST /api/estimate/{id}/documents", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/documents", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "documents" ] } }, "response": [] }, { "name": "PUT /api/estimate/{id}/documents/{document_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/documents/{{document_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "documents", "{{document_id}}" ] } }, "response": [] }, { "name": "DELETE /api/estimate/{id}/documents/{document_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/documents/{{document_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "documents", "{{document_id}}" ] } }, "response": [] } ], "description": "Rows in estimate_documents: document_type_id (required), customer_id & vehicle_id optional (FKs on document_types, customers, vehicles)." }, { "name": "Estimate services (estimate_services)", "item": [ { "name": "GET /api/estimate/{id}/services", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/services", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "services" ] } }, "response": [] }, { "name": "POST /api/estimate/{id}/services", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": \"120.00\",\n \"working_hours\": \"1.00\",\n \"labor_hours\": \"1.00\",\n \"tax\": \"5\",\n \"chart_of_account\": \"4000\",\n \"department_id\": 1,\n \"description\": \"Labor line\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/services", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "services" ] } }, "response": [] }, { "name": "PUT /api/estimate/{id}/services/{service_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"rate\": \"130.00\",\n \"quantity\": 2\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/services/{{service_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "services", "{{service_id}}" ] } }, "response": [] }, { "name": "DELETE /api/estimate/{id}/services/{service_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/services/{{service_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "services", "{{service_id}}" ] } }, "response": [] }, { "name": "POST /api/estimate/{id}/services/{service_id}/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "One or more files; max 5MB each.", "src": "/path/to/file.pdf" } ] }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/services/{{service_id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "services", "{{service_id}}", "add-attachment" ] } }, "response": [] }, { "name": "DELETE /api/estimate/{id}/services/{service_id}/delete-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/services/{{service_id}}/delete-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "services", "{{service_id}}", "delete-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] }, { "name": "GET /api/estimate/{id}/services/{service_id}/get-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/services/{{service_id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "services", "{{service_id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] } ], "description": "service_id is catalog service. Path service_id = estimate_services.id (line id). rate_type: flat_rate|hourly. department_id required." }, { "name": "Estimate parts (estimate_parts)", "item": [ { "name": "GET /api/estimate/{id}/parts", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/parts", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "parts" ] } }, "response": [] }, { "name": "POST /api/estimate/{id}/parts", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": \"45.50\",\n \"tax\": \"5\",\n \"chart_of_account\": \"5000\",\n \"department_id\": 1,\n \"description\": \"Oil filter\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/parts", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "parts" ] } }, "response": [] }, { "name": "PUT /api/estimate/{id}/parts/{part_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"quantity\": 3\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/parts/{{part_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "parts", "{{part_id}}" ] } }, "response": [] }, { "name": "DELETE /api/estimate/{id}/parts/{part_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/parts/{{part_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "parts", "{{part_id}}" ] } }, "response": [] }, { "name": "POST /api/estimate/{id}/parts/{part_id}/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "One or more files; max 5MB each.", "src": "/path/to/file.pdf" } ] }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/parts/{{part_id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "parts", "{{part_id}}", "add-attachment" ] } }, "response": [] }, { "name": "DELETE /api/estimate/{id}/parts/{part_id}/delete-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/parts/{{part_id}}/delete-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "parts", "{{part_id}}", "delete-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] }, { "name": "GET /api/estimate/{id}/parts/{part_id}/get-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/parts/{{part_id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "parts", "{{part_id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] } ], "description": "part_id → parts.id. Path part_id = estimate_parts.id. tax is string in schema." }, { "name": "Estimate expense items (estimate_expense_items)", "item": [ { "name": "GET /api/estimate/{id}/expense-items", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/expense-items", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "expense-items" ] } }, "response": [] }, { "name": "POST /api/estimate/{id}/expense-items", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"expense_item_id\": 1,\n \"quantity\": 1,\n \"rate\": \"25.00\",\n \"tax\": \"5\",\n \"chart_of_account\": \"6000\",\n \"department_id\": 1,\n \"description\": \"Shop supplies\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/expense-items", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "expense-items" ] } }, "response": [] }, { "name": "PUT /api/estimate/{id}/expense-items/{expense_item_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"quantity\": 2\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/expense-items/{{expense_item_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "expense-items", "{{expense_item_id}}" ] } }, "response": [] }, { "name": "DELETE /api/estimate/{id}/expense-items/{expense_item_id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/expense-items/{{expense_item_id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "expense-items", "{{expense_item_id}}" ] } }, "response": [] }, { "name": "POST /api/estimate/{id}/expense-items/{expense_item_id}/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "One or more files; max 5MB each.", "src": "/path/to/file.pdf" } ] }, "url": { "raw": "{{base_url}}/api/estimate/{{id}}/expense-items/{{expense_item_id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "expense-items", "{{expense_item_id}}", "add-attachment" ] } }, "response": [] }, { "name": "DELETE /api/estimate/{id}/expense-items/{expense_item_id}/delete-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/expense-items/{{expense_item_id}}/delete-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "expense-items", "{{expense_item_id}}", "delete-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] }, { "name": "GET /api/estimate/{id}/expense-items/{expense_item_id}/get-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimate/{{id}}/expense-items/{{expense_item_id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "estimate", "{{id}}", "expense-items", "{{expense_item_id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [] } ], "description": "expense_item_id → expense_items.id. Path expense_item_id = estimate_expense_items.id." } ], "description": "Implements routes/api.php estimate endpoints. Nested paths use singular /estimate/... Path segments service_id, part_id, expense_item_id refer to estimate_services.id, estimate_parts.id, estimate_expense_items.id." }, { "name": "Display a listing of estimates.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimates", "host": [ "{{base_url}}" ], "path": [ "api", "estimates" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimates", "host": [ "{{base_url}}" ], "path": [ "api", "estimates" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Estimate for Toyota Camry\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-31\",\n \"has_insurance\": false,\n \"enable_digital_authorisation\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"service_writer_id\": 1,\n \"footer\": null,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"labels\": [\n {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"pivot\": {\n \"estimate_id\": 1,\n \"label_id\": 1\n }\n }\n ],\n \"customer_remarks\": [\n {\n \"id\": 1,\n \"estimate_id\": 1,\n \"remark\": \"Oil change recommended.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ]\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75,\n \"from\": 1,\n \"to\": 15\n }\n}" } ] }, { "name": "Store a newly created estimate.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Estimate for Toyota Camry\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-31\",\n \"has_insurance\": false,\n \"enable_digital_authorisation\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"service_writer_id\": 1,\n \"footer\": \"Thank you for your business.\",\n \"label_ids\": [1, 2],\n \"remarks\": [\"Oil change recommended.\"]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates", "host": [ "{{base_url}}" ], "path": [ "api", "estimates" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Estimate for Toyota Camry\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-31\",\n \"has_insurance\": false,\n \"enable_digital_authorisation\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"service_writer_id\": 1,\n \"footer\": \"Thank you for your business.\",\n \"label_ids\": [1, 2],\n \"remarks\": [\"Oil change recommended.\"]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates", "host": [ "{{base_url}}" ], "path": [ "api", "estimates" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Estimate created successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Estimate for Toyota Camry\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-31\",\n \"has_insurance\": false,\n \"enable_digital_authorisation\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"service_writer_id\": 1,\n \"footer\": \"Thank you for your business.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"labels\": [\n {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"pivot\": {\n \"estimate_id\": 1,\n \"label_id\": 1\n }\n }\n ],\n \"customer_remarks\": [\n {\n \"id\": 1,\n \"estimate_id\": 1,\n \"remark\": \"Oil change recommended.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "Update the specified estimate.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Estimate for Toyota Camry (updated)\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-31\",\n \"has_insurance\": true,\n \"enable_digital_authorisation\": false,\n \"insurance_type_id\": 1,\n \"insurer_id\": 1,\n \"service_writer_id\": 1,\n \"footer\": \"Updated footer text.\",\n \"label_ids\": [1],\n \"remarks\": [\"Updated remark.\"]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Estimate for Toyota Camry (updated)\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-31\",\n \"has_insurance\": true,\n \"enable_digital_authorisation\": false,\n \"insurance_type_id\": 1,\n \"insurer_id\": 1,\n \"service_writer_id\": 1,\n \"footer\": \"Updated footer text.\",\n \"label_ids\": [1],\n \"remarks\": [\"Updated remark.\"]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/estimates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Estimate updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Estimate for Toyota Camry (updated)\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-31\",\n \"has_insurance\": true,\n \"enable_digital_authorisation\": false,\n \"insurance_type_id\": 1,\n \"insurer_id\": 1,\n \"service_writer_id\": 1,\n \"footer\": \"Updated footer text.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\",\n \"labels\": [\n {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"pivot\": {\n \"estimate_id\": 1,\n \"label_id\": 1\n }\n }\n ],\n \"customer_remarks\": [\n {\n \"id\": 2,\n \"estimate_id\": 1,\n \"remark\": \"Updated remark.\",\n \"created_at\": \"2026-03-31T11:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "Remove the specified estimate.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/estimates/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "estimates", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Estimate deleted successfully\"\n}" } ] } ] }, { "name": "Quick Remark", "item": [ { "name": "Display a listing of quick remarks.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-remark", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-remark", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"description\": \"Please check tire pressure\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created quick remark.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Check oil level.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-remark", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Check oil level.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-remark", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"description\": \"Please check tire pressure\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified quick remark.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Check oil level.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-remark/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Check oil level.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-remark/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"description\": \"Please check tire pressure\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified quick remark.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-remark/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-remark/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-remark", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Quick Notes", "item": [ { "name": "Display a listing of quick notes.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-notes", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-notes", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"description\": \"Customer requests synthetic oil\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created quick note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer requested faster service.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-notes", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer requested faster service.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-notes", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"description\": \"Customer requests synthetic oil\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified quick note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer requested faster service.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer requested faster service.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/quick-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"description\": \"Customer requests synthetic oil\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified quick note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/quick-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "quick-notes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Shop Recommendations", "item": [ { "name": "Display a listing of shop recommendations.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-recommendations", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-recommendations", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"description\": \"Recommend wheel alignment and tire rotation at next visit.\",\n \"created_at\": \"2026-04-06T12:00:00.000000Z\",\n \"updated_at\": \"2026-04-06T12:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "Store a newly created shop recommendation.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer should replace brake pads within 2,000 km.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-recommendations", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer should replace brake pads within 2,000 km.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-recommendations", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Shop recommendation created successfully.\",\n \"data\": {\n \"id\": 2,\n \"description\": \"Customer should replace brake pads within 2,000 km.\",\n \"created_at\": \"2026-04-06T12:10:00.000000Z\",\n \"updated_at\": \"2026-04-06T12:10:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified shop recommendation.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer should replace front and rear brake pads within 2,000 km.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-recommendations/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"description\": \"Customer should replace front and rear brake pads within 2,000 km.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-recommendations/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Shop recommendation updated successfully.\",\n \"data\": {\n \"id\": 2,\n \"description\": \"Customer should replace front and rear brake pads within 2,000 km.\",\n \"created_at\": \"2026-04-06T12:10:00.000000Z\",\n \"updated_at\": \"2026-04-06T12:20:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified shop recommendation.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-recommendations/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-recommendations/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-recommendations", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Shop recommendation deleted successfully.\"\n}" } ] } ] }, { "name": "Check Point Label", "item": [ { "name": "Display a listing of check point labels.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/check-point-label", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/check-point-label", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Safety Check\",\n \"color_code\": \"#00FF00\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created check point label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/check-point-label", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/check-point-label", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Safety Check\",\n \"color_code\": \"#00FF00\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified check point label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/check-point-label/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/check-point-label/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Safety Check\",\n \"color_code\": \"#00FF00\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified check point label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/check-point-label/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/check-point-label/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "check-point-label", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Inspection Check Points", "item": [ { "name": "Display a listing of inspection check points.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-check-points", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-check-points", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"Check oil level and condition\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 1,\n \"file\": \"string\",\n \"status\": \"not_inspected\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created inspection check point.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"string\",\n \"record_type\": \"record_conditions\",\n \"status\": \"not_inspected\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-check-points", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"string\",\n \"record_type\": \"record_conditions\",\n \"status\": \"not_inspected\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-check-points", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"Check oil level and condition\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 1,\n \"file\": \"string\",\n \"status\": \"not_inspected\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified inspection check point.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"string\",\n \"record_type\": \"record_conditions\",\n \"status\": \"not_inspected\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"string\",\n \"record_type\": \"record_conditions\",\n \"status\": \"not_inspected\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"Check oil level and condition\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 1,\n \"file\": \"string\",\n \"status\": \"not_inspected\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified inspection check point.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "POST /api/inspection-check-points/change-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_check_point_id\": 1,\n \"status\": \"passed\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-check-points/change-status", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "change-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_check_point_id\": 1,\n \"status\": \"passed\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inspection-check-points/change-status", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "change-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"Check oil level and condition\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 1,\n \"file\": \"string\",\n \"status\": \"not_inspected\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "POST /api/inspection-check-points/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "inspection_check_point_id", "value": "1", "type": "text", "description": "ID of the inspection check point (required)" }, { "key": "attachment", "type": "file", "description": "File to attach (jpeg, png, jpg, pdf, xlsx, xls, docx, doc, mp4, avi, mov, mkv, mp3, wav — max 5 MB)", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/inspection-check-points/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "inspection_check_point_id", "value": "1", "type": "text", "description": "ID of the inspection check point (required)" }, { "key": "attachment", "type": "file", "description": "File to attach (jpeg, png, jpg, pdf, xlsx, xls, docx, doc, mp4, avi, mov, mkv, mp3, wav — max 5 MB)", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/inspection-check-points/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"Check oil level and condition\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 1,\n \"file\": \"string\",\n \"status\": \"not_inspected\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Upload or replace media file for a check point (record_audio, record_video, capture_photo).", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "description": "Media file to upload. Allowed types depend on check point record_type: record_audio → mp3/wav/m4a/aac/ogg, record_video → mp4/avi/mov/mkv/webm, capture_photo → jpeg/jpg/png/gif/webp. Max 50 MB.", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}/upload-media", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}", "upload-media" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "description": "Media file to upload. Allowed types depend on check point record_type: record_audio → mp3/wav/m4a/aac/ogg, record_video → mp4/avi/mov/mkv/webm, capture_photo → jpeg/jpg/png/gif/webp. Max 50 MB.", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}/upload-media", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}", "upload-media" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"Check oil level and condition\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 1,\n \"file\": \"string\",\n \"status\": \"not_inspected\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the current media file for a check point (set file to null; file is deleted from storage).", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}/media", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}", "media" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inspection-check-points/{{id}}/media", "host": [ "{{base_url}}" ], "path": [ "api", "inspection-check-points", "{{id}}", "media" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Toggle Label To Checkpoint", "item": [ { "name": "POST /api/toggle-label-to-checkpoint", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_check_point_id\": 1,\n \"check_point_label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-label-to-checkpoint", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-label-to-checkpoint" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"inspection_check_point_id\": 1,\n \"check_point_label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-label-to-checkpoint", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-label-to-checkpoint" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"inspection_id\": 1,\n \"name\": \"Engine Oil Level\",\n \"description\": \"Check oil level and condition\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 1,\n \"file\": \"string\",\n \"status\": \"not_inspected\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Job Cards", "item": [ { "name": "Display a listing of job cards.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards" ] }, "description": "Paginated list. Eager loads: labels, customer, vehicle, department, documents, attachmentFiles, serviceWriter, salesPerson, primaryTechnician. withCount: purchase_orders_count, bills_count, expenses_count, tasks_count, appointments_count, inspections_count, services_count, parts_count, expense_items_count (line-level rows on the job card). Response: `data` and `meta` only. Nested employees may include full columns in production; example uses a shortened shape. Query: sort_by, sort_order, status, customer_id, insurer_id, sales_person_id, primary_technician_id, service_writer_id, label_ids, delivery_date, convert_invoice, check_in_date, check_out_date, vehicle_id, start_date, end_date, department_id, search, has_start_or_delivery_date, has_start_date, has_delivery_date, has_both_dates, per_page." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"sales_person_id\": 3,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31T00:00:00.000000Z\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": null,\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31T00:00:00.000000Z\",\n \"check_in_time\": \"2026-03-31T00:00:00.000000Z\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": null,\n \"start_time\": null,\n \"delivery_date\": null,\n \"delivery_time\": null,\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"labels\": [\n {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"pivot\": {\n \"job_card_id\": 1,\n \"label_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n }\n ],\n \"documents\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true,\n \"show_in_estimate\": false,\n \"show_in_statement\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"service_writer\": {\n \"id\": 1,\n \"type\": \"employee\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane.smith@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Service Advisor\",\n \"salary\": \"5000.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null\n },\n \"sales_person\": {\n \"id\": 3,\n \"type\": \"employee\",\n \"first_name\": \"Sam\",\n \"last_name\": \"Jones\",\n \"email\": \"sam.jones@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Sales\",\n \"salary\": \"5000.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null\n },\n \"primary_technician\": {\n \"id\": 2,\n \"type\": \"employee\",\n \"first_name\": \"Alex\",\n \"last_name\": \"Kumar\",\n \"email\": \"alex.kumar@example.com\",\n \"phone\": \"+971501234567\",\n \"designation\": \"Technician\",\n \"salary\": \"5000.00\",\n \"wage_type\": \"Monthly\",\n \"country_id\": 1,\n \"department_id\": 1,\n \"status\": \"active\",\n \"track_attendance\": false,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": null,\n \"shop_timing_id\": null,\n \"geo_fence_radius\": null,\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null\n },\n \"purchase_orders_count\": 0,\n \"bills_count\": 0,\n \"expenses_count\": 0,\n \"tasks_count\": 0,\n \"appointments_count\": 0,\n \"inspections_count\": 0,\n \"services_count\": 0,\n \"parts_count\": 0,\n \"expense_items_count\": 0\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75,\n \"from\": 1,\n \"to\": 15\n }\n}" } ] }, { "name": "Store a newly created job card.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"estimate_id\": 1,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": \"Thank you for your business.\",\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31\",\n \"check_in_time\": \"09:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": \"2026-03-31\",\n \"start_time\": \"09:00\",\n \"delivery_date\": \"2026-04-05\",\n \"delivery_time\": \"17:00\",\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"label_ids\": [\n 1\n ],\n \"documents\": [\n {\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true,\n \"show_in_estimate\": false,\n \"show_in_statement\": false\n }\n ],\n \"customer_remarks\": [\n \"Customer prefers morning pickup.\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"estimate_id\": 1,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": \"Thank you for your business.\",\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31\",\n \"check_in_time\": \"09:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": \"2026-03-31\",\n \"start_time\": \"09:00\",\n \"delivery_date\": \"2026-04-05\",\n \"delivery_time\": \"17:00\",\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"label_ids\": [\n 1\n ],\n \"documents\": [\n {\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true,\n \"show_in_estimate\": false,\n \"show_in_statement\": false\n }\n ],\n \"customer_remarks\": [\n \"Customer prefers morning pickup.\"\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Job card created successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"estimate_id\": 1,\n \"sales_person_id\": 3,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31T00:00:00.000000Z\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": \"Thank you for your business.\",\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31T00:00:00.000000Z\",\n \"check_in_time\": \"09:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": \"2026-03-31T00:00:00.000000Z\",\n \"start_time\": \"09:00\",\n \"delivery_date\": \"2026-04-05T00:00:00.000000Z\",\n \"delivery_time\": \"17:00\",\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"labels\": [\n {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"pivot\": {\n \"job_card_id\": 1,\n \"label_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n }\n ],\n \"documents\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true,\n \"show_in_estimate\": false,\n \"show_in_statement\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"customer_remarks\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"remark\": \"Customer prefers morning pickup.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"attachment_files\": []\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}" ] }, "description": "Returns `{ \"data\": job_card }` only (no top-level `message`). Eager loads: labels, customer, vehicle, department, documents, customer_remarks, shop_recommendations, attachment_files, purchase_orders, bills, expenses, tasks, appointments, service_writer, sales_person, primary_technician." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"sales_person_id\": 3,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31T00:00:00.000000Z\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": null,\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31T00:00:00.000000Z\",\n \"check_in_time\": \"09:00:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": null,\n \"start_time\": null,\n \"delivery_date\": null,\n \"delivery_time\": null,\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"labels\": [],\n \"customer\": {\n \"id\": 1,\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"phone\": \"+971501234567\"\n },\n \"vehicle\": {\n \"id\": 1,\n \"plate_number\": \"ABC-100\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Workshop\"\n },\n \"documents\": [],\n \"customer_remarks\": [],\n \"shop_recommendations\": [],\n \"attachment_files\": [],\n \"purchase_orders\": [],\n \"bills\": [],\n \"expenses\": [],\n \"tasks\": [],\n \"appointments\": [],\n \"service_writer\": {\n \"id\": 1,\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"designation\": \"Service Advisor\"\n },\n \"sales_person\": {\n \"id\": 3,\n \"first_name\": \"Sam\",\n \"last_name\": \"Jones\"\n },\n \"primary_technician\": {\n \"id\": 2,\n \"first_name\": \"Alex\",\n \"last_name\": \"Kumar\"\n }\n }\n}" } ] }, { "name": "Update the specified job card.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"title\": \"Job Card 001\",\n \"status\": \"check_in\",\n \"estimate_to\": \"Customer\",\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31\",\n \"check_in_time\": \"09:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"service_writer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"title\": \"Job Card 001\",\n \"status\": \"check_in\",\n \"estimate_to\": \"Customer\",\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31\",\n \"check_in_time\": \"09:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"service_writer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Job card updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31T00:00:00.000000Z\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": null,\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31T00:00:00.000000Z\",\n \"check_in_time\": \"09:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": null,\n \"start_time\": null,\n \"delivery_date\": null,\n \"delivery_time\": null,\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\",\n \"labels\": [],\n \"documents\": []\n }\n}" } ] }, { "name": "Remove the specified job card.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Job card deleted successfully\"\n}" } ] }, { "name": "POST /api/job-cards/{id}/change-date", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"order_date\": \"2026-03-31\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-date", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-date" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"order_date\": \"2026-03-31\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-date", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-date" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Job card date updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31T00:00:00.000000Z\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": null,\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-31T00:00:00.000000Z\",\n \"check_in_time\": \"09:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": null,\n \"start_time\": null,\n \"delivery_date\": null,\n \"delivery_time\": null,\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:05:00.000000Z\"\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/change-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"status\": \"check_in\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-status", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"status\": \"check_in\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-status", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Job card status updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"order_number\": \"ORD-001\",\n \"estimate_number\": \"EST-001\",\n \"order_date\": \"2026-03-31T00:00:00.000000Z\",\n \"service_writer_id\": 1,\n \"primary_technician_id\": 2,\n \"status\": \"check_in\",\n \"footer\": null,\n \"has_insurance\": false,\n \"insurance_type_id\": null,\n \"insurer_id\": null,\n \"estimate_to\": \"Customer\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"department_id\": 1,\n \"check_in_date\": \"2026-04-02T00:00:00.000000Z\",\n \"check_in_time\": \"14:30:00\",\n \"km_in\": 50000,\n \"fuel_level\": \"full\",\n \"start_date\": null,\n \"start_time\": null,\n \"delivery_date\": null,\n \"delivery_time\": null,\n \"attachments\": null,\n \"tax_inclusive\": \"Tax Exclusive\",\n \"discount_type\": \"no\",\n \"discount_at\": \"inclusive_of_tax\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-02T14:30:00.000000Z\"\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/check-in", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"check_in_date\": \"2026-04-07\",\n \"check_in_time\": \"09:30\",\n \"km_in\": 50321,\n \"fuel_level\": \"half\",\n \"start_date\": \"2026-04-07\",\n \"start_time\": \"10:00\",\n \"department_id\": 1,\n \"delivery_date\": \"2026-04-08\",\n \"delivery_time\": \"17:15\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/check-in", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "check-in" ] }, "description": "Marks job card as `check_in` and updates check-in context. Optional fields: `check_in_date`, `check_in_time` (HH:MM or HH:MM:SS), `km_in`, `fuel_level`, `start_date`, `start_time`, `department_id`, `delivery_date`, `delivery_time` (HH:MM or HH:MM:SS). If check-in date/time is omitted, server current date/time is used." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"check_in_date\": \"2026-04-07\",\n \"check_in_time\": \"09:30\",\n \"km_in\": 50321,\n \"fuel_level\": \"half\",\n \"start_date\": \"2026-04-07\",\n \"start_time\": \"10:00\",\n \"department_id\": 1,\n \"delivery_date\": \"2026-04-08\",\n \"delivery_time\": \"17:15\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/check-in", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "check-in" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Job card checked in successfully.\",\n \"data\": {\n \"id\": 1,\n \"status\": \"check_in\",\n \"check_in_date\": \"2026-04-07T00:00:00.000000Z\",\n \"check_in_time\": \"09:30:00\",\n \"km_in\": 50321,\n \"fuel_level\": \"half\",\n \"start_date\": \"2026-04-07T00:00:00.000000Z\",\n \"start_time\": \"10:00:00\",\n \"department_id\": 1,\n \"delivery_date\": \"2026-04-08T00:00:00.000000Z\",\n \"delivery_time\": \"17:15:00\"\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/delivery", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"check_out_date\": \"2026-04-08\",\n \"check_out_time\": \"17:15\",\n \"km_out\": 50480,\n \"fuel_level\": \"quarter\",\n \"department_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delivery", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delivery" ] }, "description": "Marks job card as `delivered` and updates delivery context. Optional fields: `check_out_date`, `check_out_time` (HH:MM or HH:MM:SS), `km_out`, `fuel_level`, `department_id`. If check-out date/time is omitted, server current date/time is used." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"check_out_date\": \"2026-04-08\",\n \"check_out_time\": \"17:15\",\n \"km_out\": 50480,\n \"fuel_level\": \"quarter\",\n \"department_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delivery", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delivery" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Job card marked as delivered successfully.\",\n \"data\": {\n \"id\": 1,\n \"status\": \"delivered\",\n \"check_out_date\": \"2026-04-08\",\n \"check_out_time\": \"17:15:00\",\n \"km_out\": 50480,\n \"fuel_level\": \"quarter\",\n \"department_id\": 1\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-customer-remark", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"remark\": \"Customer wants OEM parts only.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-customer-remark", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-customer-remark" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"remark\": \"Customer wants OEM parts only.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-customer-remark", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-customer-remark" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Customer remark added successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_remarks\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"remark\": \"Customer wants OEM parts only.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "Edit an existing customer remark for the job card.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_remark_id\": 1,\n \"remark\": \"Updated remark.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/edit-customer-remark", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "edit-customer-remark" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_remark_id\": 1,\n \"remark\": \"Updated remark.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/edit-customer-remark", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "edit-customer-remark" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Customer remark updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_remarks\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"remark\": \"Updated remark.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "Delete a customer remark. Query or body: customer_remark_id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_remark_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-customer-remark", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-customer-remark" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"customer_remark_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-customer-remark", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-customer-remark" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Customer remark deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"customer_remarks\": []\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}/get-internal-notes", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-internal-notes?per_page=15", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-internal-notes" ], "query": [ { "key": "per_page", "value": "15", "description": "1–100, default 15" } ] }, "description": "Paginated internal notes (newest first). Returns 404 if job card does not exist." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-internal-notes", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-internal-notes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"note\": \"Parts on back order \\u2014 call customer Tuesday.\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Parts on back order \\u2014 call customer Tuesday.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-internal-note" ] }, "description": "Body: `note` (required, string, max 65535)." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Parts on back order \\u2014 call customer Tuesday.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Internal note added successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"internal_notes\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"note\": \"Parts on back order \\u2014 call customer Tuesday.\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/edit-internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note text.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "edit-internal-note" ] }, "description": "Body: `internal_note_id`, `note` (both required)." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note text.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "edit-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Internal note updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"internal_notes\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"note\": \"Updated internal note text.\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T11:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/job-cards/{id}/delete-internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-internal-note" ] }, "description": "Body or query: `internal_note_id`." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Internal note deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"internal_notes\": []\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}/get-services", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-services?per_page=15", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-services" ], "query": [ { "key": "per_page", "value": "15", "description": "1-100, default 15" } ] }, "description": "Paginated catalog service lines on the job card (ordered by id desc). Each row includes `service`, `department`, `labor_rate`, `attachments`." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-services", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-services" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": \"85.00\",\n \"working_hours\": \"1.00\",\n \"labor_hours\": \"1.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-200\",\n \"department_id\": 1,\n \"description\": \"Oil change labor line\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\",\n \"service\": {\n \"id\": 1,\n \"labor_name\": \"Oil Change\",\n \"service_code\": \"SVC-001\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Workshop\"\n },\n \"labor_rate\": {\n \"id\": 1,\n \"title\": \"Standard\",\n \"rate\": \"95.00\"\n },\n \"attachments\": []\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-service", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": 85.0,\n \"working_hours\": 1.0,\n \"labor_hours\": 1.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-200\",\n \"description\": \"Oil change labor line\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-service", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-service" ] }, "description": "Required: `service_id`, `department_id`. Optional: `rate_type` (flat_rate|hourly), `labor_rate_id`, `quantity`, `rate`, `working_hours`, `labor_hours`, `tax`, `chart_of_account`, `description`." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": 85.0,\n \"working_hours\": 1.0,\n \"labor_hours\": 1.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-200\",\n \"description\": \"Oil change labor line\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-service", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-service" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Service line added to job card successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 1,\n \"rate\": \"85.00\",\n \"working_hours\": \"1.00\",\n \"labor_hours\": \"1.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-200\",\n \"department_id\": 1,\n \"description\": \"Oil change labor line\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\",\n \"service\": {\n \"id\": 1,\n \"labor_name\": \"Oil Change\",\n \"service_code\": \"SVC-001\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Workshop\"\n },\n \"labor_rate\": {\n \"id\": 1,\n \"title\": \"Standard\",\n \"rate\": \"95.00\"\n },\n \"attachments\": []\n }\n}" } ] }, { "name": "PUT /api/job-cards/{id}/update-service", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_service_id\": 1,\n \"quantity\": 2,\n \"rate\": 90.0,\n \"description\": \"Updated description\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/update-service", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "update-service" ] }, "description": "Body must include `job_card_service_id` (job_card_services.id). Other fields optional; same rules as add-service." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_service_id\": 1,\n \"quantity\": 2,\n \"rate\": 90.0,\n \"description\": \"Updated description\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/update-service", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "update-service" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Service line updated successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"quantity\": 2,\n \"rate\": \"90.00\",\n \"working_hours\": \"1.00\",\n \"labor_hours\": \"1.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-200\",\n \"department_id\": 1,\n \"description\": \"Updated description\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T11:00:00.000000Z\",\n \"service\": {\n \"id\": 1,\n \"labor_name\": \"Oil Change\",\n \"service_code\": \"SVC-001\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Workshop\"\n },\n \"labor_rate\": {\n \"id\": 1,\n \"title\": \"Standard\",\n \"rate\": \"95.00\"\n },\n \"attachments\": []\n }\n}" } ] }, { "name": "DELETE /api/job-cards/{id}/delete-service", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_service_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-service", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-service" ] }, "description": "Body or query: `job_card_service_id`. Deletes attachment files from disk then the row." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_service_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-service", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-service" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Service line deleted successfully\"\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-service-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "job_card_service_id", "value": "1", "type": "text", "description": "job_card_services.id for this job card" }, { "key": "attachments[]", "type": "file", "description": "Repeat attachments[] for multiple files (max 20 per line total; 5 MB each).", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-service-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-service-attachment" ] }, "description": "Multipart: `job_card_service_id` + one or more `attachments[]` files. Mimes: images, video, audio, pdf, office docs." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "job_card_service_id", "value": "1", "type": "text" }, { "key": "attachments[]", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-service-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-service-attachment" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Service attachment(s) added successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"service_id\": 1,\n \"attachments\": [\n {\n \"id\": 1,\n \"job_card_service_id\": 1,\n \"file_path\": \"job_card_service_attachments/abc.pdf\",\n \"created_at\": \"2026-04-04T12:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T12:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/job-cards/{id}/delete-service-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_service_id\": 1,\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-service-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-service-attachment" ] }, "description": "Body or query: `job_card_service_id`, `attachment_id` (job_card_service_attachments.id)." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_service_id\": 1,\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-service-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-service-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Service attachment deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"service_id\": 1,\n \"attachments\": []\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}/get-service-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-service-attachment?job_card_service_id=1&attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-service-attachment" ], "query": [ { "key": "job_card_service_id", "value": "1" }, { "key": "attachment_id", "value": "1" } ] }, "description": "Query or body: `job_card_service_id`, `attachment_id`. Returns file metadata and public `url`." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-service-attachment?job_card_service_id=1&attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-service-attachment" ], "query": [ { "key": "job_card_service_id", "value": "1" }, { "key": "attachment_id", "value": "1" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"job_card_service_id\": 1,\n \"file_path\": \"job_card_service_attachments/abc.pdf\",\n \"url\": \"http://localhost/storage/job_card_service_attachments/abc.pdf\",\n \"created_at\": \"2026-04-04T12:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T12:00:00.000000Z\"\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}/get-parts", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-parts?per_page=15", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-parts" ], "query": [ { "key": "per_page", "value": "15", "description": "1-100, default 15" } ] }, "description": "Paginated part lines for the job card (newest id first). Each row includes `part`, `department`, `attachments`." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-parts", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-parts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": \"45.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-300\",\n \"department_id\": 1,\n \"description\": \"Brake pads\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\",\n \"part\": {\n \"id\": 1,\n \"title\": \"Brake Pad Set\",\n \"sku\": \"BP-100\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Parts\"\n },\n \"attachments\": []\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-part", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"part_id\": 1,\n \"department_id\": 1,\n \"quantity\": 2,\n \"rate\": 45.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-300\",\n \"description\": \"Brake pads\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-part", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-part" ] }, "description": "Required: `part_id`, `department_id`. Optional: `quantity`, `rate`, `tax`, `chart_of_account`, `description`." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"part_id\": 1,\n \"department_id\": 1,\n \"quantity\": 2,\n \"rate\": 45.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-300\",\n \"description\": \"Brake pads\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-part", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-part" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Part line added to job card successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": \"45.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-300\",\n \"department_id\": 1,\n \"description\": \"Brake pads\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\",\n \"part\": {\n \"id\": 1,\n \"title\": \"Brake Pad Set\",\n \"sku\": \"BP-100\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Parts\"\n },\n \"attachments\": []\n }\n}" } ] }, { "name": "PUT /api/job-cards/{id}/update-part", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_part_id\": 1,\n \"quantity\": 3,\n \"rate\": 48.5,\n \"description\": \"Updated qty\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/update-part", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "update-part" ] }, "description": "Body must include `job_card_part_id` (job_card_parts.id). Other fields optional." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_part_id\": 1,\n \"quantity\": 3,\n \"rate\": 48.5,\n \"description\": \"Updated qty\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/update-part", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "update-part" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Part line updated successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": \"48.50\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-300\",\n \"department_id\": 1,\n \"description\": \"Updated qty\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T11:00:00.000000Z\",\n \"part\": {\n \"id\": 1,\n \"title\": \"Brake Pad Set\",\n \"sku\": \"BP-100\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Parts\"\n },\n \"attachments\": []\n }\n}" } ] }, { "name": "DELETE /api/job-cards/{id}/delete-part", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_part_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-part", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-part" ] }, "description": "Body or query: `job_card_part_id`. Deletes attachment files from disk then the row." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_part_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-part", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-part" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Part line deleted successfully\"\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-part-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "job_card_part_id", "value": "1", "type": "text", "description": "job_card_parts.id for this job card" }, { "key": "attachments[]", "type": "file", "description": "Repeat attachments[] for multiple files (max 20 per line; 5 MB each).", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-part-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-part-attachment" ] }, "description": "Multipart: `job_card_part_id` + one or more `attachments[]` files." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "job_card_part_id", "value": "1", "type": "text" }, { "key": "attachments[]", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-part-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-part-attachment" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Part attachment(s) added successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"part_id\": 1,\n \"attachments\": [\n {\n \"id\": 1,\n \"job_card_part_id\": 1,\n \"file_path\": \"job_card_part_attachments/invoice.pdf\",\n \"created_at\": \"2026-04-04T12:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T12:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/job-cards/{id}/delete-part-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_part_id\": 1,\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-part-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-part-attachment" ] }, "description": "Body or query: `job_card_part_id`, `attachment_id` (job_card_part_attachments.id)." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_part_id\": 1,\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-part-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-part-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Part attachment deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"part_id\": 1,\n \"attachments\": []\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}/get-part-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-part-attachment?job_card_part_id=1&attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-part-attachment" ], "query": [ { "key": "job_card_part_id", "value": "1" }, { "key": "attachment_id", "value": "1" } ] }, "description": "Query or body: `job_card_part_id`, `attachment_id`. Returns file metadata and public `url`." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-part-attachment?job_card_part_id=1&attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-part-attachment" ], "query": [ { "key": "job_card_part_id", "value": "1" }, { "key": "attachment_id", "value": "1" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"job_card_part_id\": 1,\n \"file_path\": \"job_card_part_attachments/invoice.pdf\",\n \"url\": \"http://localhost/storage/job_card_part_attachments/invoice.pdf\",\n \"created_at\": \"2026-04-04T12:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T12:00:00.000000Z\"\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}/get-expense-items", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-expense-items?per_page=15", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-expense-items" ], "query": [ { "key": "per_page", "value": "15", "description": "1-100, default 15" } ] }, "description": "Paginated expense catalog lines on the job card (newest id first). Each row includes `expenseItem`, `department`, `attachments`." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-expense-items", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-expense-items" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"expense_item_id\": 1,\n \"quantity\": 1,\n \"rate\": \"120.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-400\",\n \"department_id\": 1,\n \"description\": \"Shop supplies\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\",\n \"expense_item\": {\n \"id\": 1,\n \"item_name\": \"Supplies\",\n \"sku\": \"EXP-001\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Admin\"\n },\n \"attachments\": []\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-expense-item", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"expense_item_id\": 1,\n \"department_id\": 1,\n \"quantity\": 1,\n \"rate\": 120.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-400\",\n \"description\": \"Shop supplies\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-expense-item", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-expense-item" ] }, "description": "Required: `expense_item_id`, `department_id`. Optional: `quantity`, `rate`, `tax`, `chart_of_account`, `description`." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"expense_item_id\": 1,\n \"department_id\": 1,\n \"quantity\": 1,\n \"rate\": 120.0,\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-400\",\n \"description\": \"Shop supplies\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-expense-item", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-expense-item" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Expense item line added to job card successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"expense_item_id\": 1,\n \"quantity\": 1,\n \"rate\": \"120.00\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-400\",\n \"department_id\": 1,\n \"description\": \"Shop supplies\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T10:00:00.000000Z\",\n \"expense_item\": {\n \"id\": 1,\n \"item_name\": \"Supplies\",\n \"sku\": \"EXP-001\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Admin\"\n },\n \"attachments\": []\n }\n}" } ] }, { "name": "PUT /api/job-cards/{id}/update-expense-item", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_expense_item_id\": 1,\n \"quantity\": 2,\n \"rate\": 125.5,\n \"description\": \"Updated line\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/update-expense-item", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "update-expense-item" ] }, "description": "Body must include `job_card_expense_item_id` (job_card_expense_items.id). Other fields optional; same rules as add-expense-item." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_expense_item_id\": 1,\n \"quantity\": 2,\n \"rate\": 125.5,\n \"description\": \"Updated line\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/update-expense-item", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "update-expense-item" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Expense item line updated successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"expense_item_id\": 1,\n \"quantity\": 2,\n \"rate\": \"125.50\",\n \"tax\": \"5%\",\n \"chart_of_account\": \"COA-400\",\n \"department_id\": 1,\n \"description\": \"Updated line\",\n \"created_at\": \"2026-04-04T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T11:00:00.000000Z\",\n \"expense_item\": {\n \"id\": 1,\n \"item_name\": \"Supplies\",\n \"sku\": \"EXP-001\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Admin\"\n },\n \"attachments\": []\n }\n}" } ] }, { "name": "DELETE /api/job-cards/{id}/delete-expense-item", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_expense_item_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-expense-item", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-expense-item" ] }, "description": "Body or query: `job_card_expense_item_id`. Deletes attachment files from disk then the row." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_expense_item_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-expense-item", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-expense-item" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Expense item line deleted successfully\"\n}" } ] }, { "name": "POST /api/job-cards/{id}/add-expense-item-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "job_card_expense_item_id", "value": "1", "type": "text", "description": "job_card_expense_items.id for this job card" }, { "key": "attachments[]", "type": "file", "description": "Repeat attachments[] for multiple files (max 20 per line total; 5 MB each).", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-expense-item-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-expense-item-attachment" ] }, "description": "Multipart: `job_card_expense_item_id` + one or more `attachments[]` files. Mimes: images, video, audio, pdf, office docs." }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "job_card_expense_item_id", "value": "1", "type": "text" }, { "key": "attachments[]", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-expense-item-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-expense-item-attachment" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Expense item attachment(s) added successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"expense_item_id\": 1,\n \"attachments\": [\n {\n \"id\": 1,\n \"job_card_expense_item_id\": 1,\n \"file_path\": \"job_card_expense_item_attachments/receipt.pdf\",\n \"created_at\": \"2026-04-04T12:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T12:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/job-cards/{id}/delete-expense-item-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_expense_item_id\": 1,\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-expense-item-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-expense-item-attachment" ] }, "description": "Body or query: `job_card_expense_item_id`, `attachment_id` (job_card_expense_item_attchments.id)." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_expense_item_id\": 1,\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-expense-item-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-expense-item-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Expense item attachment deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"expense_item_id\": 1,\n \"attachments\": []\n }\n}" } ] }, { "name": "GET /api/job-cards/{id}/get-expense-item-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-expense-item-attachment?job_card_expense_item_id=1&attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-expense-item-attachment" ], "query": [ { "key": "job_card_expense_item_id", "value": "1" }, { "key": "attachment_id", "value": "1" } ] }, "description": "Query or body: `job_card_expense_item_id`, `attachment_id`. Returns file metadata and public `url`." }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/get-expense-item-attachment?job_card_expense_item_id=1&attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "get-expense-item-attachment" ], "query": [ { "key": "job_card_expense_item_id", "value": "1" }, { "key": "attachment_id", "value": "1" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"job_card_expense_item_id\": 1,\n \"file_path\": \"job_card_expense_item_attachments/receipt.pdf\",\n \"url\": \"http://localhost/storage/job_card_expense_item_attachments/receipt.pdf\",\n \"created_at\": \"2026-04-04T12:00:00.000000Z\",\n \"updated_at\": \"2026-04-04T12:00:00.000000Z\"\n }\n}" } ] }, { "name": "Add a shop recommendation to the job card.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"recommendation\": \"Replace brake pads.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-shop-recommendation", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-shop-recommendation" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"recommendation\": \"Replace brake pads.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-shop-recommendation", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-shop-recommendation" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Shop recommendation added successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"shop_recommendations\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"recommendation\": \"Replace brake pads.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "Edit an existing shop recommendation.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_recommendation_id\": 1,\n \"recommendation\": \"Updated recommendation.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/edit-shop-recommendation", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "edit-shop-recommendation" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_recommendation_id\": 1,\n \"recommendation\": \"Updated recommendation.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/edit-shop-recommendation", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "edit-shop-recommendation" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Shop recommendation updated successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"shop_recommendations\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"recommendation\": \"Updated recommendation.\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "Delete a shop recommendation. Query or body: shop_recommendation_id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_recommendation_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-shop-recommendation", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-shop-recommendation" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_recommendation_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-shop-recommendation", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-shop-recommendation" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Shop recommendation deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"shop_recommendations\": []\n }\n}" } ] }, { "name": "Add attachments to a job card.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Attachments added successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"attachment_files\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"attachment_path\": \"job_card_attachments/abc.pdf\",\n \"original_name\": \"abc.pdf\",\n \"created_at\": \"2026-03-31T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T12:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "Delete one attachment. Body or query: attachment_id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Attachment deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Job Card 001\",\n \"attachment_files\": []\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/change-service-writer-id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_writer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-service-writer-id", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-service-writer-id" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_writer_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-service-writer-id", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-service-writer-id" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Service writer updated successfully\",\n \"data\": {\n \"id\": 1,\n \"service_writer_id\": 1,\n \"title\": \"Job Card 001\"\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/change-sales-person-id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sales_person_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-sales-person-id", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-sales-person-id" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sales_person_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-sales-person-id", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-sales-person-id" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Sales person updated successfully\",\n \"data\": {\n \"id\": 1,\n \"sales_person_id\": 1,\n \"title\": \"Job Card 001\"\n }\n}" } ] }, { "name": "POST /api/job-cards/{id}/change-technician-id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"technician_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-technician-id", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-technician-id" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"technician_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/job-cards/{{id}}/change-technician-id", "host": [ "{{base_url}}" ], "path": [ "api", "job-cards", "{{id}}", "change-technician-id" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Technician updated successfully\",\n \"data\": {\n \"id\": 1,\n \"technician_id\": 1,\n \"title\": \"Job Card 001\"\n }\n}" } ] } ] }, { "name": "Payment Mode", "item": [ { "name": "Display a listing of payment modes.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mode", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mode", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Cash\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created payment mode.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Cash\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mode", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Cash\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mode", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Cash\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified payment mode.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Cash\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mode/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Cash\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mode/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Cash\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified payment mode.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mode/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mode/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mode", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Payment Recieved", "item": [ { "name": "Display a listing of payments received.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-recieved", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-recieved", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"payment_mode_id\": 1,\n \"customer_id\": 1,\n \"amount_received\": 1000,\n \"payment_number\": \"RCPT-001\",\n \"payment_date\": \"2026-03-31\",\n \"reference_date\": \"2026-03-31\",\n \"deposit_to\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created payment received.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"payment_mode_id\": 1,\n \"customer_id\": 1,\n \"amount_received\": 1000,\n \"payment_date\": \"2026-03-31\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-recieved", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"payment_mode_id\": 1,\n \"customer_id\": 1,\n \"amount_received\": 1000,\n \"payment_date\": \"2026-03-31\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-recieved", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"payment_mode_id\": 1,\n \"customer_id\": 1,\n \"amount_received\": 1000,\n \"payment_number\": \"RCPT-001\",\n \"payment_date\": \"2026-03-31\",\n \"reference_date\": \"2026-03-31\",\n \"deposit_to\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified payment received.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"payment_mode_id\": 1,\n \"customer_id\": 1,\n \"amount_received\": 1000,\n \"payment_date\": \"2026-03-31\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-recieved/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"payment_mode_id\": 1,\n \"customer_id\": 1,\n \"amount_received\": 1000,\n \"payment_date\": \"2026-03-31\",\n \"note\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-recieved/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"payment_mode_id\": 1,\n \"customer_id\": 1,\n \"amount_received\": 1000,\n \"payment_number\": \"RCPT-001\",\n \"payment_date\": \"2026-03-31\",\n \"reference_date\": \"2026-03-31\",\n \"deposit_to\": \"string\",\n \"note\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified payment received (and its attachments from storage).", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-recieved/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-recieved/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-recieved", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Parts", "item": [ { "name": "Display a listing of parts.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/parts", "host": [ "{{base_url}}" ], "path": [ "api", "parts" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/parts", "host": [ "{{base_url}}" ], "path": [ "api", "parts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"part_number\": \"PRT-001\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Toyota\",\n \"description\": \"string\",\n \"location\": \"Shelf A1\",\n \"pricing_matrix\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 15,\n \"track_inventory\": false,\n \"opening_stock\": 1,\n \"available_stock\": 1,\n \"as_on_date\": \"2026-03-31\",\n \"min_stock\": 1,\n \"max_stock\": 1,\n \"inventory_chart_of_account\": \"string\",\n \"tracking_type\": \"string\",\n \"inventory_purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created part.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"part_number\": \"PRT-001\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Toyota\",\n \"description\": \"Premium quality oil filter\",\n \"location\": \"Shelf A1\",\n \"pricing_matrix\": \"retail\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"sales_chart_of_account\": 101,\n \"purchase_information\": true,\n \"purchase_chart_of_account\": 201,\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 15,\n \"track_inventory\": true,\n \"opening_stock\": 10,\n \"available_stock\": 10,\n \"as_on_date\": \"2026-03-31\",\n \"min_stock\": 2,\n \"max_stock\": 100,\n \"inventory_chart_of_account\": 301,\n \"tracking_type\": 1,\n \"inventory_purchase_price\": 15\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts", "host": [ "{{base_url}}" ], "path": [ "api", "parts" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"part_number\": \"PRT-001\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Toyota\",\n \"description\": \"Premium quality oil filter\",\n \"location\": \"Shelf A1\",\n \"pricing_matrix\": \"retail\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"sales_chart_of_account\": 101,\n \"purchase_information\": true,\n \"purchase_chart_of_account\": 201,\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 15,\n \"track_inventory\": true,\n \"opening_stock\": 10,\n \"available_stock\": 10,\n \"as_on_date\": \"2026-03-31\",\n \"min_stock\": 2,\n \"max_stock\": 100,\n \"inventory_chart_of_account\": 301,\n \"tracking_type\": 1,\n \"inventory_purchase_price\": 15\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts", "host": [ "{{base_url}}" ], "path": [ "api", "parts" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"part_number\": \"PRT-001\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Toyota\",\n \"description\": \"string\",\n \"location\": \"Shelf A1\",\n \"pricing_matrix\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 15,\n \"track_inventory\": false,\n \"opening_stock\": 1,\n \"available_stock\": 1,\n \"as_on_date\": \"2026-03-31\",\n \"min_stock\": 1,\n \"max_stock\": 1,\n \"inventory_chart_of_account\": \"string\",\n \"tracking_type\": \"string\",\n \"inventory_purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Display the specified part.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"part_number\": \"PRT-001\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Toyota\",\n \"description\": \"string\",\n \"location\": \"Shelf A1\",\n \"pricing_matrix\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 15,\n \"track_inventory\": false,\n \"opening_stock\": 1,\n \"available_stock\": 1,\n \"as_on_date\": \"2026-03-31\",\n \"min_stock\": 1,\n \"max_stock\": 1,\n \"inventory_chart_of_account\": \"string\",\n \"tracking_type\": \"string\",\n \"inventory_purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified part.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"purchase_information\": true,\n \"purchase_price\": 15,\n \"track_inventory\": true,\n \"opening_stock\": 10,\n \"available_stock\": 8\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"purchase_information\": true,\n \"purchase_price\": 15,\n \"track_inventory\": true,\n \"opening_stock\": 10,\n \"available_stock\": 8\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"part_number\": \"PRT-001\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Toyota\",\n \"description\": \"string\",\n \"location\": \"Shelf A1\",\n \"pricing_matrix\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 15,\n \"track_inventory\": false,\n \"opening_stock\": 1,\n \"available_stock\": 1,\n \"as_on_date\": \"2026-03-31\",\n \"min_stock\": 1,\n \"max_stock\": 1,\n \"inventory_chart_of_account\": \"string\",\n \"tracking_type\": \"string\",\n \"inventory_purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified part.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Import Parts", "item": [ { "name": "Import parts from Excel file.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": "" } ] }, "url": { "raw": "{{base_url}}/api/parts/import", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "import" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/parts/import", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "import" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Action completed successfully.\"\n}" } ] } ] }, { "name": "Export Parts", "item": [ { "name": "Export parts to Excel.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"purchase_information\": true,\n \"purchase_price\": 15,\n \"track_inventory\": false,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts/export", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "export" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"purchase_information\": true,\n \"purchase_price\": 15,\n \"track_inventory\": false,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts/export", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "export" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "" } ], "cookie": [], "body": "\"\"" } ] } ] }, { "name": "Toggle Part Status", "item": [ { "name": "POST /api/parts/toggle-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts/toggle-status", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "toggle-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/parts/toggle-status", "host": [ "{{base_url}}" ], "path": [ "api", "parts", "toggle-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Engine Oil Filter\",\n \"sku\": \"SKU-001\",\n \"part_number\": \"PRT-001\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Toyota\",\n \"description\": \"string\",\n \"location\": \"Shelf A1\",\n \"pricing_matrix\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": 25,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 15,\n \"track_inventory\": false,\n \"opening_stock\": 1,\n \"as_on_date\": \"2026-03-31\",\n \"min_stock\": 1,\n \"max_stock\": 1,\n \"inventory_chart_of_account\": \"string\",\n \"tracking_type\": \"string\",\n \"inventory_purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Purchase Orders", "item": [ { "name": "Display a listing of purchase orders.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/purchase-orders", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/purchase-orders", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"title\": \"Purchase Order for Parts\",\n \"order_number\": \"PO-001\",\n \"order_date\": \"2026-03-31\",\n \"delivery_date\": \"2026-04-07\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"parts\": [\n {\n \"id\": 1,\n \"purchase_order_id\": 1,\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": \"45.50\",\n \"description\": \"Oil filter\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"part\": {\n \"id\": 1,\n \"title\": \"Oil Filter\"\n }\n }\n ]\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75,\n \"from\": 1,\n \"to\": 15\n }\n}" } ] }, { "name": "Store a newly created purchase order with labels and items (parts).", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"title\": \"Purchase Order for Parts\",\n \"order_number\": \"PO-001\",\n \"order_date\": \"2026-03-31\",\n \"delivery_date\": \"2026-04-07\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"Net 30\",\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": 45.5,\n \"description\": \"Oil filter\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"title\": \"Purchase Order for Parts\",\n \"order_number\": \"PO-001\",\n \"order_date\": \"2026-03-31\",\n \"delivery_date\": \"2026-04-07\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"Net 30\",\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": 45.5,\n \"description\": \"Oil filter\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order created successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"title\": \"Purchase Order for Parts\",\n \"order_number\": \"PO-001\",\n \"order_date\": \"2026-03-31\",\n \"delivery_date\": \"2026-04-07\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"Net 30\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"parts\": [\n {\n \"id\": 1,\n \"purchase_order_id\": 1,\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": \"45.50\",\n \"description\": \"Oil filter\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\",\n \"part\": {\n \"id\": 1,\n \"title\": \"Oil Filter\"\n }\n }\n ]\n }\n}" } ] }, { "name": "Update the specified purchase order.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Purchase Order for Parts (updated)\",\n \"order_number\": \"PO-001\",\n \"delivery_date\": \"2026-04-08\",\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 45.5,\n \"description\": \"Oil filter - updated qty\"\n },\n {\n \"part_id\": 2,\n \"quantity\": 1,\n \"rate\": 120,\n \"description\": \"Air filter\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Purchase Order for Parts (updated)\",\n \"order_number\": \"PO-001\",\n \"delivery_date\": \"2026-04-08\",\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 45.5,\n \"description\": \"Oil filter - updated qty\"\n },\n {\n \"part_id\": 2,\n \"quantity\": 1,\n \"rate\": 120,\n \"description\": \"Air filter\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order updated successfully\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"title\": \"Purchase Order for Parts (updated)\",\n \"order_number\": \"PO-001\",\n \"order_date\": \"2026-03-31\",\n \"delivery_date\": \"2026-04-08\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"Net 30\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:20:00.000000Z\",\n \"parts\": [\n {\n \"id\": 3,\n \"purchase_order_id\": 1,\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": \"45.50\",\n \"description\": \"Oil filter - updated qty\",\n \"created_at\": \"2026-03-31T10:20:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:20:00.000000Z\",\n \"part\": {\n \"id\": 1,\n \"title\": \"Oil Filter\"\n }\n },\n {\n \"id\": 4,\n \"purchase_order_id\": 1,\n \"part_id\": 2,\n \"quantity\": 1,\n \"rate\": \"120.00\",\n \"description\": \"Air filter\",\n \"created_at\": \"2026-03-31T10:20:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:20:00.000000Z\",\n \"part\": {\n \"id\": 2,\n \"title\": \"Air Filter\"\n }\n }\n ]\n }\n}" } ] }, { "name": "Remove the specified purchase order.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order deleted successfully\"\n}" } ] }, { "name": "POST /api/purchase-orders/{id}/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "Repeat attachments[] for multiple files (max total 20, 5MB each).", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order attachments added successfully\",\n \"data\": {\n \"id\": 1,\n \"attachments\": [\n {\n \"id\": 1,\n \"purchase_order_id\": 1,\n \"file_path\": \"purchase_order_attachments/sample.pdf\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/purchase-orders/{id}/delete-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order attachment deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"attachments\": []\n }\n}" } ] }, { "name": "GET /api/purchase-orders/{id}/get-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/get-attachment?attachment_id=1", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "get-attachment" ], "query": [ { "key": "attachment_id", "value": "1" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"purchase_order_id\": 1,\n \"file_path\": \"purchase_order_attachments/sample.pdf\",\n \"url\": \"http://localhost/storage/purchase_order_attachments/sample.pdf\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "POST /api/purchase-orders/{id}/add-internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Follow up with vendor on ETA.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "add-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Follow up with vendor on ETA.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "add-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order internal note added successfully\",\n \"data\": {\n \"id\": 1,\n \"internal_notes\": [\n {\n \"id\": 1,\n \"purchase_order_id\": 1,\n \"note\": \"Follow up with vendor on ETA.\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "POST /api/purchase-orders/{id}/edit-internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note text.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "edit-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note text.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "edit-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order internal note updated successfully\",\n \"data\": {\n \"id\": 1,\n \"internal_notes\": [\n {\n \"id\": 1,\n \"purchase_order_id\": 1,\n \"note\": \"Updated internal note text.\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:20:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/purchase-orders/{id}/delete-internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "delete-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/purchase-orders/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "purchase-orders", "{{id}}", "delete-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Purchase order internal note deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"internal_notes\": []\n }\n}" } ] } ] }, { "name": "Services", "item": [ { "name": "Display a listing of services.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/services", "host": [ "{{base_url}}" ], "path": [ "api", "services" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/services", "host": [ "{{base_url}}" ], "path": [ "api", "services" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"string\",\n \"description\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 1,\n \"sales_chart_of_account\": \"string\",\n \"selling_price\": 50,\n \"purchase_information\": false,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created service.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 50,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/services", "host": [ "{{base_url}}" ], "path": [ "api", "services" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 50,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/services", "host": [ "{{base_url}}" ], "path": [ "api", "services" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"string\",\n \"description\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 1,\n \"sales_chart_of_account\": \"string\",\n \"selling_price\": 50,\n \"purchase_information\": false,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Display the specified service.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "services", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "services", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"string\",\n \"description\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 1,\n \"sales_chart_of_account\": \"string\",\n \"selling_price\": 50,\n \"purchase_information\": false,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified service.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 50,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "services", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 50,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "services", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"string\",\n \"description\": \"string\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 1,\n \"sales_chart_of_account\": \"string\",\n \"selling_price\": 50,\n \"purchase_information\": false,\n \"purchase_chart_of_account\": \"string\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 1.0,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified service.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "services", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "services", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Import Services", "item": [ { "name": "Import services from Excel file.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": "" } ] }, "url": { "raw": "{{base_url}}/api/import-services", "host": [ "{{base_url}}" ], "path": [ "api", "import-services" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "multipart/form-data" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/import-services", "host": [ "{{base_url}}" ], "path": [ "api", "import-services" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Action completed successfully.\"\n}" } ] } ] }, { "name": "Export Services", "item": [ { "name": "Export services to Excel.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 50,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/export-services", "host": [ "{{base_url}}" ], "path": [ "api", "export-services" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"labor_name\": \"Oil Change Service\",\n \"service_code\": \"SVC-001\",\n \"category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 50,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/export-services", "host": [ "{{base_url}}" ], "path": [ "api", "export-services" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "" } ], "cookie": [], "body": "\"\"" } ] } ] }, { "name": "Toggle Expense Item Status", "item": [ { "name": "POST /api/toggle-expense-item-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-expense-item-status", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-expense-item-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-expense-item-status", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-expense-item-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"item_type\": \"Expense\",\n \"category_id\": 1,\n \"item_name\": \"Office Supplies\",\n \"sku\": \"EXP-001\",\n \"item_code\": \"string\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"string\",\n \"sales_information\": false,\n \"selling_price\": 1.0,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"Expenses\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 10,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Expense Items", "item": [ { "name": "Display a listing of expense items.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expense-items", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expense-items", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"item_type\": \"Expense\",\n \"category_id\": 1,\n \"item_name\": \"Office Supplies\",\n \"sku\": \"EXP-001\",\n \"item_code\": \"string\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"string\",\n \"sales_information\": false,\n \"selling_price\": 1.0,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"Expenses\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 10,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created expense item.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"item_type\": \"Expense\",\n \"item_name\": \"Office Supplies\",\n \"category_id\": 1,\n \"purchase_information\": true,\n \"purchase_price\": 10,\n \"purchase_chart_of_account\": \"Expenses\",\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expense-items", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"item_type\": \"Expense\",\n \"item_name\": \"Office Supplies\",\n \"category_id\": 1,\n \"purchase_information\": true,\n \"purchase_price\": 10,\n \"purchase_chart_of_account\": \"Expenses\",\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expense-items", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"item_type\": \"Expense\",\n \"category_id\": 1,\n \"item_name\": \"Office Supplies\",\n \"sku\": \"EXP-001\",\n \"item_code\": \"string\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"string\",\n \"sales_information\": false,\n \"selling_price\": 1.0,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"Expenses\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 10,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified expense item.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"item_type\": \"Expense\",\n \"item_name\": \"Office Supplies\",\n \"category_id\": 1,\n \"purchase_information\": true,\n \"purchase_price\": 10,\n \"purchase_chart_of_account\": \"Expenses\",\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expense-items/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"item_type\": \"Expense\",\n \"item_name\": \"Office Supplies\",\n \"category_id\": 1,\n \"purchase_information\": true,\n \"purchase_price\": 10,\n \"purchase_chart_of_account\": \"Expenses\",\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expense-items/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"item_type\": \"Expense\",\n \"category_id\": 1,\n \"item_name\": \"Office Supplies\",\n \"sku\": \"EXP-001\",\n \"item_code\": \"string\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"string\",\n \"sales_information\": false,\n \"selling_price\": 1.0,\n \"sales_chart_of_account\": \"string\",\n \"purchase_information\": true,\n \"purchase_chart_of_account\": \"Expenses\",\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": 10,\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified expense item.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expense-items/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expense-items/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expense-items", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Bills", "item": [ { "name": "Display a listing of bills.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/bills", "host": [ "{{base_url}}" ], "path": [ "api", "bills" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/bills", "host": [ "{{base_url}}" ], "path": [ "api", "bills" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Workshop Bill\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"purchase_order_id\": 1,\n \"bill_number\": \"BILL-001\",\n \"bill_date\": \"2026-03-31\",\n \"bill_due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Vendor invoice for parts, service and expense lines\",\n \"status\": \"open\",\n \"services\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"service_id\": 1,\n \"quantity\": \"2.00\",\n \"rate\": \"150.00\",\n \"chart_of_account\": \"COA-401\",\n \"description\": \"Labor service line\"\n }\n ],\n \"parts\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": \"40.00\",\n \"chart_of_account\": 1201,\n \"description\": \"Brake pad set\"\n }\n ],\n \"expenses\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"expense_id\": 1,\n \"quantity\": \"1.00\",\n \"rate\": \"75.00\",\n \"chart_of_account\": \"COA-402\",\n \"description\": \"Consumables expense line\"\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created bill with labels, services and expenses.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Workshop Bill\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"purchase_order_id\": 1,\n \"bill_number\": \"BILL-001\",\n \"bill_date\": \"2026-03-31\",\n \"bill_due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Vendor invoice for parts, service and expense lines\",\n \"label_ids\": [1],\n \"part_items\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 40,\n \"chart_of_account\": 1201,\n \"description\": \"Brake pad set\"\n }\n ],\n \"service_items\": [\n {\n \"service_id\": 1,\n \"quantity\": 2,\n \"rate\": 150,\n \"chart_of_account\": \"COA-401\",\n \"description\": \"Labor service line\"\n }\n ],\n \"expense_items\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 75,\n \"chart_of_account\": \"COA-402\",\n \"description\": \"Consumables expense line\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills", "host": [ "{{base_url}}" ], "path": [ "api", "bills" ] } }, "response": [ { "name": "201 Created", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Workshop Bill\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"purchase_order_id\": 1,\n \"bill_number\": \"BILL-001\",\n \"bill_date\": \"2026-03-31\",\n \"bill_due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Vendor invoice for parts, service and expense lines\",\n \"label_ids\": [1],\n \"part_items\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 40,\n \"chart_of_account\": 1201,\n \"description\": \"Brake pad set\"\n }\n ],\n \"service_items\": [\n {\n \"service_id\": 1,\n \"quantity\": 2,\n \"rate\": 150,\n \"chart_of_account\": \"COA-401\",\n \"description\": \"Labor service line\"\n }\n ],\n \"expense_items\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 75,\n \"chart_of_account\": \"COA-402\",\n \"description\": \"Consumables expense line\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills", "host": [ "{{base_url}}" ], "path": [ "api", "bills" ] } }, "status": "Created", "code": 201, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Workshop Bill\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"purchase_order_id\": 1,\n \"bill_number\": \"BILL-001\",\n \"bill_date\": \"2026-03-31\",\n \"bill_due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Vendor invoice for parts, service and expense lines\",\n \"status\": \"open\",\n \"services\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"service_id\": 1,\n \"quantity\": \"2.00\",\n \"rate\": \"150.00\",\n \"chart_of_account\": \"COA-401\",\n \"description\": \"Labor service line\"\n }\n ],\n \"parts\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": \"40.00\",\n \"chart_of_account\": 1201,\n \"description\": \"Brake pad set\"\n }\n ],\n \"expenses\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"expense_id\": 1,\n \"quantity\": \"1.00\",\n \"rate\": \"75.00\",\n \"chart_of_account\": \"COA-402\",\n \"description\": \"Consumables expense line\"\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified bill.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Workshop Bill - Updated\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"purchase_order_id\": 1,\n \"bill_number\": \"BILL-001\",\n \"bill_date\": \"2026-03-31\",\n \"bill_due_date\": \"2026-04-20\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Updated vendor invoice lines\",\n \"label_ids\": [1],\n \"part_items\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 45,\n \"chart_of_account\": 1201,\n \"description\": \"Updated part line\"\n }\n ],\n \"service_items\": [\n {\n \"service_id\": 1,\n \"quantity\": 1,\n \"rate\": 200,\n \"chart_of_account\": \"COA-401\",\n \"description\": \"Updated labor service line\"\n }\n ],\n \"expense_items\": [\n {\n \"expense_id\": 1,\n \"quantity\": 2,\n \"rate\": 50,\n \"chart_of_account\": \"COA-402\",\n \"description\": \"Updated consumables expense line\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Workshop Bill - Updated\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"purchase_order_id\": 1,\n \"bill_number\": \"BILL-001\",\n \"bill_date\": \"2026-03-31\",\n \"bill_due_date\": \"2026-04-20\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Updated vendor invoice lines\",\n \"label_ids\": [1],\n \"part_items\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 45,\n \"chart_of_account\": 1201,\n \"description\": \"Updated part line\"\n }\n ],\n \"service_items\": [\n {\n \"service_id\": 1,\n \"quantity\": 1,\n \"rate\": 200,\n \"chart_of_account\": \"COA-401\",\n \"description\": \"Updated labor service line\"\n }\n ],\n \"expense_items\": [\n {\n \"expense_id\": 1,\n \"quantity\": 2,\n \"rate\": 50,\n \"chart_of_account\": \"COA-402\",\n \"description\": \"Updated consumables expense line\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Workshop Bill - Updated\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"purchase_order_id\": 1,\n \"bill_number\": \"BILL-001\",\n \"bill_date\": \"2026-03-31\",\n \"bill_due_date\": \"2026-04-20\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Updated vendor invoice lines\",\n \"status\": \"open\",\n \"services\": [\n {\n \"id\": 2,\n \"bill_id\": 1,\n \"service_id\": 1,\n \"quantity\": \"1.00\",\n \"rate\": \"200.00\",\n \"chart_of_account\": \"COA-401\",\n \"description\": \"Updated labor service line\"\n }\n ],\n \"parts\": [\n {\n \"id\": 2,\n \"bill_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": \"45.00\",\n \"chart_of_account\": 1201,\n \"description\": \"Updated part line\"\n }\n ],\n \"expenses\": [\n {\n \"id\": 2,\n \"bill_id\": 1,\n \"expense_id\": 1,\n \"quantity\": \"2.00\",\n \"rate\": \"50.00\",\n \"chart_of_account\": \"COA-402\",\n \"description\": \"Updated consumables expense line\"\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T11:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified bill.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/bills/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/bills/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "POST /api/bills/{id}/add-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "Repeat attachments[] for multiple files (max total 20, 5MB each).", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Bill attachments added successfully\",\n \"data\": {\n \"id\": 1,\n \"attachments\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"file_path\": \"http://localhost/storage/bill_attachments/sample.pdf\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/bills/{id}/delete-attachment", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Bill attachment deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"attachments\": []\n }\n}" } ] }, { "name": "GET /api/bills/{id}/internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note?per_page=15", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ], "query": [ { "key": "per_page", "value": "15" } ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note?per_page=15", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ], "query": [ { "key": "per_page", "value": "15" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"note\": \"Requested updated invoice copy.\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 15,\n \"total\": 1,\n \"from\": 1,\n \"to\": 1\n }\n}" } ] }, { "name": "POST /api/bills/{id}/internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Requested updated invoice copy.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Requested updated invoice copy.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Bill internal note added successfully\",\n \"data\": {\n \"id\": 1,\n \"internal_notes\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"note\": \"Requested updated invoice copy.\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:00:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "PUT /api/bills/{id}/internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note text.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note text.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Bill internal note updated successfully\",\n \"data\": {\n \"id\": 1,\n \"internal_notes\": [\n {\n \"id\": 1,\n \"bill_id\": 1,\n \"note\": \"Updated internal note text.\",\n \"created_at\": \"2026-04-13T10:00:00.000000Z\",\n \"updated_at\": \"2026-04-13T10:20:00.000000Z\"\n }\n ]\n }\n}" } ] }, { "name": "DELETE /api/bills/{id}/internal-note", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"internal_note_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/bills/{{id}}/internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "bills", "{{id}}", "internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Bill internal note deleted successfully\",\n \"data\": {\n \"id\": 1,\n \"internal_notes\": []\n }\n}" } ] } ] }, { "name": "Expenses", "item": [ { "name": "Display a listing of expenses.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expenses", "host": [ "{{base_url}}" ], "path": [ "api", "expenses" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expenses", "host": [ "{{base_url}}" ], "path": [ "api", "expenses" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Workshop Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"expense_date\": \"2026-03-31\",\n \"paid_through\": \"string\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"draft\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created expense with labels and expense items.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Workshop Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"expense_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"draft\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expenses", "host": [ "{{base_url}}" ], "path": [ "api", "expenses" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Workshop Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"expense_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"draft\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expenses", "host": [ "{{base_url}}" ], "path": [ "api", "expenses" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Workshop Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"expense_date\": \"2026-03-31\",\n \"paid_through\": \"string\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"draft\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified expense.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Workshop Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"expense_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"draft\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expenses/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expenses", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Workshop Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"expense_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"draft\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/expenses/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expenses", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Workshop Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"expense_date\": \"2026-03-31\",\n \"paid_through\": \"string\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"draft\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified expense.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expenses/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expenses", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/expenses/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "expenses", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Task Types", "item": [ { "name": "Display a listing of task types.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-types", "host": [ "{{base_url}}" ], "path": [ "api", "task-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-types", "host": [ "{{base_url}}" ], "path": [ "api", "task-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Maintenance\",\n \"description\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created task type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Maintenance\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-types", "host": [ "{{base_url}}" ], "path": [ "api", "task-types" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Maintenance\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-types", "host": [ "{{base_url}}" ], "path": [ "api", "task-types" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Maintenance\",\n \"description\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified task type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Maintenance\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Maintenance\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Maintenance\",\n \"description\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified task type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-types", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-types/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-types", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Default Task Type", "item": [ { "name": "Set a task type as the default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-task-type", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-task-type" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-task-type", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-task-type" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Maintenance\",\n \"description\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Default Task Type", "item": [ { "name": "Remove default from a task type.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-task-type", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-task-type" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-task-type", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-task-type" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Maintenance\",\n \"description\": \"string\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Task Sections", "item": [ { "name": "Display a listing of task sections.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-sections", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-sections", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"General Tasks\",\n \"arrangement\": 1,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created task section.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Work\",\n \"arrangement\": 1,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-sections", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Work\",\n \"arrangement\": 1,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-sections", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"General Tasks\",\n \"arrangement\": 1,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified task section.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Work\",\n \"arrangement\": 1,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-sections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Pre-Work\",\n \"arrangement\": 1,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/task-sections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"General Tasks\",\n \"arrangement\": 1,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified task section.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-sections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/task-sections/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "task-sections", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Default Task Section", "item": [ { "name": "Set a task section as the default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-task-section", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-task-section" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-task-section", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-task-section" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"General Tasks\",\n \"arrangement\": 1,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Default Task Section", "item": [ { "name": "Remove default from a task section.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-task-section", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-task-section" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-task-section", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-task-section" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"General Tasks\",\n \"arrangement\": 1,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Change Task Section Arrangement", "item": [ { "name": "Change arrangement of a section and shift all sections below it accordingly.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"arrangement\": 2\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/change-task-section-arrangement", "host": [ "{{base_url}}" ], "path": [ "api", "change-task-section-arrangement" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1,\n \"arrangement\": 2\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/change-task-section-arrangement", "host": [ "{{base_url}}" ], "path": [ "api", "change-task-section-arrangement" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"General Tasks\",\n \"arrangement\": 1,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Tasks", "item": [ { "name": "Display a listing of tasks.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/tasks", "host": [ "{{base_url}}" ], "path": [ "api", "tasks" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/tasks", "host": [ "{{base_url}}" ], "path": [ "api", "tasks" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"description\": \"string\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"task_number\": \"TASK-001\",\n \"status\": \"pending\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created task.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"status\": \"pending\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/tasks", "host": [ "{{base_url}}" ], "path": [ "api", "tasks" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"status\": \"pending\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/tasks", "host": [ "{{base_url}}" ], "path": [ "api", "tasks" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"description\": \"string\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"task_number\": \"TASK-001\",\n \"status\": \"pending\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified task.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"status\": \"pending\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/tasks/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "tasks", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"status\": \"pending\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/tasks/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "tasks", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"description\": \"string\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"task_number\": \"TASK-001\",\n \"status\": \"pending\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified task.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/tasks/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "tasks", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/tasks/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "tasks", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Mark a task as completed.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/tasks/{{id}}/complete", "host": [ "{{base_url}}" ], "path": [ "api", "tasks", "{{id}}", "complete" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/tasks/{{id}}/complete", "host": [ "{{base_url}}" ], "path": [ "api", "tasks", "{{id}}", "complete" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"subject\": \"Inspect brake pads\",\n \"description\": \"string\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": \"medium\",\n \"due_date\": \"2026-04-05\",\n \"task_number\": \"TASK-001\",\n \"status\": \"pending\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Appointments", "item": [ { "name": "Display a listing of appointments.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/appointments", "host": [ "{{base_url}}" ], "path": [ "api", "appointments" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/appointments", "host": [ "{{base_url}}" ], "path": [ "api", "appointments" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created appointment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments", "host": [ "{{base_url}}" ], "path": [ "api", "appointments" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments", "host": [ "{{base_url}}" ], "path": [ "api", "appointments" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified appointment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified appointment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/appointments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/appointments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Unlink a job card from an appointment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments/{{id}}/un-link-job-card", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}", "un-link-job-card" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments/{{id}}/un-link-job-card", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}", "un-link-job-card" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Change the status of the specified appointment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"status\": \"confirmed\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments/{{id}}/change-status", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}", "change-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"status\": \"confirmed\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/appointments/{{id}}/change-status", "host": [ "{{base_url}}" ], "path": [ "api", "appointments", "{{id}}", "change-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"job_card_id\": 1,\n \"title\": \"Oil Change Appointment\",\n \"date\": \"2026-04-01\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"service_writer_id\": 1,\n \"technician_id\": 2,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"requested\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Invoice Sequences", "item": [ { "name": "Display a listing of invoice sequences.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-sequences", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-sequences", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"is_default\": false,\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created invoice sequence.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-sequences", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-sequences", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"is_default\": false,\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified invoice sequence.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-sequences/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-sequences/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"is_default\": false,\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified invoice sequence.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-sequences/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-sequences/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-sequences", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Default Invoice Sequence", "item": [ { "name": "Mark an invoice sequence as default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-invoice-sequence", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-invoice-sequence" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-invoice-sequence", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-invoice-sequence" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"is_default\": false,\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Default Invoice Sequence", "item": [ { "name": "Remove default flag from an invoice sequence.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-invoice-sequence", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-invoice-sequence" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-invoice-sequence", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-invoice-sequence" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV\",\n \"is_default\": false,\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Service Groups", "item": [ { "name": "Display a listing of service groups.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-groups", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-groups", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": false,\n \"set_packaged_pricing\": false,\n \"selling_price\": 1.0,\n \"selling_chart_of_account\": \"string\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created service group.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": false,\n \"set_packaged_pricing\": false,\n \"selling_price\": 1.0,\n \"selling_chart_of_account\": \"string\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Display the specified service group.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-groups/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-groups/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": false,\n \"set_packaged_pricing\": false,\n \"selling_price\": 1.0,\n \"selling_chart_of_account\": \"string\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified service group.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": false,\n \"set_packaged_pricing\": false,\n \"selling_price\": 1.0,\n \"selling_chart_of_account\": \"string\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified service group.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-groups/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-groups/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "POST /api/service-groups/{id}/toggle-status", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}/toggle-status", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}", "toggle-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}/toggle-status", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}", "toggle-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": false,\n \"set_packaged_pricing\": false,\n \"selling_price\": 1.0,\n \"selling_chart_of_account\": \"string\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Attach a label to a service group.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}/add-label", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}", "add-label" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}/add-label", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}", "add-label" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Full Service Package\",\n \"shop_type_id\": 1,\n \"code\": \"PKG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"string\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": false,\n \"set_packaged_pricing\": false,\n \"selling_price\": 1.0,\n \"selling_chart_of_account\": \"string\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Detach a label from a service group.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}/delete-label", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}", "delete-label" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"label_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-groups/{{id}}/delete-label", "host": [ "{{base_url}}" ], "path": [ "api", "service-groups", "{{id}}", "delete-label" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Service Group Includes", "item": [ { "name": "Display a listing of service group includes.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-includes", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-includes", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created service group include.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-includes", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-includes", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified service group include.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-includes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-includes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified service group include.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-includes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-includes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Change arrangement of a service group include.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"arrangement\": 2\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-includes/{{id}}/change-arrangement", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes", "{{id}}", "change-arrangement" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"arrangement\": 2\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-includes/{{id}}/change-arrangement", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-includes", "{{id}}", "change-arrangement" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"title\": \"Includes brake inspection\",\n \"arrangement\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Service Group Pricings", "item": [ { "name": "Display a listing of service group pricing records.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-pricings", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-pricings", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"service_group_id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"fuel_type_id\": 1,\n \"body_type_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 1,\n \"selling_price\": 100,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created service group pricing record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 100\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-pricings", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 100\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-pricings", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"fuel_type_id\": 1,\n \"body_type_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 1,\n \"selling_price\": 100,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified service group pricing record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 100\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-pricings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"rate_type\": \"flat_rate\",\n \"selling_price\": 100\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-pricings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"fuel_type_id\": 1,\n \"body_type_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 1,\n \"selling_price\": 100,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified service group pricing record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-pricings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-pricings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-pricings", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Service Group Services", "item": [ { "name": "Display a listing of service group services.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-services", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-services", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"rate\": 50,\n \"hours\": 1,\n \"tax_id\": 1,\n \"chart_of_account\": \"string\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created service group service.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"rate\": 50,\n \"hours\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-services", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"rate\": 50,\n \"hours\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-services", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"rate\": 50,\n \"hours\": 1,\n \"tax_id\": 1,\n \"chart_of_account\": \"string\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified service group service.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"rate\": 50,\n \"hours\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"rate\": 50,\n \"hours\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"flat_rate\",\n \"labor_rate_id\": 1,\n \"rate\": 50,\n \"hours\": 1,\n \"tax_id\": 1,\n \"chart_of_account\": \"string\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified service group service.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-services/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-services", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Service Group Parts", "item": [ { "name": "Display a listing of service group parts.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-parts", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-parts", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25,\n \"tax_id\": 1,\n \"chart_of_account\": \"string\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created service group part.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25,\n \"tax_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-parts", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25,\n \"tax_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-parts", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25,\n \"tax_id\": 1,\n \"chart_of_account\": \"string\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified service group part.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25,\n \"tax_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25,\n \"tax_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/service-group-parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25,\n \"tax_id\": 1,\n \"chart_of_account\": \"string\",\n \"description\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified service group part.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/service-group-parts/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "service-group-parts", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Invoice Labels", "item": [ { "name": "Display a listing of invoice labels.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-labels", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-labels", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Priority\",\n \"color_code\": \"#FF6600\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created invoice label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Priority\",\n \"color_code\": \"#FF5733\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-labels", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Priority\",\n \"color_code\": \"#FF5733\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-labels", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Priority\",\n \"color_code\": \"#FF6600\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified invoice label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Priority\",\n \"color_code\": \"#FF5733\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Priority\",\n \"color_code\": \"#FF5733\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Priority\",\n \"color_code\": \"#FF6600\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified invoice label.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-labels/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-labels", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Invoices", "item": [ { "name": "Display a listing of invoices.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoices", "host": [ "{{base_url}}" ], "path": [ "api", "invoices" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoices", "host": [ "{{base_url}}" ], "path": [ "api", "invoices" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"subject\": \"Invoice for Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"kms_in\": 50000,\n \"has_insurance\": false,\n \"insurer_id\": 1,\n \"invoice_to_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"invoice_title\": \"Tax Invoice\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"string\",\n \"status\": \"draft\",\n \"received_payment\": 0,\n \"payment_mode_id\": 1,\n \"deposit_to\": \"string\",\n \"amount\": 0,\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created invoice.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Invoice for Service\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"estimate_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"draft\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoices", "host": [ "{{base_url}}" ], "path": [ "api", "invoices" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Invoice for Service\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"estimate_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"draft\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoices", "host": [ "{{base_url}}" ], "path": [ "api", "invoices" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Invoice for Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"estimate_id\": 1,\n \"kms_in\": 50000,\n \"has_insurance\": false,\n \"insurer_id\": 1,\n \"invoice_to_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"invoice_title\": \"Tax Invoice\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"string\",\n \"status\": \"draft\",\n \"received_payment\": 0,\n \"payment_mode_id\": 1,\n \"deposit_to\": \"string\",\n \"amount\": 0,\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "GET /api/invoices/{id}", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoices/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoices/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Invoice for Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"kms_in\": 50000,\n \"has_insurance\": false,\n \"insurer_id\": 1,\n \"invoice_to_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"invoice_title\": \"Tax Invoice\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"string\",\n \"status\": \"draft\",\n \"received_payment\": 0,\n \"payment_mode_id\": 1,\n \"deposit_to\": \"string\",\n \"amount\": 0,\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified invoice.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Invoice for Service\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"draft\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoices/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Invoice for Service\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"draft\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoices/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Invoice for Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"kms_in\": 50000,\n \"has_insurance\": false,\n \"insurer_id\": 1,\n \"invoice_to_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"invoice_title\": \"Tax Invoice\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"string\",\n \"status\": \"draft\",\n \"received_payment\": 0,\n \"payment_mode_id\": 1,\n \"deposit_to\": \"string\",\n \"amount\": 0,\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified invoice.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoices/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoices/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Add attachments to an invoice.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/invoices/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/invoices/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Invoice for Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"kms_in\": 50000,\n \"has_insurance\": false,\n \"insurer_id\": 1,\n \"invoice_to_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_date\": \"2026-03-31\",\n \"due_date\": \"2026-04-14\",\n \"payment_terms_id\": 1,\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"invoice_title\": \"Tax Invoice\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"terms_and_conditions\": \"string\",\n \"status\": \"draft\",\n \"received_payment\": 0,\n \"payment_mode_id\": 1,\n \"deposit_to\": \"string\",\n \"amount\": 0,\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Delete one attachment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoices/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoices/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "invoices", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Invoice Documents", "item": [ { "name": "Display a listing of invoice documents.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-documents", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-documents", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"document_number\": \"DOC-001\",\n \"document_expire\": \"2027-03-31\",\n \"document_file\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created invoice document.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-documents", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-documents", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"document_number\": \"DOC-001\",\n \"document_expire\": \"2027-03-31\",\n \"document_file\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified invoice document.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"document_number\": \"DOC-001\",\n \"show_in_invoice\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vehicle_id\": 1,\n \"document_type_id\": 1,\n \"customer_id\": 1,\n \"document_number\": \"DOC-001\",\n \"document_expire\": \"2027-03-31\",\n \"document_file\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified invoice document.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-documents/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-documents", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Invoice Notes", "item": [ { "name": "Display a listing of invoice notes.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-notes", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-notes", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created invoice note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"note\": \"Please process this invoice urgently.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-notes", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"note\": \"Please process this invoice urgently.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-notes", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified invoice note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"note\": \"Please process this invoice urgently.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"invoice_id\": 1,\n \"note\": \"Please process this invoice urgently.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/invoice-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified invoice note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/invoice-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "invoice-notes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Reasons", "item": [ { "name": "Display a listing of reasons.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/reasons", "host": [ "{{base_url}}" ], "path": [ "api", "reasons" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/reasons", "host": [ "{{base_url}}" ], "path": [ "api", "reasons" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Defective part\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created reason.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Customer Request\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/reasons", "host": [ "{{base_url}}" ], "path": [ "api", "reasons" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Customer Request\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/reasons", "host": [ "{{base_url}}" ], "path": [ "api", "reasons" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Defective part\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified reason.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Customer Request\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/reasons/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "reasons", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Customer Request\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/reasons/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "reasons", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Defective part\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified reason.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/reasons/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "reasons", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/reasons/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "reasons", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Credit Notes", "item": [ { "name": "Display a listing of credit notes.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"subject\": \"Credit Note for Invoice 001\",\n \"credit_invoice\": \"CN-001\",\n \"customer_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created credit note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Credit Note for Invoice 001\",\n \"customer_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"status\": \"open\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Credit Note for Invoice 001\",\n \"customer_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"status\": \"open\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Credit Note for Invoice 001\",\n \"credit_invoice\": \"CN-001\",\n \"customer_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified credit note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Credit Note for Invoice 001\",\n \"customer_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"status\": \"open\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Credit Note for Invoice 001\",\n \"customer_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"status\": \"open\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Credit Note for Invoice 001\",\n \"credit_invoice\": \"CN-001\",\n \"customer_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified credit note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Add attachment(s) to credit note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Credit Note for Invoice 001\",\n \"credit_invoice\": \"CN-001\",\n \"customer_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Delete one attachment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Add internal note to credit note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Internal note for the credit note.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "add-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Internal note for the credit note.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "add-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Credit Note for Invoice 001\",\n \"credit_invoice\": \"CN-001\",\n \"customer_id\": 1,\n \"billing_address_id\": 1,\n \"delivery_address_id\": 1,\n \"invoice_id\": 1,\n \"date\": \"2026-03-31\",\n \"reason_id\": 1,\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Edit one internal note. (route currently uses DELETE verb)", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "edit-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "edit-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Delete one internal note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "delete-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/credit-notes/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "credit-notes", "{{id}}", "delete-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Payment Mades", "item": [ { "name": "Display a listing of payment made records.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mades", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mades", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"vendor_id\": 1,\n \"employee_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_number\": \"PAY-001\",\n \"payment_reference\": \"string\",\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"paid_through\": \"string\",\n \"notes\": \"string\",\n \"excess_amount_will_be_deposited\": 0,\n \"amount_paid\": 500,\n \"amount_used_for_payments\": 500,\n \"amount_in_excess\": 0,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created payment made record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vendor_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"notes\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mades", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vendor_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"notes\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mades", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vendor_id\": 1,\n \"employee_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_number\": \"PAY-001\",\n \"payment_reference\": \"string\",\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"paid_through\": \"string\",\n \"notes\": \"string\",\n \"excess_amount_will_be_deposited\": 0,\n \"amount_paid\": 500,\n \"amount_used_for_payments\": 500,\n \"amount_in_excess\": 0,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified payment made record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vendor_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"notes\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"vendor_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"notes\": \"string\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vendor_id\": 1,\n \"employee_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_number\": \"PAY-001\",\n \"payment_reference\": \"string\",\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"paid_through\": \"string\",\n \"notes\": \"string\",\n \"excess_amount_will_be_deposited\": 0,\n \"amount_paid\": 500,\n \"amount_used_for_payments\": 500,\n \"amount_in_excess\": 0,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified payment made record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Add attachment(s) to payment made.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"vendor_id\": 1,\n \"employee_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 500,\n \"payment_number\": \"PAY-001\",\n \"payment_reference\": \"string\",\n \"payment_date\": \"2026-03-31\",\n \"payment_mode_id\": 1,\n \"paid_through\": \"string\",\n \"notes\": \"string\",\n \"excess_amount_will_be_deposited\": 0,\n \"amount_paid\": 500,\n \"amount_used_for_payments\": 500,\n \"amount_in_excess\": 0,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Delete one attachment from payment made.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/payment-mades/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "payment-mades", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Vendor Credits", "item": [ { "name": "Display a listing of vendor credits.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"subject\": \"Vendor Credit for Bill 001\",\n \"credit_number\": \"VC-001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"order_number\": \"string\",\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created vendor credit.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Vendor Credit for Bill 001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"open\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Vendor Credit for Bill 001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"open\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Vendor Credit for Bill 001\",\n \"credit_number\": \"VC-001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"order_number\": \"string\",\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified vendor credit.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Vendor Credit for Bill 001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"open\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"subject\": \"Vendor Credit for Bill 001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"status\": \"open\",\n \"discount\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Vendor Credit for Bill 001\",\n \"credit_number\": \"VC-001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"order_number\": \"string\",\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified vendor credit.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Add attachment(s) after creating vendor credit.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Vendor Credit for Bill 001\",\n \"credit_number\": \"VC-001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"order_number\": \"string\",\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Delete one vendor credit attachment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Add internal note after creating vendor credit.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Internal note for the vendor credit.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "add-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"note\": \"Internal note for the vendor credit.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/add-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "add-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"subject\": \"Vendor Credit for Bill 001\",\n \"credit_number\": \"VC-001\",\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_id\": 1,\n \"order_number\": \"string\",\n \"vendor_credit_date\": \"2026-03-31\",\n \"department_id\": 1,\n \"notes\": \"string\",\n \"status\": \"open\",\n \"discount\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Edit internal note. (route currently uses DELETE verb)", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "edit-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/edit-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "edit-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Delete internal note.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "delete-internal-note" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/vendor-credits/{{id}}/delete-internal-note", "host": [ "{{base_url}}" ], "path": [ "api", "vendor-credits", "{{id}}", "delete-internal-note" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Inventory Adjustments", "item": [ { "name": "Display a listing of inventory adjustments.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-adjustments", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-adjustments", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"job_card_id\": 1,\n \"invoice_id\": 1,\n \"notes\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created inventory adjustment with parts.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"notes\": \"string\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 25\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-adjustments", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"notes\": \"string\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 25\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-adjustments", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"job_card_id\": 1,\n \"invoice_id\": 1,\n \"notes\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified inventory adjustment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"notes\": \"string\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 25\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"notes\": \"string\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 25\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"job_card_id\": 1,\n \"invoice_id\": 1,\n \"notes\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified inventory adjustment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Add attachment(s) to inventory adjustment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "value": "" } ] }, "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}", "add-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "attachments[]", "type": "file", "description": "File to attach (jpeg, jpg, png, gif, webp, mp4, avi, mov, mkv, webm, mp3, wav, m4a, aac, ogg, pdf, xlsx, xls, docx, doc — max 5 MB). Repeat for multiple files.", "src": [ "" ] } ] }, "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}/add-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}", "add-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"reference_number\": \"ADJ-001\",\n \"date\": \"2026-03-31\",\n \"chart_of_account\": \"string\",\n \"reason_id\": 1,\n \"job_card_id\": 1,\n \"invoice_id\": 1,\n \"notes\": \"string\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Delete one attachment from inventory adjustment.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}", "delete-attachment" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"attachment_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/inventory-adjustments/{{id}}/delete-attachment", "host": [ "{{base_url}}" ], "path": [ "api", "inventory-adjustments", "{{id}}", "delete-attachment" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Time Sheets", "item": [ { "name": "Display a listing of time sheets.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/time-sheets", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/time-sheets", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"duration\": \"08:00:00\",\n \"total\": 8,\n \"note\": \"string\",\n \"activity_type\": \"general\",\n \"order_id\": 1,\n \"task_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created time sheet.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"activity_type\": \"general\",\n \"order_id\": 1,\n \"task_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheets", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"activity_type\": \"general\",\n \"order_id\": 1,\n \"task_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheets", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"duration\": \"08:00:00\",\n \"total\": 8,\n \"note\": \"string\",\n \"activity_type\": \"general\",\n \"order_id\": 1,\n \"task_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified time sheet.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"activity_type\": \"general\",\n \"order_id\": 1,\n \"task_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheets/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"activity_type\": \"general\",\n \"order_id\": 1,\n \"task_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheets/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"duration\": \"08:00:00\",\n \"total\": 8,\n \"note\": \"string\",\n \"activity_type\": \"general\",\n \"order_id\": 1,\n \"task_id\": 1,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified time sheet.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/time-sheets/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/time-sheets/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheets", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Time Sheet", "item": [ { "name": "Clock in employee for a new time sheet entry.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"note\": \"Starting work shift.\",\n \"activity_type\": \"general\",\n \"order_id\": null,\n \"task_id\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheet/clock-in", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheet", "clock-in" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"note\": \"Starting work shift.\",\n \"activity_type\": \"general\",\n \"order_id\": null,\n \"task_id\": null\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheet/clock-in", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheet", "clock-in" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Clock in successful.\",\n \"data\": {\n \"id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": null,\n \"duration\": null,\n \"total\": null,\n \"note\": \"Starting work shift.\",\n \"activity_type\": \"general\",\n \"order_id\": null,\n \"task_id\": null,\n \"created_at\": \"2026-03-31T09:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T09:00:00.000000Z\",\n \"calculated_total_cost\": 0,\n \"employee\": {\n \"id\": 1,\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\"\n }\n }\n}" } ] }, { "name": "Clock out employee from the latest open entry.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"time_sheet_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheet/clock-out", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheet", "clock-out" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"time_sheet_id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/time-sheet/clock-out", "host": [ "{{base_url}}" ], "path": [ "api", "time-sheet", "clock-out" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Clock out successful.\",\n \"data\": {\n \"id\": 1,\n \"employee_id\": 1,\n \"date\": \"2026-03-31\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"duration\": \"08:00:00\",\n \"total\": \"08:00:00\",\n \"note\": \"Starting work shift.\",\n \"activity_type\": \"general\",\n \"order_id\": null,\n \"task_id\": null,\n \"created_at\": \"2026-03-31T09:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T09:00:00.000000Z\",\n \"calculated_total_cost\": 0,\n \"employee\": {\n \"id\": 1,\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\"\n }\n }\n}" } ] } ] }, { "name": "Shop Timings", "item": [ { "name": "Display a listing of shop timings.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-timings", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-timings", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Standard Hours\",\n \"in_time\": \"08:00\",\n \"out_time\": \"17:00\",\n \"full_day_hours\": \"09:00\",\n \"half_day_hours\": \"04:30\",\n \"punch_in\": \"07:45\",\n \"punch_out\": \"17:15\",\n \"before_time\": \"00:15\",\n \"after_time\": \"00:15\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created shop timing.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Morning Shift\",\n \"in_time\": \"08:00:00\",\n \"out_time\": \"17:00:00\",\n \"full_day_hours\": \"08:00:00\",\n \"half_day_hours\": \"04:00:00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-timings", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Morning Shift\",\n \"in_time\": \"08:00:00\",\n \"out_time\": \"17:00:00\",\n \"full_day_hours\": \"08:00:00\",\n \"half_day_hours\": \"04:00:00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-timings", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Hours\",\n \"in_time\": \"08:00\",\n \"out_time\": \"17:00\",\n \"full_day_hours\": \"09:00\",\n \"half_day_hours\": \"04:30\",\n \"punch_in\": \"07:45\",\n \"punch_out\": \"17:15\",\n \"before_time\": \"00:15\",\n \"after_time\": \"00:15\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified shop timing.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Morning Shift\",\n \"in_time\": \"08:00:00\",\n \"out_time\": \"17:00:00\",\n \"full_day_hours\": \"08:00:00\",\n \"half_day_hours\": \"04:00:00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-timings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Morning Shift\",\n \"in_time\": \"08:00:00\",\n \"out_time\": \"17:00:00\",\n \"full_day_hours\": \"08:00:00\",\n \"half_day_hours\": \"04:00:00\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-timings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Hours\",\n \"in_time\": \"08:00\",\n \"out_time\": \"17:00\",\n \"full_day_hours\": \"09:00\",\n \"half_day_hours\": \"04:30\",\n \"punch_in\": \"07:45\",\n \"punch_out\": \"17:15\",\n \"before_time\": \"00:15\",\n \"after_time\": \"00:15\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified shop timing.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-timings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-timings/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-timings", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Default Shop Timing", "item": [ { "name": "Set a shop timing as default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-shop-timing", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-shop-timing" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-shop-timing", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-shop-timing" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Hours\",\n \"in_time\": \"08:00\",\n \"out_time\": \"17:00\",\n \"full_day_hours\": \"09:00\",\n \"half_day_hours\": \"04:30\",\n \"punch_in\": \"07:45\",\n \"punch_out\": \"17:15\",\n \"before_time\": \"00:15\",\n \"after_time\": \"00:15\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Default Shop Timing", "item": [ { "name": "Remove default from a shop timing.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-shop-timing", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-shop-timing" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-shop-timing", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-shop-timing" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Hours\",\n \"in_time\": \"08:00\",\n \"out_time\": \"17:00\",\n \"full_day_hours\": \"09:00\",\n \"half_day_hours\": \"04:30\",\n \"punch_in\": \"07:45\",\n \"punch_out\": \"17:15\",\n \"before_time\": \"00:15\",\n \"after_time\": \"00:15\",\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Holiday Years", "item": [ { "name": "List all holiday years.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/holiday-years", "host": [ "{{base_url}}" ], "path": [ "api", "holiday-years" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/holiday-years", "host": [ "{{base_url}}" ], "path": [ "api", "holiday-years" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\",\n \"is_optional\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Add a new holiday year.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"year\": 2026\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/holiday-years", "host": [ "{{base_url}}" ], "path": [ "api", "holiday-years" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"year\": 2026\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/holiday-years", "host": [ "{{base_url}}" ], "path": [ "api", "holiday-years" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\",\n \"is_optional\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Holidays", "item": [ { "name": "List holidays.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/holidays", "host": [ "{{base_url}}" ], "path": [ "api", "holidays" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/holidays", "host": [ "{{base_url}}" ], "path": [ "api", "holidays" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\",\n \"is_optional\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created holiday.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/holidays", "host": [ "{{base_url}}" ], "path": [ "api", "holidays" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/holidays", "host": [ "{{base_url}}" ], "path": [ "api", "holidays" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\",\n \"is_optional\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified holiday.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/holidays/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "holidays", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/holidays/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "holidays", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-25\",\n \"name\": \"Christmas Day\",\n \"is_optional\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified holiday.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/holidays/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "holidays", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/holidays/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "holidays", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Shop Calenders", "item": [ { "name": "Display a listing of shop calendars.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-calenders", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-calenders", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"Standard Work Week\",\n \"is_default\": false,\n \"days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"type\": \"full_day\",\n \"day_number\": 1\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created shop calendar.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Standard Work Calendar\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-calenders", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"Standard Work Calendar\",\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-calenders", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Work Week\",\n \"is_default\": false,\n \"days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"type\": \"full_day\",\n \"day_number\": 1\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified shop calendar.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-calenders/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/shop-calenders/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] }, { "name": "Update day type for one day in a shop calendar.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"day_number\": 1,\n \"type\": \"full_day\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-calenders/{{id}}/update-day-type", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders", "{{id}}", "update-day-type" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"day_number\": 1,\n \"type\": \"full_day\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/shop-calenders/{{id}}/update-day-type", "host": [ "{{base_url}}" ], "path": [ "api", "shop-calenders", "{{id}}", "update-day-type" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Work Week\",\n \"is_default\": false,\n \"days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"type\": \"full_day\",\n \"day_number\": 1\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Set Default Shop Calender", "item": [ { "name": "Set a shop calendar as default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-shop-calender", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-shop-calender" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-shop-calender", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-shop-calender" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Work Week\",\n \"is_default\": false,\n \"days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"type\": \"full_day\",\n \"day_number\": 1\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Default Shop Calender", "item": [ { "name": "Remove default from a shop calendar.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-shop-calender", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-shop-calender" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-shop-calender", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-shop-calender" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Standard Work Week\",\n \"is_default\": false,\n \"days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"type\": \"full_day\",\n \"day_number\": 1\n }\n ],\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Settings", "item": [ { "name": "Display current application settings.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/settings", "host": [ "{{base_url}}" ], "path": [ "api", "settings" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/settings", "host": [ "{{base_url}}" ], "path": [ "api", "settings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"My Workshop\",\n \"email\": \"workshop@example.com\",\n \"phone\": \"+971501234567\",\n \"alternative_phone\": \"string\",\n \"website\": \"string\",\n \"time_zone\": \"Asia/Dubai\",\n \"upi_id\": \"string\",\n \"first_day_of_work\": \"monday\",\n \"latitude\": \"string\",\n \"longitude\": \"string\",\n \"bank_details\": \"string\",\n \"first_address_line\": \"string\",\n \"second_address_line\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"description\": \"string\",\n \"address\": \"string\",\n \"logo\": \"string\",\n \"icon\": \"string\",\n \"security\": \"string\",\n \"privacy_policy\": \"string\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Create or update application settings.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My Workshop\",\n \"email\": \"workshop@example.com\",\n \"phone\": \"+971501234567\",\n \"time_zone\": \"Asia/Dubai\",\n \"first_day_of_work\": \"monday\",\n \"first_address_line\": \"123 Main St\",\n \"country_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/settings", "host": [ "{{base_url}}" ], "path": [ "api", "settings" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My Workshop\",\n \"email\": \"workshop@example.com\",\n \"phone\": \"+971501234567\",\n \"time_zone\": \"Asia/Dubai\",\n \"first_day_of_work\": \"monday\",\n \"first_address_line\": \"123 Main St\",\n \"country_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/settings", "host": [ "{{base_url}}" ], "path": [ "api", "settings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"My Workshop\",\n \"email\": \"workshop@example.com\",\n \"phone\": \"+971501234567\",\n \"alternative_phone\": \"string\",\n \"website\": \"string\",\n \"time_zone\": \"Asia/Dubai\",\n \"upi_id\": \"string\",\n \"first_day_of_work\": \"monday\",\n \"latitude\": \"string\",\n \"longitude\": \"string\",\n \"bank_details\": \"string\",\n \"first_address_line\": \"string\",\n \"second_address_line\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"description\": \"string\",\n \"address\": \"string\",\n \"logo\": \"string\",\n \"icon\": \"string\",\n \"security\": \"string\",\n \"privacy_policy\": \"string\"\n }\n}" } ] }, { "name": "Create or update application settings.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My Workshop\",\n \"email\": \"workshop@example.com\",\n \"phone\": \"+971501234567\",\n \"time_zone\": \"Asia/Dubai\",\n \"first_day_of_work\": \"monday\",\n \"first_address_line\": \"123 Main St\",\n \"country_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/settings", "host": [ "{{base_url}}" ], "path": [ "api", "settings" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"My Workshop\",\n \"email\": \"workshop@example.com\",\n \"phone\": \"+971501234567\",\n \"time_zone\": \"Asia/Dubai\",\n \"first_day_of_work\": \"monday\",\n \"first_address_line\": \"123 Main St\",\n \"country_id\": 1,\n \"city\": \"Dubai\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/settings", "host": [ "{{base_url}}" ], "path": [ "api", "settings" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"My Workshop\",\n \"email\": \"workshop@example.com\",\n \"phone\": \"+971501234567\",\n \"alternative_phone\": \"string\",\n \"website\": \"string\",\n \"time_zone\": \"Asia/Dubai\",\n \"upi_id\": \"string\",\n \"first_day_of_work\": \"monday\",\n \"latitude\": \"string\",\n \"longitude\": \"string\",\n \"bank_details\": \"string\",\n \"first_address_line\": \"string\",\n \"second_address_line\": \"string\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"string\",\n \"description\": \"string\",\n \"address\": \"string\",\n \"logo\": \"string\",\n \"icon\": \"string\",\n \"security\": \"string\",\n \"privacy_policy\": \"string\"\n }\n}" } ] } ] }, { "name": "Taxes", "item": [ { "name": "Display a listing of taxes.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/taxes", "host": [ "{{base_url}}" ], "path": [ "api", "taxes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/taxes", "host": [ "{{base_url}}" ], "path": [ "api", "taxes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"title\": \"VAT 5%\",\n \"note\": \"string\",\n \"rate\": 5,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created tax.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"VAT 5%\",\n \"note\": \"Value Added Tax\",\n \"rate\": 5.0,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/taxes", "host": [ "{{base_url}}" ], "path": [ "api", "taxes" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"VAT 5%\",\n \"note\": \"Value Added Tax\",\n \"rate\": 5.0,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/taxes", "host": [ "{{base_url}}" ], "path": [ "api", "taxes" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT 5%\",\n \"note\": \"string\",\n \"rate\": 5,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified tax.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"VAT 5%\",\n \"note\": \"Value Added Tax\",\n \"rate\": 5.0,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/taxes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "taxes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"title\": \"VAT 5%\",\n \"note\": \"Value Added Tax\",\n \"rate\": 5.0,\n \"is_default\": false\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/taxes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "taxes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT 5%\",\n \"note\": \"string\",\n \"rate\": 5,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified tax.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/taxes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "taxes", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/taxes/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "taxes", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Set Default Tax", "item": [ { "name": "Set a tax as the default.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-tax", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-tax" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/set-default-tax", "host": [ "{{base_url}}" ], "path": [ "api", "set-default-tax" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT 5%\",\n \"note\": \"string\",\n \"rate\": 5,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Remove Default Tax", "item": [ { "name": "Remove default from a tax.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-tax", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-tax" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/remove-default-tax", "host": [ "{{base_url}}" ], "path": [ "api", "remove-default-tax" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT 5%\",\n \"note\": \"string\",\n \"rate\": 5,\n \"is_default\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Make And Models", "item": [ { "name": "Display a listing of make and model records.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/make-and-models", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/make-and-models", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": [\n {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 5,\n \"per_page\": 15,\n \"total\": 75\n },\n \"links\": {\n \"first\": \"https://api.example.com/resource?page=1\",\n \"last\": \"https://api.example.com/resource?page=5\",\n \"prev\": \"string\",\n \"next\": \"https://api.example.com/resource?page=2\"\n }\n}" } ] }, { "name": "Store a newly created make and model record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/make-and-models", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/make-and-models", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Update the specified make and model record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/make-and-models/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"is_active\": true\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/make-and-models/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "Remove the specified make and model record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/make-and-models/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models", "{{id}}" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/make-and-models/{{id}}", "host": [ "{{base_url}}" ], "path": [ "api", "make-and-models", "{{id}}" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Deleted successfully.\"\n}" } ] } ] }, { "name": "Toggle Make And Model Status", "item": [ { "name": "Toggle the active status of a make and model record.", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-make-and-model-status", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-make-and-model-status" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"id\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/toggle-make-and-model-status", "host": [ "{{base_url}}" ], "path": [ "api", "toggle-make-and-model-status" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2022\",\n \"sub_model\": \"LE\",\n \"body_type_id\": 1,\n \"fuel_id\": 1,\n \"transmission_id\": 1,\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"is_active\": true,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Configurations", "item": [ { "name": "GET /api/configurations", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/configurations", "host": [ "{{base_url}}" ], "path": [ "api", "configurations" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/configurations", "host": [ "{{base_url}}" ], "path": [ "api", "configurations" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"data\": {\n \"id\": 1,\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\",\n \"enable_parts_issuing\": false,\n \"enable_digital_authorisation\": false,\n \"is_taxable_order\": true,\n \"customer_search_by_vehicle\": false,\n \"vehicle_search_by_customer\": false,\n \"odometer_in_check_in\": false,\n \"odometer_in_check_out\": false,\n \"customer_signature_in_check_in\": false,\n \"customer_signature_in_check_out\": false,\n \"set_packaged_pricing\": false,\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": false,\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "PUT /api/configurations/sales_tax_discount", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/configurations/sales_tax_discount", "host": [ "{{base_url}}" ], "path": [ "api", "configurations", "sales_tax_discount" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/configurations/sales_tax_discount", "host": [ "{{base_url}}" ], "path": [ "api", "configurations", "sales_tax_discount" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "PUT /api/configurations/purchase_tax_discount", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/configurations/purchase_tax_discount", "host": [ "{{base_url}}" ], "path": [ "api", "configurations", "purchase_tax_discount" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/configurations/purchase_tax_discount", "host": [ "{{base_url}}" ], "path": [ "api", "configurations", "purchase_tax_discount" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] }, { "name": "PUT /api/configurations/general_preferences", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/configurations/general_preferences", "host": [ "{{base_url}}" ], "path": [ "api", "configurations", "general_preferences" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{base_url}}/api/configurations/general_preferences", "host": [ "{{base_url}}" ], "path": [ "api", "configurations", "general_preferences" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"message\": \"Operation completed successfully.\",\n \"data\": {\n \"id\": 1,\n \"sell_rates_tax_inclusive\": \"Tax Inclusive\",\n \"give_discounts\": \"no\",\n \"purchase_rates_tax_inclusive\": \"Tax Inclusive\",\n \"receive_discounts\": \"no\",\n \"created_at\": \"2026-03-31T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-31T10:00:00.000000Z\"\n }\n}" } ] } ] }, { "name": "Home", "item": [ { "name": "GET /api/home", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/home", "host": [ "{{base_url}}" ], "path": [ "api", "home" ] } }, "response": [ { "name": "200 OK", "originalRequest": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/json" }, { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "{{base_url}}/api/home", "host": [ "{{base_url}}" ], "path": [ "api", "home" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"filters\": {\n \"period\": \"this_month\",\n \"start_date\": \"2026-03-01\",\n \"end_date\": \"2026-03-31\",\n \"available_periods\": [\n \"today\",\n \"yesterday\",\n \"this_week\",\n \"this_month\",\n \"last_month\",\n \"last_3_months\",\n \"last_6_months\",\n \"last_year\",\n \"year_to_date\",\n \"all_time\",\n \"custom\"\n ]\n },\n \"financial_filters\": {\n \"period\": \"this_month\",\n \"start_date\": \"2026-03-01\",\n \"end_date\": \"2026-03-31\"\n },\n \"work_orders_filters\": {\n \"period\": \"this_month\",\n \"start_date\": \"2026-03-01\",\n \"end_date\": \"2026-03-31\"\n },\n \"appointments_filters\": {\n \"period\": \"this_month\",\n \"start_date\": \"2026-03-01\",\n \"end_date\": \"2026-03-31\"\n },\n \"sales_filters\": {\n \"period\": \"this_month\",\n \"start_date\": \"2026-03-01\",\n \"end_date\": \"2026-03-31\"\n },\n \"purchase_filters\": {\n \"period\": \"this_month\",\n \"start_date\": \"2026-03-01\",\n \"end_date\": \"2026-03-31\"\n },\n \"chart\": {\n \"currency\": \"AED\",\n \"series\": [\n {\n \"date\": \"2026-03-01\",\n \"income\": 1200.0,\n \"expense\": 450.0\n },\n {\n \"date\": \"2026-03-15\",\n \"income\": 3500.0,\n \"expense\": 1100.0\n },\n {\n \"date\": \"2026-03-31\",\n \"income\": 2800.0,\n \"expense\": 900.0\n }\n ]\n },\n \"totals\": {\n \"currency\": \"AED\",\n \"income\": 7500.0,\n \"expense\": 2450.0,\n \"total_income_text\": \"AED 7,500.00\",\n \"total_expense_text\": \"AED 2,450.00\"\n },\n \"financial_summary\": {\n \"currency\": \"AED\",\n \"chart\": [\n {\n \"label\": \"Invoices\",\n \"count\": 12,\n \"amount\": 15000.0\n },\n {\n \"label\": \"Expenses\",\n \"count\": 5,\n \"amount\": 2450.0\n },\n {\n \"label\": \"Bills\",\n \"count\": 8,\n \"amount\": 6300.0\n }\n ],\n \"cards\": [\n {\n \"label\": \"Total Invoiced\",\n \"amount\": 15000.0,\n \"amount_text\": \"AED 15,000.00\"\n },\n {\n \"label\": \"Total Expenses\",\n \"amount\": 2450.0,\n \"amount_text\": \"AED 2,450.00\"\n },\n {\n \"label\": \"Total Bills\",\n \"amount\": 6300.0,\n \"amount_text\": \"AED 6,300.00\"\n }\n ]\n },\n \"work_orders\": {\n \"status_cards\": [\n {\n \"status\": \"draft\",\n \"label\": \"Draft\",\n \"count\": 2,\n \"orders_text\": \"2 Orders\",\n \"amount\": 0.0,\n \"amount_text\": \"AED 0.00\"\n },\n {\n \"status\": \"check_in\",\n \"label\": \"Check In\",\n \"count\": 5,\n \"orders_text\": \"5 Orders\",\n \"amount\": 0.0,\n \"amount_text\": \"AED 0.00\"\n },\n {\n \"status\": \"in_progress\",\n \"label\": \"In Progress\",\n \"count\": 8,\n \"orders_text\": \"8 Orders\",\n \"amount\": 0.0,\n \"amount_text\": \"AED 0.00\"\n },\n {\n \"status\": \"on_hold\",\n \"label\": \"On Hold\",\n \"count\": 1,\n \"orders_text\": \"1 Orders\",\n \"amount\": 0.0,\n \"amount_text\": \"AED 0.00\"\n },\n {\n \"status\": \"ready_to_delivery\",\n \"label\": \"Ready to Deliver\",\n \"count\": 3,\n \"orders_text\": \"3 Orders\",\n \"amount\": 0.0,\n \"amount_text\": \"AED 0.00\"\n },\n {\n \"status\": \"delivered\",\n \"label\": \"Delivered\",\n \"count\": 7,\n \"orders_text\": \"7 Orders\",\n \"amount\": 0.0,\n \"amount_text\": \"AED 0.00\"\n }\n ],\n \"total\": 26,\n \"chart\": [\n {\n \"date\": \"2026-03-01\",\n \"orders\": 3\n },\n {\n \"date\": \"2026-03-15\",\n \"orders\": 8\n },\n {\n \"date\": \"2026-03-31\",\n \"orders\": 5\n }\n ]\n },\n \"appointments\": {\n \"completed\": 10,\n \"no_show\": 2,\n \"cancelled\": 1,\n \"total\": 20,\n \"no_show_rate\": 10.0,\n \"chart\": [\n {\n \"date\": \"2026-03-01\",\n \"appointments\": 2\n },\n {\n \"date\": \"2026-03-15\",\n \"appointments\": 5\n },\n {\n \"date\": \"2026-03-31\",\n \"appointments\": 3\n }\n ]\n },\n \"upcoming_appointments\": {\n \"counts\": {\n \"today\": 3,\n \"tomorrow\": 2,\n \"this_week\": 8,\n \"next_week\": 5\n },\n \"details\": [\n {\n \"id\": 1,\n \"title\": \"Oil Change\",\n \"date\": \"2026-03-31\",\n \"from_time\": \"09:00\",\n \"to_time\": \"10:00\",\n \"status\": \"confirmed\"\n }\n ],\n \"meta\": {\n \"current_page\": 1,\n \"last_page\": 1,\n \"per_page\": 10,\n \"total\": 3\n }\n },\n \"inventory\": {\n \"parts_count\": 150,\n \"services_count\": 45,\n \"service_groups_count\": 12\n },\n \"customers\": {\n \"total\": 320,\n \"individuals\": 180,\n \"companies\": 90,\n \"fleets\": 30,\n \"insurers\": 20\n },\n \"vehicles_by_body_type\": [\n {\n \"body_type_id\": 1,\n \"body_type\": \"Sedan\",\n \"vehicles_count\": 85\n },\n {\n \"body_type_id\": 2,\n \"body_type\": \"SUV\",\n \"vehicles_count\": 120\n }\n ],\n \"vehicles_by_make\": [\n {\n \"make\": \"Toyota\",\n \"vehicles_count\": 95\n },\n {\n \"make\": \"Nissan\",\n \"vehicles_count\": 60\n }\n ],\n \"vehicles_by_make_model\": [\n {\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"vehicles_count\": 45\n },\n {\n \"make\": \"Toyota\",\n \"model\": \"Land Cruiser\",\n \"vehicles_count\": 50\n }\n ],\n \"sales\": {\n \"inspections\": 8,\n \"estimates\": 15,\n \"invoices\": 12\n },\n \"purchases\": {\n \"purchase_orders\": 6,\n \"bills\": 8,\n \"expenses\": 5\n }\n}" } ] } ] }, { "name": "Document print / download", "item": [ { "name": "GET /api/document-print", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Accept", "value": "application/pdf" } ], "url": { "raw": "{{base_url}}/api/document-print?type=invoice&id=1&mode=download", "host": [ "{{base_url}}" ], "path": [ "api", "document-print" ], "query": [ { "key": "type", "value": "invoice", "description": "inspection | estimate | job_card | invoice | payment_received | expense | purchase_order | bill | payment_made" }, { "key": "id", "value": "1" }, { "key": "mode", "value": "download", "description": "print = open in browser; download = attachment" } ] } }, "response": [] }, { "name": "POST /api/document-print", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Accept", "value": "application/pdf" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"type\": \"job_card\",\n \"id\": 1,\n \"mode\": \"print\"\n}" }, "url": { "raw": "{{base_url}}/api/document-print", "host": [ "{{base_url}}" ], "path": [ "api", "document-print" ] } }, "response": [] } ], "description": "Unified PDF endpoint. Query/body: type = inspection | estimate | job_card | invoice | payment_received | expense | purchase_order | bill | payment_made; id = record id; mode = print (inline) | download (attachment)." } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{auth_token}}", "type": "string" } ] }, "variable": [ { "key": "base_url", "value": "http://localhost" }, { "key": "auth_token", "value": "YOUR_SANCTUM_TOKEN" }, { "key": "id", "value": "1" } ] }