{ "login": { "token": "jwt-token-sample", "user": { "id": 5, "name": "Sales Walet", "role": "SALES" } }, "lot_detail": { "id": 4, "lot_code": "LOT-260428-SUPB-001-S1", "supplier": { "id": 2, "code": "SUP-B", "name": "Supplier B", "bank_name": "Mandiri", "bank_account_number": "9876543210" }, "item_type": { "id": 1, "code": "JNS-A", "name": "Jenis A" }, "item_grade": { "id": 1, "code": "GRD-A", "name": "Grade A" }, "original_qty": 18, "available_qty": 8, "reserved_qty": 0, "unit_cost": 17500000, "warehouse": { "id": 1, "name": "Gudang Pusat" }, "location": { "id": 1, "name": "Rak A1" }, "status": "ACTIVE", "qr_code_value": "LOT-260428-SUPB-001-S1" }, "sales_detail": { "id": 1, "sales_no": "SLS-20260428-001", "customer": { "id": 1, "name": "Customer A", "bank_name": "BRI", "bank_account_number": "111222333444" }, "sales_date": "2026-04-28", "status": "CONFIRMED", "lines": [ { "id": 1, "item_type": "Jenis A", "item_grade": "Grade A", "qty_sold": 30, "selling_price": 22000000, "subtotal": 660000000, "costing_total": 550000000, "gross_margin": 110000000, "allocations": [ { "lot_code": "LOT-260428-SUPA-001", "supplier": "Supplier A", "qty_allocated": 20, "unit_cost": 18000000, "total_cost": 360000000 }, { "lot_code": "LOT-260428-SUPB-001-S1", "supplier": "Supplier B", "qty_allocated": 10, "unit_cost": 19000000, "total_cost": 190000000 } ] } ] }, "barcode_lookup": { "lot_id": 1, "lot_code": "LOT-260428-SUPA-001", "supplier": "Supplier A", "item_type": "Jenis A", "grade": "Grade A", "available_qty": 30, "warehouse": "Gudang Pusat", "location": "Rak A1", "status": "ACTIVE", "trace_summary": { "purchase_no": "PO-20260428-001", "used_in_sales": [ "SLS-20260428-001" ] } }, "traceability_report": { "sales_no": "SLS-20260428-001", "customer": "Customer A", "lines": [ { "item": "Jenis A / Grade A", "qty": 30, "sources": [ { "lot_code": "LOT-260428-SUPA-001", "supplier": "Supplier A", "qty": 20, "purchase_no": "PO-20260428-001" }, { "lot_code": "LOT-260428-SUPB-001-S1", "supplier": "Supplier B", "qty": 10, "purchase_no": "PO-20260428-002", "parent_lot": "LOT-260428-SUPB-001" } ] } ] } }