Developers API Documentation
Provides detailed documentation for available API endpoints
Each endpoint includes a brief description of its purpose, request structure, parameters, and expected responses.
main url: https://dev-api.daashapp.co/v1Headers
Authorization
Bearer <token>
Content-Type
application/json
Inventory API
Manage store inventory including categories, units, and items.
Categories
POST /product/category – Create category
GET /product/category – Get all categories
GET /product/category/:id – Get single category
PATCH /product/category/:id – Update category
DELETE /product/category/:id – Delete category
Units
POST /product/units – Create unit
GET /product/units – Get all units
GET /product/units/:id – Get single unit
PATCH /product/units/:id – Update unit
DELETE /product/units/:id – Delete unit
Items
POST /product/items – Create item
GET /product/items – Get all items
GET /product/items/:id – Get single item
PATCH /product/items/:id – Update item
DELETE /product/items/:id – Delete item
Example: POST https://dev-api.daashapp.co/v1/product/category
{
"name": "Fresh Vegetables",
"description": "All leafy greens and fresh farm vegetables available for sale"
}Success Response
{
"status": true,
"message": "Inventory category created successfully",
"data": {
"name": "Fresh Vegetables",
"description": "All leafy greens and fresh farm vegetables available for sale",
"slug": "fresh-vegetables",
"customer": "671f5bb8252f9acb3d2d2d29",
"branch": "671f5d2265b9da3cc6c72723",
"_id": "690bc6465b65c7a84477a130",
"created_at": "2025-11-05T21:48:54.475Z",
"updated_at": "2025-11-05T21:48:54.475Z",
"__v": 0
}
}Note
The
slugis auto-generated from the category name.customerandbranchvalues are automatically derived from the authenticated user.Category names must be unique within a customer’s account.
Last updated