REST API Reference

Welcome to the DigitCare ERP API documentation. The API serves endpoints for accounting, inventory, manufacturing, and user management. All authenticated endpoints require a Bearer token via Sanctum. Set the header Authorization: Bearer {token} in your requests.

354
Total Endpoints
33
Modules
v1
API Version
πŸ’°

Accounting

12 endpoints
GET api/accounting/accounts/{id}/ledger
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
GET api/accounting/blueprints
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/accounting/payment-accounts
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/accounting/payment-accounts
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
code required|string
type required|string
nature required|string (asset|liability|equity|income|expense)
description nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
GET api/accounting/payment-accounts/manage
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
DELETE api/accounting/payment-accounts/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/accounting/payment-accounts/{id}/toggle
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
code required|string
type required|string
nature required|string (asset|liability|equity|income|expense)
description nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
POST api/accounting/preview-ledger
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/accounting/reports/account-transactions
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/accounting/reports/bank-balance
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/accounting/reports/chart-of-accounts
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/accounting/transactions
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
πŸ“Š

Accounts

5 endpoints
GET api/accounts
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/accounts
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
code required|string
type required|string
nature required|string (asset|liability|equity|income|expense)
description nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
GET api/accounts/{account}
πŸ”’ Auth
Path Parameters
Field Type / Rules
account integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
PATCH api/accounts/{account}
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
code required|string
type required|string
nature required|string (asset|liability|equity|income|expense)
description nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
DELETE api/accounts/{account}
πŸ”’ Auth
Path Parameters
Field Type / Rules
account integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
πŸ”Ή

Activity Log

3 endpoints
GET api/activity-log
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/activity-log/stats
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/activity-log/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ“

Addresses

3 endpoints
PUT api/addresses/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
DELETE api/addresses/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/addresses/{id}/set-default
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
🏷️

Attributes

7 endpoints
GET api/attributes
πŸ”’ Auth products.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/attributes
πŸ”’ Auth products.attributes.manage
Request Body
Field Type / Rules
name required|string
values required|array (strings)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/attributes/{id}
πŸ”’ Auth products.attributes.manage
Request Body
Field Type / Rules
name required|string
values required|array (strings)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
DELETE api/attributes/{id}
πŸ”’ Auth products.attributes.manage
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/attributes/{id}/values
πŸ”’ Auth products.attributes.manage
Request Body
Field Type / Rules
name required|string
values required|array (strings)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
POST api/attributes/{id}/values/reorder
πŸ”’ Auth products.attributes.manage
Request Body
Field Type / Rules
name required|string
values required|array (strings)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
DELETE api/attributes/{id}/values/{valueId}
πŸ”’ Auth products.attributes.manage
Path Parameters
Field Type / Rules
id integer|string
valueId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
πŸ”

Auth

