Base path (included under accounting balance routes):
/v1/backend/accounting/balance/kardex
Authorization: Bearer <access_token>
x-app-stage: <stage>
x-app-uid: <application_uuid>
Query/body must include companyId (or company_id on write operations). Routes use the company-validator middleware.
Responses follow ActionResult:
{
"success": true,
"message": "...",
"data": {}
}
Marks one or more products in kardex3_products as PENDING for the given accounting period so background kardex processing can run again.
Path: POST /v1/backend/accounting/balance/kardex/reprocess-products
| Field | Type | Required | Description |
|---|---|---|---|
companyId |
integer | Yes | Company scope |
period |
integer/string | Yes | Period code (e.g. 202607) |
itemCodes |
string[] | Yes | Product item codes (itemcode) to reprocess |
POST /v1/backend/accounting/balance/kardex/reprocess-products
Content-Type: application/json
{
"companyId": 1,
"period": 202607,
"itemCodes": ["ZUR319509", "LOG005900"]
}
{
"success": true,
"message": "Se marcaron 2 producto(s) para reprocesar el kardex.",
"data": {
"updated": 2,
"item_codes": ["ZUR319509", "LOG005900"]
}
}
| HTTP | When |
|---|---|
| 400 | Validation failed or business error (success: false) |
| 401 | Missing or invalid token |
| 403 | User cannot access companyId |
| 404 | Period not found or no matching kardex3_products rows |
| 422 | Laravel validation (missing itemCodes, etc.) |
| 500 | Unexpected server error |
Equivalent SQL on the company balance connection:
UPDATE kardex3_products
SET [status] = 'PENDING'
WHERE [period] = @period
AND itemcode IN (@itemCodes);
Path: GET /v1/backend/accounting/balance/kardex/products
Query: companyId, period
Returns rows from kardex3_products joined with product and supplier display names.