20462 lines
666 KiB
JSON
20462 lines
666 KiB
JSON
{
|
|
"info": {
|
|
"_postman_id": "cb4c39c8-b714-48f4-8996-5a9774d58d12",
|
|
"name": "Reparee API",
|
|
"description": "All authenticated API endpoints. Set base_url and auth_token in collection variables.",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
"_exporter_id": "17202336"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Auth",
|
|
"item": [
|
|
{
|
|
"name": "Login",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"email\": \"admin@admin.com\",\n \"password\": \"12345678\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/login",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"login"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"email\": \"admin@admin.com\",\n \"password\": \"12345678\"\n}"
|
|
},
|
|
"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 \"token\": \"1|YOUR_SANCTUM_TOKEN\",\n \"user\": {\n \"id\": 1,\n \"name\": \"Admin\",\n \"email\": \"admin@admin.com\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Profile",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/profile",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"profile"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Admin\",\n \"email\": \"admin@admin.com\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Logout",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/logout",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"logout"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"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": "{\n \"message\": \"Logged out successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Referral Sources",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/referral-sources",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"referral-sources"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"current_page\": 1,\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"Website\",\n \"is_default\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n ],\n \"first_page_url\": \"http://localhost:8000/api/referral-sources?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://localhost:8000/api/referral-sources?page=1\",\n \"links\": [],\n \"next_page_url\": null,\n \"path\": \"http://localhost:8000/api/referral-sources\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Website\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/referral-sources",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"referral-sources"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Website\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/referral-sources",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"referral-sources"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Referral source created successfully.\",\n \"data\": {\n \"id\": 2,\n \"name\": \"Walk-in\",\n \"is_default\": false,\n \"created_at\": \"2026-03-23T12:05:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:05:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Website\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/referral-sources/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"referral-sources",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Website\"\n}"
|
|
},
|
|
"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\": \"Referral source updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Website Ads\",\n \"is_default\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/referral-sources/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"referral-sources",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Referral source deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Set Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-referral-source",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-referral-source"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Default referral source updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Website\",\n \"is_default\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:15:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Customers",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Doe Holdings\",\n \"email\": \"john@example.com\",\n \"phone\": \"0501234567\",\n \"alternate_phone\": \"0551234567\",\n \"opening_balance\": 0,\n \"credit_limit\": 5000,\n \"website\": \"https://example.com\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"Street 10\",\n \"address_line_2\": \"Near Central Plaza\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"customer_type\": {\n \"id\": 1,\n \"name\": \"Retail\"\n },\n \"referral_source\": {\n \"id\": 1,\n \"name\": \"Website\"\n },\n \"payment_term\": {\n \"id\": 1,\n \"title\": \"Net 30\",\n \"days\": 30\n },\n \"country\": {\n \"id\": 1,\n \"name\": \"United Arab Emirates\",\n \"code\": \"AE\"\n },\n \"state\": {\n \"id\": 1,\n \"name\": \"Dubai\",\n \"code\": \"DU\"\n }\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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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\": \"Doe Holdings\",\n \"email\": \"john@example.com\",\n \"phone\": \"0501234567\",\n \"alternate_phone\": \"0551234567\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"Street 10\",\n \"address_line_2\": \"Near Central Plaza\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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\": \"Doe Holdings\",\n \"email\": \"john@example.com\",\n \"phone\": \"0501234567\",\n \"alternate_phone\": \"0551234567\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"Street 10\",\n \"address_line_2\": \"Near Central Plaza\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Customer created successfully.\",\n \"data\": {\n \"id\": 2,\n \"customer_type_id\": 1,\n \"salutation\": \"Mr\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"company_name\": \"Doe Holdings\",\n \"email\": \"john@example.com\",\n \"phone\": \"0501234567\",\n \"alternate_phone\": \"0551234567\",\n \"opening_balance\": 0,\n \"credit_limit\": 5000,\n \"website\": \"https://example.com\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"Street 10\",\n \"address_line_2\": \"Near Central Plaza\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\",\n \"created_at\": \"2026-03-23T12:20:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:20:00.000000Z\",\n \"customer_type\": {\n \"id\": 1,\n \"name\": \"Retail\"\n },\n \"referral_source\": {\n \"id\": 1,\n \"name\": \"Website\"\n },\n \"payment_term\": {\n \"id\": 1,\n \"title\": \"Net 30\",\n \"days\": 30\n },\n \"country\": {\n \"id\": 1,\n \"name\": \"United Arab Emirates\",\n \"code\": \"AE\"\n },\n \"state\": {\n \"id\": 1,\n \"name\": \"Dubai\",\n \"code\": \"DU\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"John\",\n \"last_name\": \"Doe\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"John\",\n \"last_name\": \"Doe\"\n}"
|
|
},
|
|
"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\": \"Customer updated 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\": \"Doe Holdings\",\n \"email\": \"john@example.com\",\n \"phone\": \"0501234567\",\n \"alternate_phone\": \"0551234567\",\n \"opening_balance\": 0,\n \"credit_limit\": 5000,\n \"website\": \"https://example.com\",\n \"referral_source_id\": 1,\n \"payment_terms_id\": 1,\n \"address_line_1\": \"Street 10\",\n \"address_line_2\": \"Near Central Plaza\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:30:00.000000Z\",\n \"customer_type\": {\n \"id\": 1,\n \"name\": \"Retail\"\n },\n \"referral_source\": {\n \"id\": 1,\n \"name\": \"Website\"\n },\n \"payment_term\": {\n \"id\": 1,\n \"title\": \"Net 30\",\n \"days\": 30\n },\n \"country\": {\n \"id\": 1,\n \"name\": \"United Arab Emirates\",\n \"code\": \"AE\"\n },\n \"state\": {\n \"id\": 1,\n \"name\": \"Dubai\",\n \"code\": \"DU\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Customer deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Export",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers/export",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers",
|
|
"export"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Customers export generated successfully.\",\n \"data\": {\n \"file_name\": \"customers-2026-03-23-123000.xlsx\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Import",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers/import",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers",
|
|
"import"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customers/import",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customers",
|
|
"import"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Customer import completed successfully.\",\n \"data\": {\n \"imported_count\": 10,\n \"failed_count\": 1,\n \"failed_rows\": [\n {\n \"row\": 4,\n \"errors\": [\n \"The email has already been taken.\"\n ],\n \"values\": {\n \"email\": \"dup@example.com\"\n }\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Customer Types",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/customer-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"customer-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"data\": [\n {\n \"id\": 1,\n \"name\": \"Retail\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Countries & States",
|
|
"item": [
|
|
{
|
|
"name": "Countries",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/countries",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"countries"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"United Arab Emirates\",\n \"code\": \"AE\"\n },\n {\n \"id\": 2,\n \"name\": \"Saudi Arabia\",\n \"code\": \"SA\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "States",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/states",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"states"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"country_id\": 1,\n \"name\": \"Dubai\",\n \"code\": \"DU\",\n \"country\": {\n \"id\": 1,\n \"name\": \"United Arab Emirates\",\n \"code\": \"AE\"\n }\n },\n {\n \"id\": 2,\n \"country_id\": 1,\n \"name\": \"Abu Dhabi\",\n \"code\": \"AZ\",\n \"country\": {\n \"id\": 1,\n \"name\": \"United Arab Emirates\",\n \"code\": \"AE\"\n }\n }\n ]\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Payment Terms",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-terms",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-terms"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"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\": null,\n \"image_url\": null,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2024\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-123\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": null,\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": null,\n \"mfg_date\": null,\n \"parked_at\": null,\n \"mileage\": \"10000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": null,\n \"rear_tire_size\": null,\n \"note\": \"New vehicle\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"vehicle_body_type\": {\n \"id\": 1,\n \"title\": \"Sedan\"\n },\n \"vehicle_fuel_type\": {\n \"id\": 1,\n \"title\": \"Petrol\"\n },\n \"vehicle_transmission\": {\n \"id\": 1,\n \"title\": \"Automatic\"\n },\n \"vehicle_color\": {\n \"id\": 1,\n \"title\": \"Red\",\n \"code\": \"RD\"\n }\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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Net 30\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-terms",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-terms"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Net 30\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-terms",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-terms"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Net 30\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-terms/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-terms",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Net 30\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-terms/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-terms",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-payment-term",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-payment-term"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-payment-term",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-payment-term"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Shop Types",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Main Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"General automotive services\",\n \"inspection\": \"shop_types/inspection/inspection-template.pdf\",\n \"image\": \"shop_types/image/shop-type-car.jpg\",\n \"is_default\": true,\n \"created_at\": \"2026-03-24T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T12:00:00.000000Z\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "title",
|
|
"value": "Main Workshop",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "shop_type",
|
|
"value": "Car",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "General automotive services",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "is_default",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "inspection",
|
|
"type": "file",
|
|
"value": ""
|
|
},
|
|
{
|
|
"key": "image",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "title",
|
|
"value": "Main Workshop",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "shop_type",
|
|
"value": "Car",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "General automotive services",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "is_default",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "inspection",
|
|
"type": "file",
|
|
"value": ""
|
|
},
|
|
{
|
|
"key": "image",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-types"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Shop type created successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Main Workshop\",\n \"shop_type\": \"Car\",\n \"note\": \"General automotive services\",\n \"inspection\": \"shop_types/inspection/inspection-template.pdf\",\n \"image\": \"shop_types/image/shop-type-car.jpg\",\n \"is_default\": true,\n \"created_at\": \"2026-03-24T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "_method",
|
|
"value": "PUT",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "title",
|
|
"value": "Main Workshop Updated",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "shop_type",
|
|
"value": "Car",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "Updated note",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "is_default",
|
|
"value": "0",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "inspection",
|
|
"type": "file",
|
|
"value": ""
|
|
},
|
|
{
|
|
"key": "image",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "_method",
|
|
"value": "PUT",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "title",
|
|
"value": "Main Workshop Updated",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "shop_type",
|
|
"value": "Car",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "Updated note",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "is_default",
|
|
"value": "0",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "inspection",
|
|
"type": "file",
|
|
"value": ""
|
|
},
|
|
{
|
|
"key": "image",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"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\": \"Shop type updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Main Workshop Updated\",\n \"shop_type\": \"Car\",\n \"note\": \"Updated note\",\n \"inspection\": \"shop_types/inspection/inspection-template-v2.pdf\",\n \"image\": \"shop_types/image/shop-type-car-v2.jpg\",\n \"is_default\": false,\n \"created_at\": \"2026-03-24T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Shop type deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Vehicle Body Types",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-body-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-body-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"Standard\",\n \"description\": \"Full synthetic oil change\",\n \"department_id\": 1,\n \"sales_information\": false,\n \"rate_type\": null,\n \"labor_rate_id\": null,\n \"labor_hours\": null,\n \"sales_chart_of_account\": null,\n \"selling_price\": \"75.00\",\n \"purchase_information\": false,\n \"purchase_chart_of_account\": null,\n \"purchase_preferred_vendor_id\": null,\n \"purchase_price\": null,\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"category\": {\n \"id\": 1,\n \"title\": \"Oil & Maintenance\"\n },\n \"unit_type\": {\n \"id\": 1,\n \"title\": \"Hour\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"labor_rate\": null\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Sedan\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-body-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-body-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Sedan\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-body-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-body-types"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"Standard\",\n \"description\": \"Full synthetic oil change\",\n \"department_id\": 1,\n \"sales_information\": false,\n \"rate_type\": null,\n \"labor_rate_id\": null,\n \"labor_hours\": null,\n \"sales_chart_of_account\": null,\n \"selling_price\": \"75.00\",\n \"purchase_information\": false,\n \"purchase_chart_of_account\": null,\n \"purchase_preferred_vendor_id\": null,\n \"purchase_price\": null,\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"category\": {\n \"id\": 1,\n \"title\": \"Oil & Maintenance\"\n },\n \"unit_type\": {\n \"id\": 1,\n \"title\": \"Hour\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"labor_rate\": null\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Sedan\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-body-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-body-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Sedan\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change Premium\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"Standard\",\n \"description\": \"Full synthetic oil change\",\n \"department_id\": 1,\n \"sales_information\": false,\n \"rate_type\": null,\n \"labor_rate_id\": null,\n \"labor_hours\": null,\n \"sales_chart_of_account\": null,\n \"selling_price\": \"85.00\",\n \"purchase_information\": false,\n \"purchase_chart_of_account\": null,\n \"purchase_preferred_vendor_id\": null,\n \"purchase_price\": null,\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"category\": {\n \"id\": 1,\n \"title\": \"Oil & Maintenance\"\n },\n \"unit_type\": {\n \"id\": 1,\n \"title\": \"Hour\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n },\n \"labor_rate\": null\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-body-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-body-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-fuel-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-fuel-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Gasoline\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Gasoline\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-fuel-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-fuel-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Gasoline\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-fuel-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-fuel-types"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Gasoline\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Gasoline\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-fuel-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-fuel-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Gasoline\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Gasoline\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-fuel-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-fuel-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-transmissions",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-transmissions"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Automatic\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-transmissions",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-transmissions"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Automatic\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-transmissions",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-transmissions"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Automatic\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-transmissions/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-transmissions",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Automatic\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-transmissions/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-transmissions",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-colors",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-colors"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Black\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-colors",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-colors"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Black\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-colors",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-colors"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Black\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-colors/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-colors",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Black\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-colors/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-colors",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2024\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-123\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"10000\",\n \"owners_number\": \"1\",\n \"note\": \"New vehicle\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2024\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-123\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"10000\",\n \"owners_number\": \"1\",\n \"note\": \"New vehicle\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created 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\": null,\n \"image_url\": null,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2024\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-123\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": null,\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": null,\n \"mfg_date\": null,\n \"parked_at\": null,\n \"mileage\": \"10000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": null,\n \"rear_tire_size\": null,\n \"note\": \"New vehicle\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"vehicle_body_type\": {\n \"id\": 1,\n \"title\": \"Sedan\"\n },\n \"vehicle_fuel_type\": {\n \"id\": 1,\n \"title\": \"Petrol\"\n },\n \"vehicle_transmission\": {\n \"id\": 1,\n \"title\": \"Automatic\"\n },\n \"vehicle_color\": {\n \"id\": 1,\n \"title\": \"Red\",\n \"code\": \"RD\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"mileage\": \"12000\",\n \"license_plate\": \"ABC-123\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"mileage\": \"12000\",\n \"license_plate\": \"ABC-123\"\n}"
|
|
},
|
|
"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\": \"Updated 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\": null,\n \"image_url\": null,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2024\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-123\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_number\": null,\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"reg_date\": null,\n \"mfg_date\": null,\n \"parked_at\": null,\n \"mileage\": \"12000\",\n \"owners_number\": \"1\",\n \"front_tire_size\": null,\n \"rear_tire_size\": null,\n \"note\": \"New vehicle\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"vehicle_body_type\": {\n \"id\": 1,\n \"title\": \"Sedan\"\n },\n \"vehicle_fuel_type\": {\n \"id\": 1,\n \"title\": \"Petrol\"\n },\n \"vehicle_transmission\": {\n \"id\": 1,\n \"title\": \"Automatic\"\n },\n \"vehicle_color\": {\n \"id\": 1,\n \"title\": \"Red\",\n \"code\": \"RD\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles/export",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles",
|
|
"export"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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": "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 \"email\": \"john@example.com\",\n \"phone\": \"0501234567\",\n \"alternate_phone\": \"0551234567\",\n \"address_line_1\": \"Street 10\",\n \"address_line_2\": \"Near Central Plaza\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"Dubai\",\n \"zip_code\": \"00000\"\n }\n ],\n \"pagination\": {\n \"current_page\": 1,\n \"first_page_url\": \"{{base_url}}/api/get-vehicle-owners?page=1\",\n \"from\": 1,\n \"last_page_url\": \"{{base_url}}/api/get-vehicle-owners?page=1\",\n \"next_page_url\": null,\n \"path\": \"{{base_url}}/api/get-vehicle-owners\",\n \"per_page\": 10,\n \"prev_page_url\": null,\n \"to\": 1,\n \"total\": 1\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Import",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles/import",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles",
|
|
"import"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicles/import",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicles",
|
|
"import"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Import completed successfully.\",\n \"data\": {\n \"imported_count\": 10,\n \"failed_count\": 1,\n \"failed_rows\": [\n {\n \"row\": 4,\n \"errors\": [\n \"The service code has already been taken.\"\n ],\n \"values\": {\n \"service_code\": \"SVC-001\"\n }\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get Vehicle Owners",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/get-vehicle-owners",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"get-vehicle-owners"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"data\": [\n {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Link Customer to Vehicle",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"customer_id\": 1,\n \"vehicle_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/link-customer-to-vehicle",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"link-customer-to-vehicle"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"customer_id\": 1,\n \"vehicle_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/link-customer-to-vehicle",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"link-customer-to-vehicle"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created 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\": null,\n \"image_url\": null,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2024\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-123\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"10000\",\n \"note\": \"New vehicle\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"customers\": [\n {\n \"id\": 1,\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"email\": \"john@example.com\"\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Unlink Customer from Vehicle",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"customer_id\": 1,\n \"vehicle_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/unlink-customer-from-vehicle",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"unlink-customer-from-vehicle"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"customer_id\": 1,\n \"vehicle_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/unlink-customer-from-vehicle",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"unlink-customer-from-vehicle"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed 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\": null,\n \"image_url\": null,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": \"2024\",\n \"sub_model\": \"LE\",\n \"license_plate\": \"ABC-123\",\n \"vin_number\": \"1HGBH41JXMN109186\",\n \"engine_size\": \"2.5L\",\n \"drivetrain\": \"FWD\",\n \"mileage\": \"10000\",\n \"note\": \"New vehicle\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"customers\": []\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Document Types",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/document-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"document-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Registration\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/document-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"document-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Registration\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/document-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"document-types"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Registration\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/document-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"document-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Registration\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/document-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"document-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-documents",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-documents"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vehicle_id\": 1,\n \"document_type_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-documents",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-documents"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vehicle_id\": 1,\n \"document_type_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-documents",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-documents"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-documents/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-documents",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-documents/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-documents",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-mile-and-kms",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-mile-and-kms"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vehicle_id\": 1,\n \"mileage\": 50000\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-mile-and-kms",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-mile-and-kms"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vehicle_id\": 1,\n \"mileage\": 50000\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-mile-and-kms",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-mile-and-kms"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"mileage\": 51000\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-mile-and-kms/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-mile-and-kms",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"mileage\": 51000\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vehicle-mile-and-kms/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vehicle-mile-and-kms",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/departments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"departments"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"Mechanical\",\n \"assignment_type\": \"bays\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/departments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"departments"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"Mechanical\",\n \"assignment_type\": \"bays\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/departments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"departments"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"Mechanical\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/departments/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"departments",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"Mechanical\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/departments/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"departments",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-department",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-department"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-department",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-department"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Favorite",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-department",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-department"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-department",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-department"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Employees",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/employees",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"employees"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"phone\": \"0501234567\",\n \"department_id\": 1,\n \"position\": \"Technician\",\n \"status\": \"active\",\n \"type\": \"employee\",\n \"track_attendance\": true,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": 1,\n \"shop_timing_id\": 1,\n \"geo_fence_radius\": 100,\n \"created_at\": \"2026-03-24T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T12:00:00.000000Z\",\n \"department\": {\n \"id\": 1,\n \"name\": \"Mechanical\"\n },\n \"shop_calender\": {\n \"id\": 1,\n \"title\": \"Default Calendar\"\n },\n \"shop_timing\": {\n \"id\": 1,\n \"title\": \"Regular Shift\"\n },\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null\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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"phone\": \"0501234567\",\n \"department_id\": 1,\n \"position\": \"Technician\",\n \"status\": \"active\",\n \"type\": \"employee\",\n \"track_attendance\": true,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": 1,\n \"shop_timing_id\": 1,\n \"geo_fence_radius\": 100\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/employees",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"employees"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"phone\": \"0501234567\",\n \"department_id\": 1,\n \"position\": \"Technician\",\n \"status\": \"active\",\n \"type\": \"employee\",\n \"track_attendance\": true,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": 1,\n \"shop_timing_id\": 1,\n \"geo_fence_radius\": 100\n}"
|
|
},
|
|
"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 \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"phone\": \"0501234567\",\n \"department_id\": 1,\n \"position\": \"Technician\",\n \"status\": \"active\",\n \"type\": \"employee\",\n \"track_attendance\": true,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": 1,\n \"shop_timing_id\": 1,\n \"geo_fence_radius\": 100,\n \"created_at\": \"2026-03-24T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T12:00:00.000000Z\",\n \"department\": {\n \"id\": 1,\n \"name\": \"Mechanical\"\n },\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"status\": \"inactive\",\n \"position\": \"Senior Technician\",\n \"shop_timing_id\": 2\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/employees/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"employees",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"status\": \"inactive\",\n \"position\": \"Senior Technician\",\n \"shop_timing_id\": 2\n}"
|
|
},
|
|
"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 \"first_name\": \"Jane\",\n \"last_name\": \"Smith\",\n \"email\": \"jane@example.com\",\n \"phone\": \"0501234567\",\n \"department_id\": 1,\n \"position\": \"Senior Technician\",\n \"status\": \"inactive\",\n \"type\": \"employee\",\n \"track_attendance\": true,\n \"notify_owner_when_punch_in_out\": false,\n \"shop_calender_id\": 1,\n \"shop_timing_id\": 2,\n \"geo_fence_radius\": 100,\n \"created_at\": \"2026-03-24T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T12:10:00.000000Z\",\n \"has_active_time_sheet\": false,\n \"active_time_sheet\": null\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/employees/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"employees",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Unit Types",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/unit-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"unit-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Hour\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/unit-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"unit-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Hour\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/unit-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"unit-types"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Hour\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/unit-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"unit-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Hour\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/unit-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"unit-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-unit-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-unit-type"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-unit-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-unit-type"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Favorite",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-unit-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-unit-type"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-unit-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-unit-type"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Inventory Categories",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-categories",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-categories"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Parts\",\n \"shop_type_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-categories",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-categories"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Parts\",\n \"shop_type_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-categories",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-categories"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Parts\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-categories/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-categories",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Parts\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-categories/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-categories",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-inventory-category",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-inventory-category"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-inventory-category",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-inventory-category"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Favorite",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-inventory-category",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-inventory-category"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-inventory-category",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-inventory-category"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Labor Rates",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labor-rates",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labor-rates"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Standard\",\n \"rate\": 75\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labor-rates",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labor-rates"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Standard\",\n \"rate\": 75\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labor-rates",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labor-rates"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Standard\",\n \"rate\": 80\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labor-rates/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labor-rates",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Standard\",\n \"rate\": 80\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labor-rates/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labor-rates",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-labor-rate",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-labor-rate"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-favorite-labor-rate",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-favorite-labor-rate"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Favorite",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-labor-rate",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-labor-rate"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-favorite-labor-rate",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-favorite-labor-rate"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Vendors",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendors",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendors"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"Vendor\",\n \"last_name\": \"Name\",\n \"company_name\": \"ACME\",\n \"email\": \"vendor@example.com\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendors",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendors"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"first_name\": \"Vendor\",\n \"last_name\": \"Name\",\n \"company_name\": \"ACME\",\n \"email\": \"vendor@example.com\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendors",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendors"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"company_name\": \"ACME Inc\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendors/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendors",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"company_name\": \"ACME Inc\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendors/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendors",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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 Status",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-vendor-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-vendor-status"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-vendor-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-vendor-status"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create Vendor Address",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vendor_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"Suite 100\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"New York\",\n \"zip_code\": \"10001\",\n \"phone_number\": \"555-1234\",\n \"title\": \"Main Office\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/create-vendor-address",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"create-vendor-address"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vendor_id\": 1,\n \"address_line_1\": \"123 Main St\",\n \"address_line_2\": \"Suite 100\",\n \"country_id\": 1,\n \"state_id\": 1,\n \"city\": \"New York\",\n \"zip_code\": \"10001\",\n \"phone_number\": \"555-1234\",\n \"title\": \"Main Office\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/create-vendor-address",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"create-vendor-address"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Get Vendor Address",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-address/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-address",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Inspection Categories",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-categories",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-categories"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_name\": \"Brake Check\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-categories",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-categories"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_name\": \"Brake Check\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-categories",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-categories"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_name\": \"Brake Check\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-categories/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-categories",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_name\": \"Brake Check\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-categories/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-categories",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspections",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspections"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pre-purchase\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"employee_id\": 1,\n \"order_number\": \"ORD-001\",\n \"date\": \"2026-03-16\",\n \"time\": \"10:00:00\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspections",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspections"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pre-purchase\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"inspection_category_id\": 1,\n \"employee_id\": 1,\n \"order_number\": \"ORD-001\",\n \"date\": \"2026-03-16\",\n \"time\": \"10:00:00\"\n}"
|
|
},
|
|
"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\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pre-purchase\",\n \"note\": \"Updated note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspections/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspections",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pre-purchase\",\n \"note\": \"Updated note\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspections/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspections",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Change Inspection Status",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1,\n \"status\": \"completed\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/change-inspection-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"change-inspection-status"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1,\n \"status\": \"completed\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/change-inspection-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"change-inspection-status"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Labels",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labels",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labels"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labels",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labels"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labels",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labels"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labels/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labels",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#FF0000\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/labels/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"labels",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/insurance-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"insurance-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Comprehensive\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/insurance-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"insurance-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Comprehensive\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/insurance-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"insurance-types"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Comprehensive\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/insurance-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"insurance-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Comprehensive\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/insurance-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"insurance-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/estimates",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"estimates"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Estimate 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-16\",\n \"has_insurance\": false,\n \"label_ids\": [1],\n \"remarks\": [\"Customer note\"]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/estimates",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"estimates"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Estimate 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"department_id\": 1,\n \"estimate_number\": \"EST-001\",\n \"date\": \"2026-03-16\",\n \"has_insurance\": false,\n \"label_ids\": [1],\n \"remarks\": [\"Customer note\"]\n}"
|
|
},
|
|
"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\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Estimate 001\",\n \"label_ids\": [1, 2],\n \"remarks\": [\"Updated note\"]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/estimates/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"estimates",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Estimate 001\",\n \"label_ids\": [1, 2],\n \"remarks\": [\"Updated note\"]\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/estimates/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"estimates",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Quick Remark",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-remark",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-remark"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Needs follow-up\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-remark",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-remark"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Needs follow-up\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-remark",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-remark"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Needs follow-up\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-remark/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-remark",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Needs follow-up\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-remark/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-remark",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-notes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Quick note text\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-notes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Quick note text\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-notes"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Updated note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-notes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-notes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"description\": \"Updated note\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/quick-notes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"quick-notes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Reasons",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/reasons",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"reasons"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Customer request\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Customer request\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/reasons",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"reasons"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Customer request\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/reasons",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"reasons"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Reason created successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Customer request\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Updated reason title\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/reasons/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"reasons",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Updated reason title\"\n}"
|
|
},
|
|
"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\": \"Reason updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Updated reason title\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/reasons/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"reasons",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Reason deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Check Point Label",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/check-point-label",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"check-point-label"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/check-point-label",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"check-point-label"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/check-point-label",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"check-point-label"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/check-point-label/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"check-point-label",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Pass\",\n \"color_code\": \"#00FF00\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/check-point-label/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"check-point-label",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points?inspection_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "inspection_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points?inspection_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "inspection_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"data\": [\n {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_id\": 1,\n \"name\": \"Brake pads\",\n \"description\": \"Check thickness\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 85\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_id\": 1,\n \"name\": \"Brake pads\",\n \"description\": \"Check thickness\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 85\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"Brake pads\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 90,\n \"file\": null\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"Brake pads\",\n \"record_type\": \"record_conditions\",\n \"condition_rate\": 90,\n \"file\": null\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Toggle Label to Checkpoint",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_check_point_id\": 1,\n \"check_point_label_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-label-to-checkpoint",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-label-to-checkpoint"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_check_point_id\": 1,\n \"check_point_label_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-label-to-checkpoint",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-label-to-checkpoint"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Change Status",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_check_point_id\": 1,\n \"status\": \"passed\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/change-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"change-status"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"inspection_check_point_id\": 1,\n \"status\": \"passed\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/change-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"change-status"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Add Attachment",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "inspection_check_point_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "attachment",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "inspection_check_point_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "attachment",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Upload Media",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"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": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/{{id}}/upload-media",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"{{id}}",
|
|
"upload-media"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Media",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inspection-check-points/{{id}}/media",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inspection-check-points",
|
|
"{{id}}",
|
|
"media"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Job Cards",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"status\": \"draft\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Job Card 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"status\": \"draft\"\n}"
|
|
},
|
|
"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\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Job Card 001 Updated\",\n \"status\": \"check_in\",\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-18\",\n \"km_in\": 50000,\n \"label_ids\": [1]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Job Card 001 Updated\",\n \"status\": \"check_in\",\n \"department_id\": 1,\n \"check_in_date\": \"2026-03-18\",\n \"km_in\": 50000,\n \"label_ids\": [1]\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Change Date",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"order_date\": \"2026-03-18\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/change-date",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"change-date"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"order_date\": \"2026-03-18\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/change-date",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"change-date"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Change Status",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"status\": \"in_progress\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/change-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"change-status"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"status\": \"in_progress\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/change-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"change-status"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Add Customer Remark",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"remark\": \"Customer requested wash\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/add-customer-remark",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"add-customer-remark"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"remark\": \"Customer requested wash\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/add-customer-remark",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"add-customer-remark"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Edit Customer Remark",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"customer_remark_id\": 1,\n \"remark\": \"Updated remark\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/edit-customer-remark",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"edit-customer-remark"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"customer_remark_id\": 1,\n \"remark\": \"Updated remark\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/edit-customer-remark",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"edit-customer-remark"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Customer Remark",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/delete-customer-remark?customer_remark_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"delete-customer-remark"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "customer_remark_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/delete-customer-remark?customer_remark_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"delete-customer-remark"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "customer_remark_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Add Shop Recommendation",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"recommendation\": \"Replace brake pads\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/add-shop-recommendation",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"add-shop-recommendation"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"recommendation\": \"Replace brake pads\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/add-shop-recommendation",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"add-shop-recommendation"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Edit Shop Recommendation",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_recommendation_id\": 1,\n \"recommendation\": \"Updated recommendation\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/edit-shop-recommendation",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"edit-shop-recommendation"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_recommendation_id\": 1,\n \"recommendation\": \"Updated recommendation\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/edit-shop-recommendation",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"edit-shop-recommendation"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Shop Recommendation",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/delete-shop-recommendation?shop_recommendation_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"delete-shop-recommendation"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "shop_recommendation_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/delete-shop-recommendation?shop_recommendation_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"delete-shop-recommendation"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "shop_recommendation_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"status": "OK",
|
|
"code": 200,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Add Attachment",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Attachment",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/delete-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"delete-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/job-cards/{{id}}/delete-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"job-cards",
|
|
"{{id}}",
|
|
"delete-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Change Service Writer",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_writer_id\": 1\n}"
|
|
},
|
|
"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": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_writer_id\": 1\n}"
|
|
},
|
|
"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": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Change Sales Person",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"sales_person_id\": 1\n}"
|
|
},
|
|
"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": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"sales_person_id\": 1\n}"
|
|
},
|
|
"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": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Payment Modes",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mode",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mode"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Cash\",\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mode",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mode"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Cash\",\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mode",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mode"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Bank Transfer\",\n \"is_default\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mode/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mode",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Bank Transfer\",\n \"is_default\": false\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mode/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mode",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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 Received",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-recieved",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-recieved"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "job_card_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "payment_mode_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "customer_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "amount_received",
|
|
"value": "5000",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "payment_number",
|
|
"value": "PAY-001",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "payment_date",
|
|
"value": "2026-03-18",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "First payment",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "attachment_files[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-recieved",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-recieved"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "job_card_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "payment_mode_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "customer_id",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "amount_received",
|
|
"value": "5000",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "payment_number",
|
|
"value": "PAY-001",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "payment_date",
|
|
"value": "2026-03-18",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "First payment",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "attachment_files[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-recieved",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-recieved"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "_method",
|
|
"value": "PUT",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "amount_received",
|
|
"value": "6000",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "Updated payment",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "delete_attachment_ids[]",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "attachment_files[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-recieved/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-recieved",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "_method",
|
|
"value": "PUT",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "amount_received",
|
|
"value": "6000",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "note",
|
|
"value": "Updated payment",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "delete_attachment_ids[]",
|
|
"value": "1",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "attachment_files[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-recieved/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-recieved",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-recieved/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-recieved",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"parts"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Brake Pad\",\n \"sku\": \"BP-001\",\n \"part_number\": \"BP-001-A\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Bosch\",\n \"description\": \"Front brake pad set\",\n \"location\": \"Rack A-3\",\n \"pricing_matrix\": \"Standard\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": \"45.00\",\n \"sales_chart_of_account\": 4000,\n \"purchase_information\": true,\n \"purchase_chart_of_account\": 5000,\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": \"25.00\",\n \"track_inventory\": true,\n \"opening_stock\": 10,\n \"as_on_date\": \"2026-03-20\",\n \"min_stock\": 2,\n \"max_stock\": 50,\n \"inventory_chart_of_account\": 3000,\n \"tracking_type\": 1,\n \"inventory_purchase_price\": \"24.00\",\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Brake Pad\",\n \"sku\": \"BP-001\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"Front brake pad set\",\n \"selling_price\": 45.00,\n \"purchase_price\": 25.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"parts"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Brake Pad\",\n \"sku\": \"BP-001\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"Front brake pad set\",\n \"selling_price\": 45.00,\n \"purchase_price\": 25.00\n}"
|
|
},
|
|
"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\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Brake Pad\",\n \"sku\": \"BP-001\",\n \"part_number\": \"BP-001-A\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Bosch\",\n \"description\": \"Front brake pad set\",\n \"location\": \"Rack A-3\",\n \"pricing_matrix\": \"Standard\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": \"45.00\",\n \"sales_chart_of_account\": 4000,\n \"purchase_information\": true,\n \"purchase_chart_of_account\": 5000,\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": \"25.00\",\n \"track_inventory\": true,\n \"opening_stock\": 10,\n \"as_on_date\": \"2026-03-20\",\n \"min_stock\": 2,\n \"max_stock\": 50,\n \"inventory_chart_of_account\": 3000,\n \"tracking_type\": 1,\n \"inventory_purchase_price\": \"24.00\",\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Brake Pad Updated\",\n \"selling_price\": 50.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/parts/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"parts",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Brake Pad Updated\",\n \"selling_price\": 50.00\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"title\": \"Brake Pad Updated\",\n \"sku\": \"BP-001\",\n \"part_number\": \"BP-001-A\",\n \"unit_type_id\": 1,\n \"manufactured_by\": \"Bosch\",\n \"description\": \"Front brake pad set\",\n \"location\": \"Rack A-3\",\n \"pricing_matrix\": \"Standard\",\n \"department_id\": 1,\n \"sales_information\": true,\n \"selling_price\": \"50.00\",\n \"sales_chart_of_account\": 4000,\n \"purchase_information\": true,\n \"purchase_chart_of_account\": 5000,\n \"purchase_preferred_vendor_id\": 1,\n \"purchase_price\": \"25.00\",\n \"track_inventory\": true,\n \"opening_stock\": 10,\n \"as_on_date\": \"2026-03-20\",\n \"min_stock\": 2,\n \"max_stock\": 50,\n \"inventory_chart_of_account\": 3000,\n \"tracking_type\": 1,\n \"inventory_purchase_price\": \"24.00\",\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/parts/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"parts",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/import-parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"import-parts"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/import-parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"import-parts"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Import completed successfully.\",\n \"data\": {\n \"imported_count\": 8,\n \"failed_count\": 1,\n \"failed_rows\": [\n {\n \"row\": 4,\n \"errors\": [\n \"The sku has already been taken.\"\n ],\n \"values\": {\n \"sku\": \"BP-001\"\n }\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Export",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"search\": \"\",\n \"shop_type_id\": null,\n \"category_id\": null,\n \"department_id\": null\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/export-parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"export-parts"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"search\": \"\",\n \"shop_type_id\": null,\n \"category_id\": null,\n \"department_id\": null\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/export-parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"export-parts"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Export generated successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Toggle Status",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-part-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-part-status"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-part-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-part-status"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Status updated successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Purchase Orders",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/purchase-orders",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"purchase-orders"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"service_name\": \"Engine Service Group\",\n \"shop_type_id\": 1,\n \"code\": \"SG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"Common engine services\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": true,\n \"set_packaged_pricing\": false,\n \"selling_price\": \"100.00\",\n \"selling_chart_of_account\": \"4000\",\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"inventory_category\": {\n \"id\": 1,\n \"title\": \"Engine\"\n },\n \"unit_type\": {\n \"id\": 1,\n \"name\": \"Hour\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n }\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"title\": \"PO-001\",\n \"order_number\": \"PO-2026-001\",\n \"order_date\": \"2026-03-19\",\n \"delivery_date\": \"2026-03-25\",\n \"department_id\": 1,\n \"notes\": \"Urgent order\",\n \"label_ids\": [1],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 25.00,\n \"description\": \"Brake pads\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/purchase-orders",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"purchase-orders"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"title\": \"PO-001\",\n \"order_number\": \"PO-2026-001\",\n \"order_date\": \"2026-03-19\",\n \"delivery_date\": \"2026-03-25\",\n \"department_id\": 1,\n \"notes\": \"Urgent order\",\n \"label_ids\": [1],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 25.00,\n \"description\": \"Brake pads\"\n }\n ]\n}"
|
|
},
|
|
"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\": \"Service group created successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Engine Service Group\",\n \"shop_type_id\": 1,\n \"code\": \"SG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"Common engine services\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": true,\n \"set_packaged_pricing\": false,\n \"selling_price\": \"100.00\",\n \"selling_chart_of_account\": \"4000\",\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"inventory_category\": {\n \"id\": 1,\n \"title\": \"Engine\"\n },\n \"unit_type\": {\n \"id\": 1,\n \"name\": \"Hour\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"PO-001 Updated\",\n \"notes\": \"Updated notes\",\n \"label_ids\": [1, 2],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 10,\n \"rate\": 22.00,\n \"description\": \"Brake pads bulk\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/purchase-orders/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"purchase-orders",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"PO-001 Updated\",\n \"notes\": \"Updated notes\",\n \"label_ids\": [1, 2],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 10,\n \"rate\": 22.00,\n \"description\": \"Brake pads bulk\"\n }\n ]\n}"
|
|
},
|
|
"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\": \"Service group updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Engine Service Group Updated\",\n \"shop_type_id\": 1,\n \"code\": \"SG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"Common engine services\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": true,\n \"set_packaged_pricing\": false,\n \"selling_price\": \"125.00\",\n \"selling_chart_of_account\": \"4000\",\n \"is_active\": true,\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"inventory_category\": {\n \"id\": 1,\n \"title\": \"Engine\"\n },\n \"unit_type\": {\n \"id\": 1,\n \"name\": \"Hour\"\n },\n \"department\": {\n \"id\": 1,\n \"name\": \"Service Department\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/purchase-orders/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"purchase-orders",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Service group deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Services",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"services"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"Standard\",\n \"department_id\": 1,\n \"description\": \"Full synthetic oil change\",\n \"selling_price\": 75.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"services"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_type_id\": 1,\n \"category_id\": 1,\n \"labor_name\": \"Oil Change\",\n \"service_code\": \"SVC-001\",\n \"unit_type_id\": 1,\n \"labor_matrix\": \"Standard\",\n \"department_id\": 1,\n \"description\": \"Full synthetic oil change\",\n \"selling_price\": 75.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"services"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"labor_name\": \"Oil Change Premium\",\n \"selling_price\": 85.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/services/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"services",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"labor_name\": \"Oil Change Premium\",\n \"selling_price\": 85.00\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/services/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"services",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/import-services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"import-services"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "file",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/import-services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"import-services"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Import completed successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Export",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"search\": \"\",\n \"shop_type_id\": null,\n \"category_id\": null,\n \"department_id\": null\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/export-services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"export-services"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"search\": \"\",\n \"shop_type_id\": null,\n \"category_id\": null,\n \"department_id\": null\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/export-services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"export-services"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Export generated successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Expense Items",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expense-items",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expense-items"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"item_type\": \"Office Supply\",\n \"category_id\": 1,\n \"item_name\": \"Printer Paper\",\n \"sku\": \"EXP-001\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"A4 printer paper\",\n \"selling_price\": 15.00,\n \"purchase_price\": 10.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expense-items",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expense-items"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"item_type\": \"Office Supply\",\n \"category_id\": 1,\n \"item_name\": \"Printer Paper\",\n \"sku\": \"EXP-001\",\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"description\": \"A4 printer paper\",\n \"selling_price\": 15.00,\n \"purchase_price\": 10.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expense-items",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expense-items"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"item_name\": \"Printer Paper A4\",\n \"selling_price\": 18.00\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expense-items/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expense-items",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"item_name\": \"Printer Paper A4\",\n \"selling_price\": 18.00\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expense-items/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expense-items",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Toggle Status",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-expense-item-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-expense-item-status"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-expense-item-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-expense-item-status"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Bills",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/bills",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"bills"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Bill 001\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_date\": \"2026-03-19\",\n \"bill_due_date\": \"2026-04-19\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Monthly bill\",\n \"label_ids\": [1],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 25.00,\n \"chart_of_account\": null,\n \"description\": \"Brake pads\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/bills",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"bills"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Bill 001\",\n \"job_card_id\": 1,\n \"vendor_id\": 1,\n \"vendor_address_id\": 1,\n \"bill_date\": \"2026-03-19\",\n \"bill_due_date\": \"2026-04-19\",\n \"payment_terms_id\": 1,\n \"department_id\": 1,\n \"notes\": \"Monthly bill\",\n \"label_ids\": [1],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 25.00,\n \"chart_of_account\": null,\n \"description\": \"Brake pads\"\n }\n ]\n}"
|
|
},
|
|
"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\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Bill 001 Updated\",\n \"notes\": \"Updated notes\",\n \"label_ids\": [1, 2],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 22.00,\n \"description\": \"Brake pads bulk\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/bills/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"bills",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Bill 001 Updated\",\n \"notes\": \"Updated notes\",\n \"label_ids\": [1, 2],\n \"items\": [\n {\n \"part_id\": 1,\n \"quantity\": 5,\n \"rate\": 22.00,\n \"description\": \"Brake pads bulk\"\n }\n ]\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/bills/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"bills",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Expenses",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expenses",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expenses"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"job_card_id\": 1,\n \"title\": \"Office Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"expense_date\": \"2026-03-19\",\n \"department_id\": 1,\n \"notes\": \"Monthly office expense\",\n \"status\": \"open\",\n \"label_ids\": [1],\n \"items\": [\n {\n \"expense_item_id\": 1,\n \"quantity\": 2,\n \"rate\": 15.00,\n \"chart_of_account\": null,\n \"description\": \"Printer paper\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expenses",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expenses"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"job_card_id\": 1,\n \"title\": \"Office Supplies\",\n \"category_id\": 1,\n \"vendor_id\": 1,\n \"invoice_number\": \"INV-001\",\n \"expense_date\": \"2026-03-19\",\n \"department_id\": 1,\n \"notes\": \"Monthly office expense\",\n \"status\": \"open\",\n \"label_ids\": [1],\n \"items\": [\n {\n \"expense_item_id\": 1,\n \"quantity\": 2,\n \"rate\": 15.00,\n \"chart_of_account\": null,\n \"description\": \"Printer paper\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expenses",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expenses"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Office Supplies Updated\",\n \"status\": \"paid\",\n \"label_ids\": [1, 2],\n \"items\": [\n {\n \"expense_item_id\": 1,\n \"quantity\": 5,\n \"rate\": 12.00,\n \"description\": \"Printer paper bulk\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expenses/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expenses",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Office Supplies Updated\",\n \"status\": \"paid\",\n \"label_ids\": [1, 2],\n \"items\": [\n {\n \"expense_item_id\": 1,\n \"quantity\": 5,\n \"rate\": 12.00,\n \"description\": \"Printer paper bulk\"\n }\n ]\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/expenses/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"expenses",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Maintenance\",\n \"is_default\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-types"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Maintenance\",\n \"is_default\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-types",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-types"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Maintenance Updated\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Maintenance Updated\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-types/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-types",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-task-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-task-type"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-task-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-task-type"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-task-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-task-type"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-task-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-task-type"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Task Sections",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-sections",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-sections"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"To Do\",\n \"arrangement\": 1,\n \"is_default\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-sections",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-sections"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"To Do\",\n \"arrangement\": 1,\n \"is_default\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-sections",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-sections"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"To Do Updated\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-sections/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-sections",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"To Do Updated\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/task-sections/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"task-sections",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-task-section",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-task-section"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-task-section",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-task-section"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-task-section",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-task-section"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-task-section",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-task-section"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Change Arrangement",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1,\n \"arrangement\": 3\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/change-task-section-arrangement",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"change-task-section-arrangement"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1,\n \"arrangement\": 3\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/change-task-section-arrangement",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"change-task-section-arrangement"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Tasks",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/tasks",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"tasks"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"job_card_id\": 1,\n \"subject\": \"Replace brake pads\",\n \"description\": \"Front and rear brake pads need replacement\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": 2,\n \"due_date\": \"2026-03-25\",\n \"task_number\": \"TSK-001\",\n \"status\": \"pending\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/tasks",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"tasks"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"task_type_id\": 1,\n \"task_section_id\": 1,\n \"job_card_id\": 1,\n \"subject\": \"Replace brake pads\",\n \"description\": \"Front and rear brake pads need replacement\",\n \"owner_id\": 1,\n \"department_id\": 1,\n \"priority\": 2,\n \"due_date\": \"2026-03-25\",\n \"task_number\": \"TSK-001\",\n \"status\": \"pending\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/tasks",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"tasks"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Replace brake pads - Updated\",\n \"priority\": 3,\n \"due_date\": \"2026-03-28\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/tasks/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"tasks",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Replace brake pads - Updated\",\n \"priority\": 3,\n \"due_date\": \"2026-03-28\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/tasks/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"tasks",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Complete",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/tasks/{{id}}/complete",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"tasks",
|
|
"{{id}}",
|
|
"complete"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/tasks/{{id}}/complete",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"tasks",
|
|
"{{id}}",
|
|
"complete"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Appointments",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/appointments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"appointments"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Brake Inspection\",\n \"date\": \"2026-03-25\",\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\": 1,\n \"department_id\": 1,\n \"job_card_id\": 1,\n \"notes\": \"Customer requested morning slot\",\n \"label_ids\": [1]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/appointments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"appointments"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Brake Inspection\",\n \"date\": \"2026-03-25\",\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\": 1,\n \"department_id\": 1,\n \"job_card_id\": 1,\n \"notes\": \"Customer requested morning slot\",\n \"label_ids\": [1]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/appointments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"appointments"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Brake Inspection Updated\",\n \"date\": \"2026-03-26\",\n \"from_time\": \"14:00\",\n \"to_time\": \"15:00\",\n \"label_ids\": [1, 2]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/appointments/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"appointments",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Brake Inspection Updated\",\n \"date\": \"2026-03-26\",\n \"from_time\": \"14:00\",\n \"to_time\": \"15:00\",\n \"label_ids\": [1, 2]\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/appointments/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"appointments",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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 Job Card",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/appointments/{{id}}/un-link-job-card",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"appointments",
|
|
"{{id}}",
|
|
"un-link-job-card"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/appointments/{{id}}/un-link-job-card",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"appointments",
|
|
"{{id}}",
|
|
"un-link-job-card"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Invoice Sequences",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-sequences",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-sequences"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV 2026\",\n \"is_default\": true,\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-sequences",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-sequences"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Default Invoice Sequence\",\n \"sequence_title\": \"INV 2026\",\n \"is_default\": true,\n \"auto_generate\": true,\n \"prefix\": \"INV-\",\n \"start_number\": 1,\n \"department_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-sequences",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-sequences"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Updated Sequence\",\n \"prefix\": \"INV-2026-\",\n \"start_number\": 100\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-sequences/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-sequences",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Updated Sequence\",\n \"prefix\": \"INV-2026-\",\n \"start_number\": 100\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-sequences/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-sequences",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-invoice-sequence",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-invoice-sequence"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-invoice-sequence",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-invoice-sequence"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-invoice-sequence",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-invoice-sequence"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-invoice-sequence",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-invoice-sequence"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Removed successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Service Groups",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-groups",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-groups"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_name\": \"Engine Service Group\",\n \"shop_type_id\": 1,\n \"code\": \"SG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"Common engine services\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": true,\n \"set_packaged_pricing\": false,\n \"selling_price\": 100,\n \"selling_chart_of_account\": \"4000\",\n \"is_active\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-groups",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-groups"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_name\": \"Engine Service Group\",\n \"shop_type_id\": 1,\n \"code\": \"SG-001\",\n \"inventory_category_id\": 1,\n \"unit_type_id\": 1,\n \"department_id\": 1,\n \"service_description\": \"Common engine services\",\n \"show_as_lump_sum\": false,\n \"mark_as_recommended\": true,\n \"set_packaged_pricing\": false,\n \"selling_price\": 100,\n \"selling_chart_of_account\": \"4000\",\n \"is_active\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-groups",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-groups"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_name\": \"Engine Service Group Updated\",\n \"selling_price\": 125,\n \"is_active\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-groups/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-groups",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_name\": \"Engine Service Group Updated\",\n \"selling_price\": 125,\n \"is_active\": true\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-groups/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-groups",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Service Group Details",
|
|
"item": [
|
|
{
|
|
"name": "Add Label",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"label_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-groups/{{id}}/add-label",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-groups",
|
|
"{{id}}",
|
|
"add-label"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"label_id\": 1\n}"
|
|
},
|
|
"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\": \"Label added to service group successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Engine Service Group\",\n \"labels\": [\n {\n \"id\": 1,\n \"title\": \"Recommended\",\n \"color_code\": \"#00AAFF\"\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Label",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"label_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-groups/{{id}}/delete-label",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-groups",
|
|
"{{id}}",
|
|
"delete-label"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"label_id\": 1\n}"
|
|
},
|
|
"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\": \"Label removed from service group successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_name\": \"Engine Service Group\",\n \"labels\": []\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Includes List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-includes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-includes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Basic inspection\",\n \"arrangement\": 1,\n \"created_at\": \"2026-03-26T18:40:00.000000Z\",\n \"updated_at\": \"2026-03-26T18:40:00.000000Z\",\n \"service_group\": {\n \"id\": 1,\n \"service_name\": \"Engine Service Group\"\n }\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": "Includes Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_group_id\": 1,\n \"title\": \"Basic inspection\",\n \"arrangement\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-includes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-includes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_group_id\": 1,\n \"title\": \"Basic inspection\",\n \"arrangement\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-includes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-includes"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Service group include created successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"title\": \"Basic inspection\",\n \"arrangement\": 1\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Includes Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Basic inspection updated\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-includes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-includes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Basic inspection updated\"\n}"
|
|
},
|
|
"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\": \"Service group include updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"title\": \"Basic inspection updated\",\n \"arrangement\": 1\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Includes Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-includes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-includes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Service group include deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Includes Change Arrangement",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"arrangement\": 2\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-includes/{{id}}/change-arrangement",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-includes",
|
|
"{{id}}",
|
|
"change-arrangement"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"arrangement\": 2\n}"
|
|
},
|
|
"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\": \"Service group include arrangement updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"title\": \"Basic inspection\",\n \"arrangement\": 2\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Pricings List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-pricings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-pricings"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"hourly\",\n \"labor_rate_id\": 1,\n \"labor_hours\": \"2.00\",\n \"selling_price\": \"120.00\"\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": "Pricings Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 \"fuel_type_id\": 1,\n \"body_type_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 2,\n \"selling_price\": 120\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-pricings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-pricings"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 \"fuel_type_id\": 1,\n \"body_type_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 1,\n \"labor_hours\": 2,\n \"selling_price\": 120\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-pricings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-pricings"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Service group pricing created 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\": \"hourly\",\n \"labor_rate_id\": 1,\n \"labor_hours\": \"2.00\",\n \"selling_price\": \"120.00\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Pricings Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"selling_price\": 150\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-pricings/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-pricings",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"selling_price\": 150\n}"
|
|
},
|
|
"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\": \"Service group pricing updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"selling_price\": \"150.00\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Pricings Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-pricings/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-pricings",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Service group pricing deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Services List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-services"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"hourly\",\n \"labor_rate_id\": 1,\n \"rate\": \"100.00\",\n \"hours\": \"1.50\",\n \"tax_id\": 1,\n \"chart_of_account\": \"4000\",\n \"description\": \"Labor line\"\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": "Services Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 1,\n \"rate\": 100,\n \"hours\": 1.5,\n \"tax_id\": 1,\n \"chart_of_account\": \"4000\",\n \"description\": \"Labor line\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-services"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 1,\n \"rate\": 100,\n \"hours\": 1.5,\n \"tax_id\": 1,\n \"chart_of_account\": \"4000\",\n \"description\": \"Labor line\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-services",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-services"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Service group service created successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"service_id\": 1,\n \"rate_type\": \"hourly\",\n \"labor_rate_id\": 1,\n \"rate\": \"100.00\",\n \"hours\": \"1.50\",\n \"tax_id\": 1,\n \"chart_of_account\": \"4000\",\n \"description\": \"Labor line\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Services Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"rate\": 120,\n \"hours\": 2\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-services/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-services",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"rate\": 120,\n \"hours\": 2\n}"
|
|
},
|
|
"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\": \"Service group service updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"rate\": \"120.00\",\n \"hours\": \"2.00\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Services Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-services/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-services",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Service group service deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Parts List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-parts"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"2.00\",\n \"rate\": \"50.00\",\n \"tax_id\": 1,\n \"chart_of_account\": \"5000\",\n \"description\": \"Parts line\"\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": "Parts Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": 50,\n \"tax_id\": 1,\n \"chart_of_account\": \"5000\",\n \"description\": \"Parts line\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-parts"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": 50,\n \"tax_id\": 1,\n \"chart_of_account\": \"5000\",\n \"description\": \"Parts line\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-parts",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-parts"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Service group part created successfully.\",\n \"data\": {\n \"id\": 1,\n \"service_group_id\": 1,\n \"part_id\": 1,\n \"quantity\": \"2.00\",\n \"rate\": \"50.00\",\n \"tax_id\": 1,\n \"chart_of_account\": \"5000\",\n \"description\": \"Parts line\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Parts Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"quantity\": 3,\n \"rate\": 55\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-parts/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-parts",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"quantity\": 3,\n \"rate\": 55\n}"
|
|
},
|
|
"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\": \"Service group part updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"quantity\": \"3.00\",\n \"rate\": \"55.00\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Parts Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/service-group-parts/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"service-group-parts",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Service group part deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Invoice Labels",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-labels",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-labels"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent Invoice\",\n \"color_code\": \"#FF0000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-labels",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-labels"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent Invoice\",\n \"color_code\": \"#FF0000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-labels",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-labels"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#D60000\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-labels/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-labels",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Urgent\",\n \"color_code\": \"#D60000\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-labels/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-labels",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Invoice 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"invoice_date\": \"2026-03-23\",\n \"due_date\": \"2026-03-30\",\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-0001\",\n \"department_id\": 1,\n \"status\": \"draft\",\n \"inspection_categories\": [\n {\n \"inspection_category_id\": 1,\n \"rate\": 100\n }\n ],\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25\n }\n ],\n \"services\": [\n {\n \"service_id\": 1,\n \"rate\": 50\n }\n ],\n \"expenses\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 10\n }\n ],\n \"service_groups\": [\n {\n \"service_group_id\": 1,\n \"rate\": 120\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Invoice 001\",\n \"customer_id\": 1,\n \"vehicle_id\": 1,\n \"invoice_date\": \"2026-03-23\",\n \"due_date\": \"2026-03-30\",\n \"invoice_sequence_id\": 1,\n \"invoice_number\": \"INV-0001\",\n \"department_id\": 1,\n \"status\": \"draft\",\n \"inspection_categories\": [\n {\n \"inspection_category_id\": 1,\n \"rate\": 100\n }\n ],\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25\n }\n ],\n \"services\": [\n {\n \"service_id\": 1,\n \"rate\": 50\n }\n ],\n \"expenses\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 10\n }\n ],\n \"service_groups\": [\n {\n \"service_group_id\": 1,\n \"rate\": 120\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Invoice 001 Updated\",\n \"status\": \"open\",\n \"notes\": \"Updated note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Invoice 001 Updated\",\n \"status\": \"open\",\n \"notes\": \"Updated note\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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 Attachment",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Attachment",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoices/{{id}}/delete-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoices",
|
|
"{{id}}",
|
|
"delete-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-documents",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-documents"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 \"show_in_estimate\": false,\n \"show_in_statement\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-documents",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-documents"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"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 \"show_in_estimate\": false,\n \"show_in_statement\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-documents",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-documents"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"document_number\": \"DOC-001-UPDATED\",\n \"show_in_statement\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-documents/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-documents",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"document_number\": \"DOC-001-UPDATED\",\n \"show_in_statement\": true\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-documents/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-documents",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-notes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"Call customer before delivery\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-notes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"invoice_id\": 1,\n \"note\": \"Call customer before delivery\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-notes"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"note\": \"Updated internal note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-notes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-notes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"note\": \"Updated internal note\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/invoice-notes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"invoice-notes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Credit Notes",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Credit Note 001\",\n \"customer_id\": 1,\n \"date\": \"2026-03-23\",\n \"status\": \"open\",\n \"labels\": [\n { \"label_id\": 1 }\n ],\n \"inspections\": [\n {\n \"inspection_category_id\": 1,\n \"rate\": 20\n }\n ],\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 10\n }\n ],\n \"services\": [\n {\n \"service_id\": 1,\n \"rate\": 15\n }\n ],\n \"expenses\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 5\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Credit Note 001\",\n \"customer_id\": 1,\n \"date\": \"2026-03-23\",\n \"status\": \"open\",\n \"labels\": [\n { \"label_id\": 1 }\n ],\n \"inspections\": [\n {\n \"inspection_category_id\": 1,\n \"rate\": 20\n }\n ],\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 10\n }\n ],\n \"services\": [\n {\n \"service_id\": 1,\n \"rate\": 15\n }\n ],\n \"expenses\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 5\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Credit Note 001 Updated\",\n \"notes\": \"Adjusted amount\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Credit Note 001 Updated\",\n \"notes\": \"Adjusted amount\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Attachment",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}/delete-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}",
|
|
"delete-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"note\": \"Internal review needed\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}/add-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}",
|
|
"add-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"note\": \"Internal review needed\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}/add-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}",
|
|
"add-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Edit Internal Note",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}/edit-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}",
|
|
"edit-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note\"\n}"
|
|
},
|
|
"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 Internal Note",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/credit-notes/{{id}}/delete-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"credit-notes",
|
|
"{{id}}",
|
|
"delete-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1\n}"
|
|
},
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": null,\n \"payment_for\": \"bill\",\n \"payment_made\": \"100.00\",\n \"payment_number\": \"PM-001\",\n \"payment_reference\": \"REF-001\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Payment against vendor bills\",\n \"excess_amount_will_be_deposited\": null,\n \"amount_paid\": \"100.00\",\n \"amount_used_for_payments\": \"100.00\",\n \"amount_in_excess\": \"0.00\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"vendor\": {\n \"id\": 1,\n \"first_name\": \"Vendor\",\n \"last_name\": \"One\",\n \"company_name\": \"ACME Parts\",\n \"email\": \"vendor1@example.com\"\n },\n \"payment_mode\": {\n \"id\": 1,\n \"title\": \"Cash\"\n },\n \"details\": [\n {\n \"id\": 1,\n \"payment_made_id\": 1,\n \"bill_id\": 10,\n \"expense_id\": null,\n \"amount_paid\": \"60.00\",\n \"bill\": {\n \"id\": 10,\n \"title\": \"Bill #10\",\n \"status\": \"partially_paid\"\n },\n \"expense\": null\n },\n {\n \"id\": 2,\n \"payment_made_id\": 1,\n \"bill_id\": 11,\n \"expense_id\": null,\n \"amount_paid\": \"40.00\",\n \"bill\": {\n \"id\": 11,\n \"title\": \"Bill #11\",\n \"status\": \"paid\"\n },\n \"expense\": null\n }\n ],\n \"attachments\": [\n {\n \"id\": 1,\n \"payment_made_id\": 1,\n \"attachment_path\": \"payment_made_attachments/sample-receipt.pdf\",\n \"original_name\": \"receipt.pdf\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n ]\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create (Bill)",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vendor_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 100,\n \"payment_number\": \"PM-001\",\n \"payment_reference\": \"REF-001\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Payment against bills\",\n \"details\": [\n {\n \"bill_id\": 1,\n \"amount_paid\": 60\n },\n {\n \"bill_id\": 2,\n \"amount_paid\": 40\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"vendor_id\": 1,\n \"payment_for\": \"bill\",\n \"payment_made\": 100,\n \"payment_number\": \"PM-001\",\n \"payment_reference\": \"REF-001\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Payment against bills\",\n \"details\": [\n {\n \"bill_id\": 1,\n \"amount_paid\": 60\n },\n {\n \"bill_id\": 2,\n \"amount_paid\": 40\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Payment made created successfully.\",\n \"data\": {\n \"id\": 1,\n \"vendor_id\": 1,\n \"employee_id\": null,\n \"payment_for\": \"bill\",\n \"payment_made\": \"100.00\",\n \"payment_number\": \"PM-001\",\n \"payment_reference\": \"REF-001\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Payment against bills\",\n \"excess_amount_will_be_deposited\": null,\n \"amount_paid\": \"100.00\",\n \"amount_used_for_payments\": \"100.00\",\n \"amount_in_excess\": \"0.00\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\",\n \"vendor\": {\n \"id\": 1,\n \"first_name\": \"Vendor\",\n \"last_name\": \"One\",\n \"company_name\": \"ACME Parts\",\n \"email\": \"vendor1@example.com\"\n },\n \"payment_mode\": {\n \"id\": 1,\n \"title\": \"Cash\"\n },\n \"details\": [\n {\n \"id\": 1,\n \"payment_made_id\": 1,\n \"bill_id\": 1,\n \"expense_id\": null,\n \"amount_paid\": \"60.00\"\n },\n {\n \"id\": 2,\n \"payment_made_id\": 1,\n \"bill_id\": 2,\n \"expense_id\": null,\n \"amount_paid\": \"40.00\"\n }\n ],\n \"attachments\": []\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create (Expense)",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"payment_for\": \"expense\",\n \"payment_made\": 50,\n \"payment_number\": \"PM-002\",\n \"payment_reference\": \"REF-002\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Office expense reimbursement\",\n \"details\": [\n {\n \"expense_id\": 1,\n \"amount_paid\": 50\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"payment_for\": \"expense\",\n \"payment_made\": 50,\n \"payment_number\": \"PM-002\",\n \"payment_reference\": \"REF-002\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Office expense reimbursement\",\n \"details\": [\n {\n \"expense_id\": 1,\n \"amount_paid\": 50\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Payment made created successfully.\",\n \"data\": {\n \"id\": 2,\n \"vendor_id\": null,\n \"employee_id\": 1,\n \"payment_for\": \"expense\",\n \"payment_made\": \"50.00\",\n \"payment_number\": \"PM-002\",\n \"payment_reference\": \"REF-002\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Office expense reimbursement\",\n \"excess_amount_will_be_deposited\": null,\n \"amount_paid\": \"50.00\",\n \"amount_used_for_payments\": \"50.00\",\n \"amount_in_excess\": \"0.00\",\n \"created_at\": \"2026-03-23T12:05:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:05:00.000000Z\",\n \"vendor\": null,\n \"payment_mode\": {\n \"id\": 1,\n \"title\": \"Cash\"\n },\n \"details\": [\n {\n \"id\": 3,\n \"payment_made_id\": 2,\n \"bill_id\": null,\n \"expense_id\": 1,\n \"amount_paid\": \"50.00\"\n }\n ],\n \"attachments\": []\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"notes\": \"Updated payment made\",\n \"details\": [\n {\n \"bill_id\": 1,\n \"amount_paid\": 75\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"notes\": \"Updated payment made\",\n \"details\": [\n {\n \"bill_id\": 1,\n \"amount_paid\": 75\n }\n ]\n}"
|
|
},
|
|
"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\": \"Payment made updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"vendor_id\": 1,\n \"employee_id\": null,\n \"payment_for\": \"bill\",\n \"payment_made\": \"100.00\",\n \"payment_number\": \"PM-001\",\n \"payment_reference\": \"REF-001\",\n \"payment_date\": \"2026-03-23\",\n \"payment_mode_id\": 1,\n \"paid_through\": 1,\n \"notes\": \"Updated payment made\",\n \"excess_amount_will_be_deposited\": null,\n \"amount_paid\": \"100.00\",\n \"amount_used_for_payments\": \"75.00\",\n \"amount_in_excess\": \"25.00\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:20:00.000000Z\",\n \"vendor\": {\n \"id\": 1,\n \"first_name\": \"Vendor\",\n \"last_name\": \"One\",\n \"company_name\": \"ACME Parts\",\n \"email\": \"vendor1@example.com\"\n },\n \"payment_mode\": {\n \"id\": 1,\n \"title\": \"Cash\"\n },\n \"details\": [\n {\n \"id\": 4,\n \"payment_made_id\": 1,\n \"bill_id\": 1,\n \"expense_id\": null,\n \"amount_paid\": \"75.00\"\n }\n ],\n \"attachments\": [\n {\n \"id\": 1,\n \"payment_made_id\": 1,\n \"attachment_path\": \"payment_made_attachments/sample-receipt.pdf\",\n \"original_name\": \"receipt.pdf\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Payment made attachments added successfully.\",\n \"data\": {\n \"id\": 1,\n \"attachments\": [\n {\n \"id\": 1,\n \"payment_made_id\": 1,\n \"attachment_path\": \"payment_made_attachments/sample-receipt.pdf\",\n \"original_name\": \"receipt.pdf\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n },\n {\n \"id\": 2,\n \"payment_made_id\": 1,\n \"attachment_path\": \"payment_made_attachments/new-proof.jpg\",\n \"original_name\": \"proof.jpg\",\n \"created_at\": \"2026-03-23T12:25:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:25:00.000000Z\"\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Attachment",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/payment-mades/{{id}}/delete-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"payment-mades",
|
|
"{{id}}",
|
|
"delete-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"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\": \"Payment made attachment deleted successfully.\",\n \"data\": {\n \"id\": 1,\n \"attachments\": [\n {\n \"id\": 2,\n \"payment_made_id\": 1,\n \"attachment_path\": \"payment_made_attachments/new-proof.jpg\",\n \"original_name\": \"proof.jpg\",\n \"created_at\": \"2026-03-23T12:25:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:25:00.000000Z\"\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Vendor Credits",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Vendor Credit 001\",\n \"credit_number\": \"VC-001\",\n \"vendor_id\": 1,\n \"vendor_credit_date\": \"2026-03-23\",\n \"department_id\": 1,\n \"labels\": [\n { \"label_id\": 1 }\n ],\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25\n }\n ],\n \"services\": [\n {\n \"service_id\": 1,\n \"quantity\": 1,\n \"rate\": 50\n }\n ],\n \"expenses\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 10\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Vendor Credit 001\",\n \"credit_number\": \"VC-001\",\n \"vendor_id\": 1,\n \"vendor_credit_date\": \"2026-03-23\",\n \"department_id\": 1,\n \"labels\": [\n { \"label_id\": 1 }\n ],\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 1,\n \"rate\": 25\n }\n ],\n \"services\": [\n {\n \"service_id\": 1,\n \"quantity\": 1,\n \"rate\": 50\n }\n ],\n \"expenses\": [\n {\n \"expense_id\": 1,\n \"quantity\": 1,\n \"rate\": 10\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Vendor Credit 001 Updated\",\n \"notes\": \"Updated notes\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"subject\": \"Vendor Credit 001 Updated\",\n \"notes\": \"Updated notes\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Attachment",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}/delete-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}",
|
|
"delete-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"note\": \"Internal note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}/add-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}",
|
|
"add-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"note\": \"Internal note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}/add-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}",
|
|
"add-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Edit Internal Note",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}/edit-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}",
|
|
"edit-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1,\n \"note\": \"Updated internal note\"\n}"
|
|
},
|
|
"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": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/vendor-credits/{{id}}/delete-internal-note",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"vendor-credits",
|
|
"{{id}}",
|
|
"delete-internal-note"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"internal_note_id\": 1\n}"
|
|
},
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"reference_number\": \"IA-001\",\n \"date\": \"2026-03-23\",\n \"chart_of_account\": 1,\n \"reason_id\": 1,\n \"job_card_id\": 1,\n \"invoice_id\": 1,\n \"notes\": \"Stock correction\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": 25,\n \"description\": \"Adjustment line\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"reference_number\": \"IA-001\",\n \"date\": \"2026-03-23\",\n \"chart_of_account\": 1,\n \"reason_id\": 1,\n \"job_card_id\": 1,\n \"invoice_id\": 1,\n \"notes\": \"Stock correction\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 2,\n \"rate\": 25,\n \"description\": \"Adjustment line\"\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"notes\": \"Updated adjustment\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 25\n }\n ]\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"notes\": \"Updated adjustment\",\n \"parts\": [\n {\n \"part_id\": 1,\n \"quantity\": 3,\n \"rate\": 25\n }\n ]\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "attachments[]",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments/{{id}}/add-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments",
|
|
"{{id}}",
|
|
"add-attachment"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete Attachment",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/inventory-adjustments/{{id}}/delete-attachment",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"inventory-adjustments",
|
|
"{{id}}",
|
|
"delete-attachment"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"attachment_id\": 1\n}"
|
|
},
|
|
"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": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheets",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheets"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12: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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-23\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"note\": \"Regular shift\",\n \"activity_type\": \"general\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheets",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheets"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-23\",\n \"clock_in\": \"09:00:00\",\n \"clock_out\": \"17:00:00\",\n \"note\": \"Regular shift\",\n \"activity_type\": \"general\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheets",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheets"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Created successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"clock_out\": \"18:00:00\",\n \"note\": \"Overtime\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheets/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheets",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"clock_out\": \"18:00:00\",\n \"note\": \"Overtime\"\n}"
|
|
},
|
|
"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\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheets/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheets",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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": "Clock In",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-23\",\n \"activity_type\": \"general\",\n \"note\": \"Clock in\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheet/clock-in",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheet",
|
|
"clock-in"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-23\",\n \"activity_type\": \"general\",\n \"note\": \"Clock in\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheet/clock-in",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheet",
|
|
"clock-in"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Clock Out",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-23\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheet/clock-out",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheet",
|
|
"clock-out"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"employee_id\": 1,\n \"date\": \"2026-03-23\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/time-sheet/clock-out",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"time-sheet",
|
|
"clock-out"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Sample Item\",\n \"created_at\": \"2026-03-23T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-23T12:10:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Shop Timings",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-timings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-timings"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Regular Shift\",\n \"in_time\": \"10:00:00\",\n \"out_time\": \"19:00:00\",\n \"full_day_hours\": \"09:00:00\",\n \"half_day_hours\": \"04:30:00\",\n \"punch_in\": \"10:00:00\",\n \"punch_out\": \"19:00:00\",\n \"before_time\": \"01:00:00\",\n \"after_time\": \"01:00:00\",\n \"is_default\": true,\n \"created_at\": \"2026-03-24T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T10:00:00.000000Z\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Regular Shift\",\n \"in_time\": \"10:00:00\",\n \"out_time\": \"19:00:00\",\n \"full_day_hours\": \"09:00:00\",\n \"half_day_hours\": \"04:30:00\",\n \"punch_in\": \"10:00:00\",\n \"punch_out\": \"19:00:00\",\n \"before_time\": \"01:00:00\",\n \"after_time\": \"01:00:00\",\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-timings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-timings"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Regular Shift\",\n \"in_time\": \"10:00:00\",\n \"out_time\": \"19:00:00\",\n \"full_day_hours\": \"09:00:00\",\n \"half_day_hours\": \"04:30:00\",\n \"punch_in\": \"10:00:00\",\n \"punch_out\": \"19:00:00\",\n \"before_time\": \"01:00:00\",\n \"after_time\": \"01:00:00\",\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-timings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-timings"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Shop timing created successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Regular Shift\",\n \"in_time\": \"10:00:00\",\n \"out_time\": \"19:00:00\",\n \"full_day_hours\": \"09:00:00\",\n \"half_day_hours\": \"04:30:00\",\n \"punch_in\": \"10:00:00\",\n \"punch_out\": \"19:00:00\",\n \"before_time\": \"01:00:00\",\n \"after_time\": \"01:00:00\",\n \"is_default\": true,\n \"created_at\": \"2026-03-24T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T10:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Weekend Shift\",\n \"in_time\": \"09:00:00\",\n \"out_time\": \"15:00:00\",\n \"is_default\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-timings/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-timings",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Weekend Shift\",\n \"in_time\": \"09:00:00\",\n \"out_time\": \"15:00:00\",\n \"is_default\": false\n}"
|
|
},
|
|
"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\": \"Shop timing updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Weekend Shift\",\n \"in_time\": \"09:00:00\",\n \"out_time\": \"15:00:00\",\n \"full_day_hours\": \"06:00:00\",\n \"half_day_hours\": \"03:00:00\",\n \"punch_in\": \"09:00:00\",\n \"punch_out\": \"15:00:00\",\n \"before_time\": \"00:30:00\",\n \"after_time\": \"00:30:00\",\n \"is_default\": false,\n \"created_at\": \"2026-03-24T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T10:20:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-timings/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-timings",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Shop timing deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Set Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-shop-timing",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-shop-timing"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Default shop timing updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Regular Shift\",\n \"is_default\": true\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-shop-timing",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-shop-timing"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Default shop timing removed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Regular Shift\",\n \"is_default\": false\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Holiday Years",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holiday-years",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holiday-years"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"data\": [\n {\n \"id\": 1,\n \"year\": 2026,\n \"created_at\": \"2026-03-24T11:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T11:00:00.000000Z\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"year\": 2026\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holiday-years",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holiday-years"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"year\": 2026\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holiday-years",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holiday-years"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Holiday year created successfully.\",\n \"data\": {\n \"id\": 1,\n \"year\": 2026,\n \"created_at\": \"2026-03-24T11:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T11:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Shop Calenders",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-calenders",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-calenders"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": \"Default Calendar\",\n \"is_default\": true,\n \"created_at\": \"2026-03-24T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T10:00:00.000000Z\",\n \"shop_calender_days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"day_number\": 1,\n \"type\": \"full_day\",\n \"created_at\": \"2026-03-24T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T10:00:00.000000Z\"\n }\n ]\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": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Default Calendar\",\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-calenders",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-calenders"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"Default Calendar\",\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-calenders",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-calenders"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Shop calender created successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Calendar\",\n \"is_default\": true,\n \"created_at\": \"2026-03-24T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T10:00:00.000000Z\",\n \"shop_calender_days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"day_number\": 1,\n \"type\": \"full_day\"\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-calenders/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-calenders",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Shop calender deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Set Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-shop-calender",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-shop-calender"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Default shop calender updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Calendar\",\n \"is_default\": true\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-shop-calender",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-shop-calender"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Default shop calender removed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Calendar\",\n \"is_default\": false\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update Day Type",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"day_number\": 1,\n \"type\": \"week_off\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/shop-calenders/{{id}}/update-day-type",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"shop-calenders",
|
|
"{{id}}",
|
|
"update-day-type"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"day_number\": 1,\n \"type\": \"week_off\"\n}"
|
|
},
|
|
"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\": \"Shop calender day type updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"Default Calendar\",\n \"is_default\": true,\n \"shop_calender_days\": [\n {\n \"id\": 1,\n \"shop_calender_id\": 1,\n \"day_number\": 1,\n \"type\": \"week_off\"\n }\n ]\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Holidays",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holidays?holiday_year_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holidays"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "holiday_year_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holidays?holiday_year_id=1",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holidays"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "holiday_year_id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"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-02\",\n \"name\": \"National Day\",\n \"created_at\": \"2026-03-24T11:10:00.000000Z\",\n \"updated_at\": \"2026-03-24T11:10:00.000000Z\",\n \"holiday_year\": {\n \"id\": 1,\n \"year\": 2026,\n \"created_at\": \"2026-03-24T11:00:00.000000Z\",\n \"updated_at\": \"2026-03-24T11:00:00.000000Z\"\n }\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-02\",\n \"name\": \"National Day\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holidays",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holidays"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-02\",\n \"name\": \"National Day\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holidays",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holidays"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Holiday created successfully.\",\n \"data\": {\n \"id\": 1,\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-02\",\n \"name\": \"National Day\",\n \"created_at\": \"2026-03-24T11:10:00.000000Z\",\n \"updated_at\": \"2026-03-24T11:10:00.000000Z\",\n \"holiday_year\": {\n \"id\": 1,\n \"year\": 2026\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"National Day Holiday\"\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holidays/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holidays",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"name\": \"National Day Holiday\"\n}"
|
|
},
|
|
"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\": \"Holiday updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"holiday_year_id\": 1,\n \"date\": \"2026-12-02\",\n \"name\": \"National Day Holiday\",\n \"created_at\": \"2026-03-24T11:10:00.000000Z\",\n \"updated_at\": \"2026-03-24T11:20:00.000000Z\",\n \"holiday_year\": {\n \"id\": 1,\n \"year\": 2026\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/holidays/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"holidays",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Holiday deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Settings",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/settings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"settings"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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 \"id\": 1,\n \"name\": \"Reparee\",\n \"email\": \"support@reparee.com\",\n \"phone\": \"1234567890\",\n \"alternative_phone\": \"0987654321\",\n \"website\": \"https://reparee.com\",\n \"time_zone\": \"Asia/Kolkata\",\n \"upi_id\": \"reparee@upi\",\n \"first_day_of_work\": \"monday\",\n \"latitude\": \"23.0225\",\n \"longitude\": \"72.5714\",\n \"bank_details\": \"Bank: Example Bank, A/C: 1234567890, IFSC: EXMP0001234\",\n \"first_address_line\": \"123 Business Park\",\n \"second_address_line\": \"Near Central Plaza\",\n \"country_id\": \"101\",\n \"state_id\": \"12\",\n \"city\": \"Ahmedabad\",\n \"zip_code\": \"380001\",\n \"logo\": \"settings/logo.png\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "name",
|
|
"value": "Reparee",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "email",
|
|
"value": "support@reparee.com",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "phone",
|
|
"value": "1234567890",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "first_day_of_work",
|
|
"value": "monday",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "logo",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/settings",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"settings"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "formdata",
|
|
"formdata": [
|
|
{
|
|
"key": "name",
|
|
"value": "Reparee",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "email",
|
|
"value": "support@reparee.com",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "phone",
|
|
"value": "1234567890",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "first_day_of_work",
|
|
"value": "monday",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"key": "logo",
|
|
"type": "file",
|
|
"value": ""
|
|
}
|
|
]
|
|
},
|
|
"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\": \"Settings updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"name\": \"Reparee\",\n \"email\": \"support@reparee.com\",\n \"phone\": \"1234567890\",\n \"alternative_phone\": \"0987654321\",\n \"website\": \"https://reparee.com\",\n \"time_zone\": \"Asia/Kolkata\",\n \"upi_id\": \"reparee@upi\",\n \"first_day_of_work\": \"monday\",\n \"latitude\": \"23.0225\",\n \"longitude\": \"72.5714\",\n \"bank_details\": \"Bank: Example Bank, A/C: 1234567890, IFSC: EXMP0001234\",\n \"first_address_line\": \"123 Business Park\",\n \"second_address_line\": \"Near Central Plaza\",\n \"country_id\": \"101\",\n \"state_id\": \"12\",\n \"city\": \"Ahmedabad\",\n \"zip_code\": \"380001\",\n \"logo\": \"settings/logo.png\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Taxes",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/taxes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"taxes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\",\n \"note\": \"Standard rate\",\n \"rate\": \"18.00\",\n \"is_default\": true,\n \"created_at\": \"2026-03-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T10:00:00.000000Z\"\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"VAT\",\n \"note\": \"Standard rate\",\n \"rate\": 18,\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/taxes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"taxes"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"VAT\",\n \"note\": \"Standard rate\",\n \"rate\": 18,\n \"is_default\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/taxes",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"taxes"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Tax created successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT\",\n \"note\": \"Standard rate\",\n \"rate\": \"18.00\",\n \"is_default\": true,\n \"created_at\": \"2026-03-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T10:00:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"VAT (updated)\",\n \"note\": \"Revised rate\",\n \"rate\": 20,\n \"is_default\": false\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/taxes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"taxes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"title\": \"VAT (updated)\",\n \"note\": \"Revised rate\",\n \"rate\": 20,\n \"is_default\": false\n}"
|
|
},
|
|
"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\": \"Tax updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT (updated)\",\n \"note\": \"Revised rate\",\n \"rate\": \"20.00\",\n \"is_default\": false,\n \"created_at\": \"2026-03-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T10:15:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/taxes/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"taxes",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Tax deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Set Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/set-default-tax",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"set-default-tax"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Default tax updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT\",\n \"note\": \"Standard rate\",\n \"rate\": \"18.00\",\n \"is_default\": true,\n \"created_at\": \"2026-03-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T10:20:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Remove Default",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/remove-default-tax",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"remove-default-tax"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Default tax removed successfully.\",\n \"data\": {\n \"id\": 1,\n \"title\": \"VAT\",\n \"note\": \"Standard rate\",\n \"rate\": \"18.00\",\n \"is_default\": false,\n \"created_at\": \"2026-03-25T10:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T10:25:00.000000Z\"\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Make and Models",
|
|
"item": [
|
|
{
|
|
"name": "List",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/make-and-models",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"make-and-models"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"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\": 2024,\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 \"is_default\": false,\n \"created_at\": \"2026-03-25T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"body_type\": {\n \"id\": 1,\n \"title\": \"Sedan\"\n },\n \"fuel\": {\n \"id\": 1,\n \"title\": \"Petrol\"\n },\n \"transmission\": {\n \"id\": 1,\n \"title\": \"Automatic\"\n }\n }\n ]\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Create",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": 2024,\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}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/make-and-models",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"make-and-models"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": 2024,\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}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/make-and-models",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"make-and-models"
|
|
]
|
|
}
|
|
},
|
|
"status": "Created",
|
|
"code": 201,
|
|
"_postman_previewlanguage": "json",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"cookie": [],
|
|
"body": "{\n \"message\": \"Make and model created successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": 2024,\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 \"is_default\": false,\n \"created_at\": \"2026-03-25T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T12:00:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"body_type\": {\n \"id\": 1,\n \"title\": \"Sedan\"\n },\n \"fuel\": {\n \"id\": 1,\n \"title\": \"Petrol\"\n },\n \"transmission\": {\n \"id\": 1,\n \"title\": \"Automatic\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Update",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"make\": \"Toyota\",\n \"model\": \"Camry Hybrid\",\n \"year\": 2025,\n \"is_active\": true\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/make-and-models/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"make-and-models",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "PUT",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"make\": \"Toyota\",\n \"model\": \"Camry Hybrid\",\n \"year\": 2025,\n \"is_active\": true\n}"
|
|
},
|
|
"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\": \"Make and model updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry Hybrid\",\n \"year\": 2025,\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 \"is_default\": false,\n \"created_at\": \"2026-03-25T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T12:30:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"body_type\": {\n \"id\": 1,\n \"title\": \"Sedan\"\n },\n \"fuel\": {\n \"id\": 1,\n \"title\": \"Petrol\"\n },\n \"transmission\": {\n \"id\": 1,\n \"title\": \"Automatic\"\n }\n }\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Delete",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "{{base_url}}/api/make-and-models/{{id}}",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"make-and-models",
|
|
"{{id}}"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"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\": \"Make and model deleted successfully.\"\n}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Toggle Status",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"url": {
|
|
"raw": "{{base_url}}/api/toggle-make-and-model-status",
|
|
"host": [
|
|
"{{base_url}}"
|
|
],
|
|
"path": [
|
|
"api",
|
|
"toggle-make-and-model-status"
|
|
]
|
|
}
|
|
},
|
|
"response": [
|
|
{
|
|
"name": "Success Example",
|
|
"originalRequest": {
|
|
"method": "POST",
|
|
"header": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\n \"id\": 1\n}"
|
|
},
|
|
"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\": \"Make and model status updated successfully.\",\n \"data\": {\n \"id\": 1,\n \"shop_type_id\": 1,\n \"make\": \"Toyota\",\n \"model\": \"Camry\",\n \"year\": 2024,\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\": false,\n \"is_default\": false,\n \"created_at\": \"2026-03-25T12:00:00.000000Z\",\n \"updated_at\": \"2026-03-25T12:45:00.000000Z\",\n \"shop_type\": {\n \"id\": 1,\n \"title\": \"Main Workshop\"\n },\n \"body_type\": {\n \"id\": 1,\n \"title\": \"Sedan\"\n },\n \"fuel\": {\n \"id\": 1,\n \"title\": \"Petrol\"\n },\n \"transmission\": {\n \"id\": 1,\n \"title\": \"Automatic\"\n }\n }\n}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"auth": {
|
|
"type": "bearer",
|
|
"bearer": [
|
|
{
|
|
"key": "token",
|
|
"value": "{{auth_token}}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"variable": [
|
|
{
|
|
"key": "base_url",
|
|
"value": "http://localhost:8000"
|
|
},
|
|
{
|
|
"key": "auth_token",
|
|
"value": "YOUR_SANCTUM_TOKEN"
|
|
},
|
|
{
|
|
"key": "id",
|
|
"value": "1"
|
|
}
|
|
]
|
|
} |