12 endpoints
POST api/auth/forgot-password
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/auth/google/callback
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/auth/google/redirect
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/auth/login
🌐 Public
Request Body
Field Type / Rules
email required|string
password required|string
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "token": "1|abcdef123456...", "user": { "id": 1, "name": "John Doe", "email": "admin@example.com", "role": "super-admin", "permissions": [ "users.view", "products.view" ] } } }
POST api/auth/logout
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/auth/me
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "John Doe", "email": "admin@example.com", "role": "super-admin", "permissions": [ "all" ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
PUT api/auth/password
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/auth/profile
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
POST api/auth/reset-password
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/auth/sessions
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
DELETE api/auth/sessions
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
DELETE api/auth/sessions/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
🏒

Branches

7 endpoints
GET api/branches
πŸ”’ Auth branch.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Main Branch", "email": "branch@example.com", "phone": "01700000000", "address": "Dhaka, Bangladesh", "is_active": true } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/branches
πŸ”’ Auth branch.create
Request Body
Field Type / Rules
name required|string
email nullable|email
phone nullable|string
address nullable|string
is_active boolean
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Main Branch", "email": "branch@example.com", "phone": "01700000000", "address": "Dhaka, Bangladesh", "is_active": true } }
GET api/branches/selected
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Main Branch", "email": "branch@example.com", "phone": "01700000000", "address": "Dhaka, Bangladesh", "is_active": true } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/branches/selected
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
email nullable|email
phone nullable|string
address nullable|string
is_active boolean
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Main Branch", "email": "branch@example.com", "phone": "01700000000", "address": "Dhaka, Bangladesh", "is_active": true } }
GET api/branches/{id}
πŸ”’ Auth branch.view
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Main Branch", "email": "branch@example.com", "phone": "01700000000", "address": "Dhaka, Bangladesh", "is_active": true } }
PUT api/branches/{id}
πŸ”’ Auth branch.edit
Request Body
Field Type / Rules
name required|string
email nullable|email
phone nullable|string
address nullable|string
is_active boolean
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Main Branch", "email": "branch@example.com", "phone": "01700000000", "address": "Dhaka, Bangladesh", "is_active": true } }
DELETE api/branches/{id}
πŸ”’ Auth branch.delete
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
πŸ“‚

Categories

8 endpoints
GET api/categories
πŸ”’ Auth products.categories.manage
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Electronics", "parent_id": null, "children": [], "is_active": true } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/categories
πŸ”’ Auth products.categories.manage
Request Body
Field Type / Rules
name required|string
parent_id nullable|integer
description nullable|string
is_active boolean
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Electronics", "parent_id": null, "children": [], "is_active": true } }
POST api/categories/reorder
πŸ”’ Auth products.categories.manage
Request Body
Field Type / Rules
name required|string
parent_id nullable|integer
description nullable|string
is_active boolean
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Electronics", "parent_id": null, "children": [], "is_active": true } }
GET api/categories/tree
πŸ”’ Auth products.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Electronics", "parent_id": null, "children": [], "is_active": true } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/categories/{id}
πŸ”’ Auth products.view
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Electronics", "parent_id": null, "children": [], "is_active": true } }
PUT api/categories/{id}
πŸ”’ Auth products.categories.manage
Request Body
Field Type / Rules
name required|string
parent_id nullable|integer
description nullable|string
is_active boolean
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Electronics", "parent_id": null, "children": [], "is_active": true } }
DELETE api/categories/{id}
πŸ”’ Auth products.categories.manage
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PUT api/categories/{id}/toggle-active
πŸ”’ Auth products.edit
Request Body
Field Type / Rules
name required|string
parent_id nullable|integer
description nullable|string
is_active boolean
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Electronics", "parent_id": null, "children": [], "is_active": true } }
🏒

Central

3 endpoints
POST api/central/login
πŸ”’ Auth
Request Body
Field Type / Rules
email required|string
password required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "token": "1|abcdef123456...", "user": { "id": 1, "name": "John Doe", "email": "admin@example.com", "role": "super-admin", "permissions": [ "users.view", "products.view" ] } } }
POST api/central/tenants/create
πŸ”’ Auth
Request Body
Field Type / Rules
id required|string
domain required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "output": "..." } }
POST api/central/tenants/seed
πŸ”’ Auth
Request Body
Field Type / Rules
id required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "output": "..." } }
πŸ”Ή

Customer Portal

13 endpoints
GET api/customer-portal/dashboard
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/customer-portal/invoices
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/customer-portal/invoices/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
GET api/customer-portal/invoices/{id}/download
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
GET api/customer-portal/ledger
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/customer-portal/payments
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/customer-portal/payments/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/customer-portal/profile
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
PUT api/customer-portal/profile
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/customer-portal/profile/password
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/customer-portal/vouchers
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/customer-portal/vouchers/{type}/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
type integer|string
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/customer-portal/vouchers/{type}/{id}/download
πŸ”’ Auth
Path Parameters
Field Type / Rules
type integer|string
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
πŸ”Ή

Dashboard

7 endpoints
GET api/dashboard/activities
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/dashboard/charts
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/dashboard/financial
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/dashboard/inventory
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/dashboard/manufacturing
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/dashboard/peoples
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/dashboard/top-products
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
πŸ”Ή

Email Templates

5 endpoints
GET api/email-templates
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/email-templates
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/email-templates/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/email-templates/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
DELETE api/email-templates/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
πŸ—ΊοΈ

Geocode

3 endpoints
GET api/geocode/districts
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/geocode/divisions
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/geocode/upazilas
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
πŸ”Ή

