Raw Material Kardex
The Raw Material Kardex API allows you to track all inventory movements for raw materials. It records transactions such as purchases, usage in production, returns, adjustments, and other material movements.Endpoints
POST /api/pos/kardexmp
Create a new raw material kardex transaction.Raw material code
Transaction code (e.g., ‘COM’ for purchase, ‘CON’ for consumption)
Transaction quantity
Observation or notes for the transaction
Transaction date (ISO 8601 format)
Response
Returns 201 Created on success.cURL
Example response
Example response
GET /api/pos/kardexmp
Get all raw material kardex transactions with pagination.Page number for pagination (default: 1)
Response
Current page number
Number of items per page
Total count of kardex records
Array of kardex transaction objects
cURL
Example response
Example response
GET /api/pos/kardexmp/search
Search kardex transactions by raw material name.Raw material description to search for
Page number for pagination (default: 1)
Response
Current page number
Number of items per page
Total count of matching kardex records
Array of matching kardex transaction objects
cURL
Example response
Example response
GET /api/pos/kardexmp/:id
Get a specific raw material kardex transaction by ID.Kardex record ID
Response
Kardex transaction object with all details
cURL
Example response
Example response
PUT /api/pos/kardexmp/:id
Update an existing raw material kardex transaction.Kardex record ID to update
Raw material code
Transaction code
Transaction quantity
Observation or notes
Transaction date (ISO 8601 format)
Response
Success message
cURL
Example response
Example response
DELETE /api/pos/kardexmp/:id
Delete a raw material kardex transaction by ID.Kardex record ID to delete
Response
Returns 204 No Content on success.cURL
Transaction Types
Common transaction codes used in the Raw Material Kardex:- COM: Compra - Purchase/incoming transaction
- CON: Consumo - Consumption/usage in production
- DEV: Devolución - Return transaction
- AJU: Ajuste - Inventory adjustment
- MER: Merma - Wastage/loss