/v1/wms/*)All endpoints require standard GOAL authentication and tenant headers:
Authorization: Bearer <token>
x-app-stage: <stage>
x-app-uid: <app_uid>
All responses conform to App\Values\Core\ActionResult:
{
"success": true,
"message": "Operation completed successfully.",
"data": {}
}
Standard HTTP status codes: 200, 201, 400, 401, 403, 404, 422, 429, 500.
GET /v1/wms/dashboard/statsReturns live operational metrics (pending_waves, active_tasks, items_received_today, open_discrepancies, non_dispatched_today).
company_id (required, integer)GOAL_V2_WMS_WMS_WAVE_LISTGET /v1/wms/dashboard/picking-errorsReturns Errores de picking aggregated by picker_user_id and discrepancy_type (OPE-ALM-PRO-002 §7).
company_id (required, integer)GOAL_V2_WMS_WMS_TASK_LIST| Method | Path | Description | Permission |
|---|---|---|---|
GET / POST / PUT |
/v1/wms/zones |
List, create, update warehouse zones | GOAL_V2_WMS_WMS_ZONE_* |
GET / POST / PUT / DELETE |
/v1/wms/categories |
Manage location categories | GOAL_V2_WMS_WMS_LOCATION_CATEGORY_* |
GET / POST / PUT |
/v1/wms/locations |
Manage physical bin locations | GOAL_V2_WMS_WMS_LOCATION_* |
POST |
/v1/wms/locations/generate |
Bulk-generate rack/aisle/level barcodes | GOAL_V2_WMS_WMS_LOCATION_CREATE |
GET / POST / PUT |
/v1/wms/lpns |
Manage License Plate Numbers (pallets/boxes) | GOAL_V2_WMS_WMS_LPN_* |
| Method | Path | Description | Permission |
|---|---|---|---|
GET / POST |
/v1/wms/receipts |
List and create expected receipts | GOAL_V2_WMS_WMS_RECEIPT_* |
POST |
/v1/wms/receipts/{id}/confirm-line |
Confirm received qty and optionally generate LPN/Lot | GOAL_V2_WMS_WMS_RECEIPT_MANAGE |
GET |
/v1/wms/putaway/suggest |
Suggest optimal putaway bin | GOAL_V2_WMS_LIST |
GET / POST |
/v1/wms/inventory |
List and create inventory lots | GOAL_V2_WMS_LIST / DETAILS |
PUT |
/v1/wms/inventory/{id}/status |
Quarantine / release lot | GOAL_V2_WMS_DETAILS |
POST |
/v1/wms/inventory/{id}/transfer |
Bin-to-bin transfer | GOAL_V2_WMS_DETAILS |
OPE-ALM-PRO-002)POST /v1/wms/wavesCreates a picking wave linked to DispatchSheet / Order IDs, reserves available WmsInventoryLot rows, and generates PICKING tasks.
{
"company_id": 8,
"warehouse_id": 1,
"dispatch_sheet_id": 120,
"order_ids": [140, 142],
"route_priority": 10,
"is_recarga": false,
"estimated_minutes": 45
}
PUT /v1/wms/waves/{id}/release & POST /v1/wms/waves/{id}/optimizeReleases a DRAFT wave to mobile PDAs (TStock) and sequences picking tasks by location code.
PUT /v1/wms/tasks/{id}/verifyDouble pallet verification (OPE-ALM-PRO-002 steps 08–11). Grants V.°B.° Almacén (approved: true) or logs a WmsTaskDiscrepancy (approved: false).
{
"company_id": 8,
"approved": false,
"discrepancy_type": "SHORTAGE",
"expected_qty": 10,
"found_qty": 8,
"notes": "Faltan 2 cajas en pallet"
}
GET / POST /v1/wms/waves/stowage-assetsRecords OPE-ALM-FOR-003 truck assets (jabas_count, parihuelas_count, coolers_count), stowage timestamps, and stowage_image_code.
GET / POST /v1/wms/waves/non-dispatchedChecks master inventory for missing items and registers NO DESPACHADO items (OPE-ALM-FOR-004).
POST /v1/wms/packing/closeMarks WmsWaveOrder as PACKED, dispatches PushDeliveryNoteJob, and triggers the configured dispatch webhook.
purchase_cost and avg_cost) only processes qualifying inbound receipts (INBOUND_RECEIPT). Sales returns (SALES_RETURN / credit notes / transtype 14 or 16) and documents in CostExclusion / canceled IncomingCost are strictly ignored.purchase_cost & Product::last_purchase_*): Purchase bonifications (is_bonification = true), zero-cost operations (unit_cost <= 0), and 100%-discount operations (discount_percent >= 100) are strictly excluded from updating last purchase cost (purchase_cost and Product::last_purchase_price, last_purchase_date, last_purchase_order_number, last_purchase_warehouse_code).warehouse_id) and Distribution Center (distribution_center_id, warehouse_id = null) rows in wms_warehouse_product_costs alongside products master cost fields.GET /v1/wms/inventory/movementsReturns the valued WMS Kardex ledger (wms_inventory_movements). Requires GOAL_V2_WMS_LIST.
company_id, warehouse_id (ID, UUID, or code), product_id, movement_type, date_from, date_to, search.GET /v1/wms/inventory/auditCompares net Kardex ledger quantities (ledger_net_qty) against current WMS lot stock (current_wms_qty), returning MATCH, SURPLUS, or SHORTAGE and deviation_cost_impact. Requires GOAL_V2_WMS_LIST.
company_id, warehouse_id (required; ID, UUID, or code), product_id, only_deviations, search.POST /v1/wms/inventory/{id}/adjustAdjusts a WmsInventoryLot quantity (new_quantity or delta_quantity) and logs an ADJUSTMENT_IN / ADJUSTMENT_OUT movement. Requires GOAL_V2_WMS_DETAILS.
{
"company_id": 8,
"new_quantity": 20,
"reason": "Conciliación de auditoría de stock"
}
GET /v1/wms/inventory/costsLists parallel purchase_cost and avg_cost records by Warehouse and Distribution Center. Requires GOAL_V2_WMS_LIST.
company_id, warehouse_id (ID, UUID, or code), distribution_center_id, product_id, search.POST /v1/wms/inventory/costsCreates or updates purchase_cost and avg_cost for a Warehouse or Distribution Center + Product. Requires GOAL_V2_WMS_DETAILS.
{
"company_id": 8,
"warehouse_id": 5,
"product_id": 42,
"purchase_cost": 14.50,
"avg_cost": 12.75,
"currency": "PEN"
}
POST /v1/wms/inventory/costs/recalculateRecalculates purchase_cost and avg_cost for a Warehouse (all SKUs or a specific product_id), excluding sales returns, CostExclusion lines/documents, bonifications, zero-cost, and 100%-discount operations. Requires GOAL_V2_WMS_DETAILS.
calc_mode: FROM_LAST_CHECKPOINT (default — restores latest WmsCostCheckpoint and replays forward) or RESOLVE_NEW_COST (full recompute).{
"company_id": 8,
"warehouse_id": 5,
"product_id": 42,
"calc_mode": "FROM_LAST_CHECKPOINT"
}
GET / POST /v1/wms/inventory/costs/checkpointsLists or creates WmsCostCheckpoint snapshots for a Warehouse + Product. Requires GOAL_V2_WMS_LIST / GOAL_V2_WMS_DETAILS.