Import Export

3 endpoints
GET api/import-export/{module}/export
πŸ”’ Auth
Path Parameters
Field Type / Rules
module integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
POST api/import-export/{module}/import
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/import-export/{module}/template
πŸ”’ Auth
Path Parameters
Field Type / Rules
module integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ”Ή

Inventory

8 endpoints
GET api/inventory/accounts
πŸ”’ Auth stock_accounts.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/inventory/accounts
πŸ”’ Auth stock_accounts.create
Request Body
Field Type / Rules
name required|string
code required|string
type required|string
nature required|string (asset|liability|equity|income|expense)
description nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
PUT api/inventory/accounts/{id}
πŸ”’ Auth stock_accounts.edit
Request Body
Field Type / Rules
name required|string
code required|string
type required|string
nature required|string (asset|liability|equity|income|expense)
description nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Cash Account", "code": "1001", "type": "asset", "nature": "asset", "balance": 50000 } }
DELETE api/inventory/accounts/{id}
πŸ”’ Auth stock_accounts.delete
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/inventory/levels
πŸ”’ Auth stock.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/inventory/reports/transactions
πŸ”’ Auth stock.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/inventory/transactions
πŸ”’ Auth stock_transactions.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/inventory/valuation
πŸ”’ Auth stock.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
🧾

Invoices

10 endpoints
GET api/invoices
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/invoices
πŸ”’ Auth
Request Body
Field Type / Rules
customer_id required|integer
branch_id required|integer
invoice_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.price required|number
discount nullable|number
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
GET api/invoices/next-number
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/invoices/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/invoices/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
PUT api/invoices/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
customer_id required|integer
branch_id required|integer
invoice_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.price required|number
discount nullable|number
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
DELETE api/invoices/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/invoices/{id}/download
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
PATCH api/invoices/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
customer_id required|integer
branch_id required|integer
invoice_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.price required|number
discount nullable|number
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
PATCH api/invoices/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
customer_id required|integer
branch_id required|integer
invoice_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.price required|number
discount nullable|number
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
🏭

Manufacturing

52 endpoints
GET api/manufacturing/boms
πŸ”’ Auth manufacturing.bom.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/manufacturing/boms
πŸ”’ Auth manufacturing.bom.create
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/boms/{bom}
πŸ”’ Auth manufacturing.bom.view
Path Parameters
Field Type / Rules
bom integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
PUT api/manufacturing/boms/{bom}
πŸ”’ Auth manufacturing.bom.edit
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
DELETE api/manufacturing/boms/{bom}
πŸ”’ Auth manufacturing.bom.delete
Path Parameters
Field Type / Rules
bom integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/manufacturing/boms/{bom}/lock
πŸ”’ Auth manufacturing.bom.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
POST api/manufacturing/boms/{bom}/unlock
πŸ”’ Auth manufacturing.bom.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/finished-goods-stock-entries
πŸ”’ Auth manufacturing.fg_stock_entries.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/manufacturing/finished-goods-stock-entries
πŸ”’ Auth manufacturing.fg_stock_entries.create
Request Body
Field Type / Rules
from_branch_id required|integer
to_branch_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/finished-goods-stock-entries/{finished_goods_stock_entry}
πŸ”’ Auth manufacturing.fg_stock_entries.view
Path Parameters
Field Type / Rules
finished_goods_stock_entry integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
PUT api/manufacturing/finished-goods-stock-entries/{finished_goods_stock_entry}
πŸ”’ Auth manufacturing.fg_stock_entries.edit
Request Body
Field Type / Rules
from_branch_id required|integer
to_branch_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
DELETE api/manufacturing/finished-goods-stock-entries/{finished_goods_stock_entry}
πŸ”’ Auth manufacturing.fg_stock_entries.delete
Path Parameters
Field Type / Rules
finished_goods_stock_entry integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/manufacturing/finished-goods-stock-entries/{finished_goods_stock_entry}/toggle-lock
πŸ”’ Auth manufacturing.fg_stock_entries.lock_unlock
Request Body
Field Type / Rules
from_branch_id required|integer
to_branch_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/material-issues
πŸ”’ Auth manufacturing.material_issues.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/manufacturing/material-issues
πŸ”’ Auth manufacturing.material_issues.create
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/material-issues/bom-requirements/{productionOrderId}
πŸ”’ Auth manufacturing.material_issues.create
Path Parameters
Field Type / Rules
productionOrderId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/material-issues/{material_issue}
πŸ”’ Auth manufacturing.material_issues.view
Path Parameters
Field Type / Rules
material_issue integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
PUT api/manufacturing/material-issues/{material_issue}
πŸ”’ Auth manufacturing.material_issues.edit
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
DELETE api/manufacturing/material-issues/{material_issue}
πŸ”’ Auth manufacturing.material_issues.delete
Path Parameters
Field Type / Rules
material_issue integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/manufacturing/material-issues/{material_issue}/lock
πŸ”’ Auth manufacturing.material_issues.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
POST api/manufacturing/material-issues/{material_issue}/unlock
πŸ”’ Auth manufacturing.material_issues.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/process-stages
πŸ”’ Auth manufacturing.wip_entries.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
DELETE api/manufacturing/process-stages
πŸ”’ Auth manufacturing.wip_entries.delete
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/manufacturing/production-completion-reports
πŸ”’ Auth manufacturing.production_completion_reports.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/manufacturing/production-completion-reports
πŸ”’ Auth manufacturing.production_completion_reports.create
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/production-completion-reports/{production_completion_report}
πŸ”’ Auth manufacturing.production_completion_reports.view
Path Parameters
Field Type / Rules
production_completion_report integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
PUT api/manufacturing/production-completion-reports/{production_completion_report}
πŸ”’ Auth manufacturing.production_completion_reports.edit
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
DELETE api/manufacturing/production-completion-reports/{production_completion_report}
πŸ”’ Auth manufacturing.production_completion_reports.delete
Path Parameters
Field Type / Rules
production_completion_report integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/manufacturing/production-completion-reports/{production_completion_report}/toggle-lock
πŸ”’ Auth manufacturing.production_completion_reports.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/production-lines
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
DELETE api/manufacturing/production-lines
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/manufacturing/production-orders
πŸ”’ Auth manufacturing.production_orders.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/manufacturing/production-orders
πŸ”’ Auth manufacturing.production_orders.create
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/production-orders/{production_order}
πŸ”’ Auth manufacturing.production_orders.view
Path Parameters
Field Type / Rules
production_order integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
PUT api/manufacturing/production-orders/{production_order}
πŸ”’ Auth manufacturing.production_orders.edit
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
DELETE api/manufacturing/production-orders/{production_order}
πŸ”’ Auth manufacturing.production_orders.delete
Path Parameters
Field Type / Rules
production_order integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/manufacturing/production-orders/{production_order}/lock
πŸ”’ Auth manufacturing.production_orders.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/production-orders/{production_order}/raw-material-cost
πŸ”’ Auth manufacturing.production_orders.view
Path Parameters
Field Type / Rules
production_order integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
POST api/manufacturing/production-orders/{production_order}/unlock
πŸ”’ Auth manufacturing.production_orders.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/waste-scrap-entries
πŸ”’ Auth manufacturing.waste_scrap_entries.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/manufacturing/waste-scrap-entries
πŸ”’ Auth manufacturing.waste_scrap_entries.create
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/waste-scrap-entries/{waste_scrap_entry}
πŸ”’ Auth manufacturing.waste_scrap_entries.view
Path Parameters
Field Type / Rules
waste_scrap_entry integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
PUT api/manufacturing/waste-scrap-entries/{waste_scrap_entry}
πŸ”’ Auth manufacturing.waste_scrap_entries.edit
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
DELETE api/manufacturing/waste-scrap-entries/{waste_scrap_entry}
πŸ”’ Auth manufacturing.waste_scrap_entries.delete
Path Parameters
Field Type / Rules
waste_scrap_entry integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/manufacturing/waste-scrap-entries/{waste_scrap_entry}/toggle-lock
πŸ”’ Auth manufacturing.waste_scrap_entries.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/wip-entries
πŸ”’ Auth manufacturing.wip_entries.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/manufacturing/wip-entries
πŸ”’ Auth manufacturing.wip_entries.create
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
GET api/manufacturing/wip-entries/stages
πŸ”’ Auth manufacturing.wip_entries.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/manufacturing/wip-entries/{wip_entry}
πŸ”’ Auth manufacturing.wip_entries.view
Path Parameters
Field Type / Rules
wip_entry integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
PUT api/manufacturing/wip-entries/{wip_entry}
πŸ”’ Auth manufacturing.wip_entries.edit
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
DELETE api/manufacturing/wip-entries/{wip_entry}
πŸ”’ Auth manufacturing.wip_entries.delete
Path Parameters
Field Type / Rules
wip_entry integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/manufacturing/wip-entries/{wip_entry}/toggle-lock
πŸ”’ Auth manufacturing.wip_entries.lock_unlock
Request Body
Field Type / Rules
name required|string
product_id required|integer
quantity required|number
branch_id required|integer
materials required|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Production Order #1", "quantity": 100, "status": "in_progress", "branch_id": 1 } }
πŸ“·

Media

6 endpoints
GET api/media
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "filename": "photo.webp", "urls": { "large": "\/storage\/media\/large\/photo.webp", "medium": "\/storage\/media\/medium\/photo.webp", "small": "\/storage\/media\/small\/photo.webp" } } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/media
πŸ”’ Auth
Request Body
Field Type / Rules
file required|file (image)
alt nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "filename": "photo.webp", "urls": { "large": "\/storage\/media\/large\/photo.webp", "medium": "\/storage\/media\/medium\/photo.webp", "small": "\/storage\/media\/small\/photo.webp" } } }
GET api/media/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "filename": "photo.webp", "urls": { "large": "\/storage\/media\/large\/photo.webp", "medium": "\/storage\/media\/medium\/photo.webp", "small": "\/storage\/media\/small\/photo.webp" } } }
PUT api/media/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
file required|file (image)
alt nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "filename": "photo.webp", "urls": { "large": "\/storage\/media\/large\/photo.webp", "medium": "\/storage\/media\/medium\/photo.webp", "small": "\/storage\/media\/small\/photo.webp" } } }
DELETE api/media/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/media/{id}/restore
πŸ”’ Auth
Request Body
Field Type / Rules
file required|file (image)
alt nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "filename": "photo.webp", "urls": { "large": "\/storage\/media\/large\/photo.webp", "medium": "\/storage\/media\/medium\/photo.webp", "small": "\/storage\/media\/small\/photo.webp" } } }
πŸ‘₯

Peoples

16 endpoints
GET api/peoples
πŸ”’ Auth users.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/peoples
πŸ”’ Auth users.create
Request Body
Field Type / Rules
name required|string
email required|email
password nullable|string
phone nullable|string
type required|string (customer|supplier|employee|staff)
roles nullable|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
POST api/peoples/password-reset
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
email required|email
password nullable|string
phone nullable|string
type required|string (customer|supplier|employee|staff)
roles nullable|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
GET api/peoples/password-reset/verify/{token}
πŸ”’ Auth
Path Parameters
Field Type / Rules
token integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
POST api/peoples/share-link/set-password/{token}
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
email required|email
password nullable|string
phone nullable|string
type required|string (customer|supplier|employee|staff)
roles nullable|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
GET api/peoples/share-link/verify/{token}
πŸ”’ Auth
Path Parameters
Field Type / Rules
token integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
GET api/peoples/{id}
πŸ”’ Auth users.view
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
POST api/peoples/{id}
πŸ”’ Auth users.edit
Request Body
Field Type / Rules
name required|string
email required|email
password nullable|string
phone nullable|string
type required|string (customer|supplier|employee|staff)
roles nullable|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
DELETE api/peoples/{id}
πŸ”’ Auth users.delete
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/peoples/{id}/password-reset-link
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
GET api/peoples/{id}/sessions
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
DELETE api/peoples/{id}/sessions
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
DELETE api/peoples/{id}/sessions/{sessionId}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
sessionId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/peoples/{id}/share-link
πŸ”’ Auth users.view
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
GET api/peoples/{userId}/addresses
πŸ”’ Auth
Path Parameters
Field Type / Rules
userId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
POST api/peoples/{userId}/addresses
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
email required|email
password nullable|string
phone nullable|string
type required|string (customer|supplier|employee|staff)
roles nullable|array
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "John Doe", "email": "john@example.com", "phone": "+880...", "type": "customer", "roles": [ { "id": 1, "name": "Customer" } ], "created_at": "2026-01-01" } }
πŸ›‘οΈ

Permission

6 endpoints
GET api/permission/roles
πŸ”’ Auth roles.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Manager", "slug": "manager", "permissions": [ "users.view", "products.view" ], "users_count": 5 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/permission/roles
πŸ”’ Auth roles.create
Request Body
Field Type / Rules
name required|string
description nullable|string
permissions required|array (permission slugs)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Manager", "slug": "manager", "permissions": [ "users.view", "products.view" ], "users_count": 5 } }
GET api/permission/roles/permissions
πŸ”’ Auth roles.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Manager", "slug": "manager", "permissions": [ "users.view", "products.view" ], "users_count": 5 } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/permission/roles/{role}
πŸ”’ Auth roles.view
Path Parameters
Field Type / Rules
role integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Manager", "slug": "manager", "permissions": [ "users.view", "products.view" ], "users_count": 5 } }
PUT api/permission/roles/{role}
πŸ”’ Auth roles.edit
Request Body
Field Type / Rules
name required|string
description nullable|string
permissions required|array (permission slugs)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Manager", "slug": "manager", "permissions": [ "users.view", "products.view" ], "users_count": 5 } }
DELETE api/permission/roles/{role}
πŸ”’ Auth roles.delete
Path Parameters
Field Type / Rules
role integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
πŸ“¦

Products

13 endpoints
GET api/products
πŸ”’ Auth products.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/products
πŸ”’ Auth products.create
Request Body
Field Type / Rules
name required|string
type required|string (simple|variable|grouped|affiliate)
category_ids nullable|array
description nullable|string
status required|string (active|inactive)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
GET api/products/units
πŸ”’ Auth products.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
DELETE api/products/units
πŸ”’ Auth products.delete
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/products/{id}
πŸ”’ Auth products.view
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
PUT api/products/{id}
πŸ”’ Auth products.update
Request Body
Field Type / Rules
name required|string
type required|string (simple|variable|grouped|affiliate)
category_ids nullable|array
description nullable|string
status required|string (active|inactive)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
DELETE api/products/{id}
πŸ”’ Auth products.delete
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/products/{id}/duplicate
πŸ”’ Auth products.create
Request Body
Field Type / Rules
name required|string
type required|string (simple|variable|grouped|affiliate)
category_ids nullable|array
description nullable|string
status required|string (active|inactive)
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
GET api/products/{productId}/variants
πŸ”’ Auth products.view
Path Parameters
Field Type / Rules
productId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
POST api/products/{productId}/variants
πŸ”’ Auth products.variants.manage
Request Body
Field Type / Rules
sku required|string
price required|number
sale_price nullable|number
cost_price nullable|number
stock required|integer
image_id nullable|integer
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
POST api/products/{productId}/variants/generate
πŸ”’ Auth products.variants.manage
Request Body
Field Type / Rules
sku required|string
price required|number
sale_price nullable|number
cost_price nullable|number
stock required|integer
image_id nullable|integer
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
PUT api/products/{productId}/variants/{variantId}
πŸ”’ Auth products.variants.manage
Request Body
Field Type / Rules
sku required|string
price required|number
sale_price nullable|number
cost_price nullable|number
stock required|integer
image_id nullable|integer
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
DELETE api/products/{productId}/variants/{variantId}
πŸ”’ Auth products.variants.manage
Path Parameters
Field Type / Rules
productId integer|string
variantId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
πŸ”Ή

Purchase Bills

10 endpoints
GET api/purchase-bills
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/purchase-bills
πŸ”’ Auth
Request Body
Field Type / Rules
supplier_id required|integer
branch_id required|integer
bill_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.cost_price required|number
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/purchase-bills/next-number
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/purchase-bills/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/purchase-bills/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/purchase-bills/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
supplier_id required|integer
branch_id required|integer
bill_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.cost_price required|number
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
DELETE api/purchase-bills/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
GET api/purchase-bills/{id}/download
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PATCH api/purchase-bills/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
supplier_id required|integer
branch_id required|integer
bill_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.cost_price required|number
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PATCH api/purchase-bills/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
supplier_id required|integer
branch_id required|integer
bill_date required|date
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
items.*.cost_price required|number
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ”Ή

Purchase Returns

11 endpoints
GET api/purchase-returns
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/purchase-returns
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/purchase-returns/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/purchase-returns/supplier/{supplierId}/bills
πŸ”’ Auth
Path Parameters
Field Type / Rules
supplierId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/purchase-returns/supplier/{supplierId}/products
πŸ”’ Auth
Path Parameters
Field Type / Rules
supplierId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
GET api/purchase-returns/supplier/{supplierId}/returnable-items
πŸ”’ Auth
Path Parameters
Field Type / Rules
supplierId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/purchase-returns/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/purchase-returns/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
DELETE api/purchase-returns/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/purchase-returns/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PATCH api/purchase-returns/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ“±

Pwa

3 endpoints
GET api/pwa/manifest
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/pwa/settings
πŸ”’ Auth pwa.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
PUT api/pwa/settings
πŸ”’ Auth pwa.view pwa.update
Request Body
Field Type / Rules
app_name required|string
short_name required|string
theme_color required|string
background_color required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ”Ή

Reports

13 endpoints
GET api/reports/balance-sheet
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/cash-flow
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/cashbook
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/customer-statement
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/income-statement
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/payable
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/purchase
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/purchase-items
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/receivable
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/sales
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/sales-items
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/sales-tax
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/reports/supplier-statement
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
πŸ”Ή

Sale Returns

12 endpoints
GET api/sale-returns
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/sale-returns
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/sale-returns/customer/{clientId}/invoices
πŸ”’ Auth
Path Parameters
Field Type / Rules
clientId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "invoice_number": "INV-0001", "customer": { "id": 1, "name": "Customer Name" }, "total": 5000, "status": "paid", "invoice_date": "2026-03-08", "items": [ { "variant_id": 1, "name": "Product A", "quantity": 2, "price": 2500 } ] } }
GET api/sale-returns/customer/{clientId}/products
πŸ”’ Auth
Path Parameters
Field Type / Rules
clientId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "name": "Product Name", "type": "simple", "status": "active", "categories": [ { "id": 1, "name": "Category A" } ], "variants": [ { "id": 1, "sku": "SKU-001", "price": 500, "stock": 100 } ] } }
GET api/sale-returns/customer/{clientId}/returnable-items
πŸ”’ Auth
Path Parameters
Field Type / Rules
clientId integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/sale-returns/next-number
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/sale-returns/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/sale-returns/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/sale-returns/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
DELETE api/sale-returns/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/sale-returns/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PATCH api/sale-returns/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
original_id required|integer
items required|array
items.*.variant_id required|integer
items.*.quantity required|number
reason nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ”Ή

Supplier Portal

13 endpoints
GET api/supplier-portal/bills
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/supplier-portal/bills/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/supplier-portal/bills/{id}/download
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/supplier-portal/dashboard
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/supplier-portal/ledger
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/supplier-portal/payments
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/supplier-portal/payments/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/supplier-portal/profile
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
PUT api/supplier-portal/profile
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
PUT api/supplier-portal/profile/password
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/supplier-portal/vouchers
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/supplier-portal/vouchers/{type}/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
type integer|string
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/supplier-portal/vouchers/{type}/{id}/download
πŸ”’ Auth
Path Parameters
Field Type / Rules
type integer|string
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
βš™οΈ

System

3 endpoints
GET api/system/settings
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "timezone": "Asia\/Dhaka", "currency_symbol": "ΰ§³", "date_format": "d M, Y", "time_format": "h:i a" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
PUT api/system/settings
πŸ”’ Auth settings.update
Request Body
Field Type / Rules
key required|string
value required
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "timezone": "Asia\/Dhaka", "currency_symbol": "ΰ§³", "date_format": "d M, Y", "time_format": "h:i a" } }
POST api/system/system-reset
πŸ”’ Auth settings.update
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ‘€

User

1 endpoint
GET api/user
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
πŸ“‘

User Activities

2 endpoints
POST api/user-activities
πŸ”’ Auth
Request Body
Field Type / Rules
name required|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
GET api/user-activities/{type}
πŸ”’ Auth
Path Parameters
Field Type / Rules
type integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } }
πŸ”€

Variants

2 endpoints
GET api/variants/search
πŸ”’ Auth products.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "created_at": "2026-03-08T07:30:00Z", "updated_at": "2026-03-08T07:30:00Z" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/variants/{variantId}/adjust-stock
πŸ”’ Auth products.variants.manage
Request Body
Field Type / Rules
quantity required|integer
type required|string (add|remove|set)
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
πŸ’³

Voucher

8 endpoints
GET api/voucher/stock-adj
πŸ”’ Auth stock_adjustments.view
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/voucher/stock-adj
πŸ”’ Auth stock_adjustments.create
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
GET api/voucher/stock-adj/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/voucher/stock-adj/{id}
πŸ”’ Auth stock_adjustments.view
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
PUT api/voucher/stock-adj/{id}
πŸ”’ Auth stock_adjustments.edit
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
DELETE api/voucher/stock-adj/{id}
πŸ”’ Auth stock_adjustments.delete
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/voucher/stock-adj/{id}/lock
πŸ”’ Auth stock_adjustments.edit
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
PATCH api/voucher/stock-adj/{id}/unlock
πŸ”’ Auth stock_adjustments.edit
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
πŸ”Ή

Vouchers

74 endpoints
GET api/vouchers/advances
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/advances
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/advances/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/advances/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/advances/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/advances/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/vouchers/advances/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PATCH api/vouchers/advances/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/contras
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/contras
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/contras/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/contras/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/contras/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/contras/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/vouchers/contras/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PATCH api/vouchers/contras/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/defaults
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
PUT api/vouchers/defaults
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/expenses
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/expenses
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/expenses/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/expenses/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/expenses/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/expenses/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/vouchers/expenses/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PATCH api/vouchers/expenses/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/journals
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/journals
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/journals/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/journals/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/journals/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/journals/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/vouchers/journals/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PATCH api/vouchers/journals/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/payments
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/payments
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/payments/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/payments/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/payments/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/payments/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/vouchers/payments/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PATCH api/vouchers/payments/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/receipts
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/receipts
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/receipts/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/receipts/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/receipts/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/receipts/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/vouchers/receipts/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PATCH api/vouchers/receipts/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/refunds
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/refunds
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/refunds/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/refunds/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/refunds/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/refunds/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
PATCH api/vouchers/refunds/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PATCH api/vouchers/refunds/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/salaries
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/salaries
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/salaries/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/salaries/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
PUT api/vouchers/salaries/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
DELETE api/vouchers/salaries/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/vouchers/salaries/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
POST api/vouchers/salaries/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "type": "payment", "amount": 5000, "reference": "VCH-0001", "status": "posted" } }
GET api/vouchers/stock-transfers
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
POST api/vouchers/stock-transfers
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
GET api/vouchers/stock-transfers/setup
πŸ”’ Auth
Query Parameters
Field Type / Rules
per_page integer
page integer
search string
sort string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Data fetched successfully", "data": { "items": [ { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } ], "pagination": { "current_page": 1, "per_page": 20, "total": 1, "last_page": 1 } } }
GET api/vouchers/stock-transfers/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
PUT api/vouchers/stock-transfers/{id}
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Updated successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
DELETE api/vouchers/stock-transfers/{id}
πŸ”’ Auth
Path Parameters
Field Type / Rules
id integer|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Deleted successfully", "data": null }
POST api/vouchers/stock-transfers/{id}/lock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }
POST api/vouchers/stock-transfers/{id}/unlock
πŸ”’ Auth
Request Body
Field Type / Rules
type required|string
amount required|number
reference nullable|string
branch_id required|integer
notes nullable|string
Requires Authorization: Bearer {token} header.
Response Example 200 OK
{ "success": true, "message": "Created successfully", "data": { "id": 1, "from_branch": "Main Branch", "to_branch": "Branch 2", "status": "completed", "items": [ { "variant_id": 1, "quantity": 10 } ] } }

No endpoints found

Try adjusting your search query.