Reconcile API OEE with the Pitch Board for an Overnight Shift
Last updated: December 4, 2026
When daily_summary_data_by_line.overall_equipment_effectiveness differs from the Pitch Board's daily shift OEE, first compare the underlying pitches and totals. A matching line, date label, and shift name do not by themselves establish that both views include the same pitches.
Check the comparison
Compare against the Pitch Board's daily shift row, not the shift's week-to-date row or all-line totals.
Confirm the full shift start and end, including the next calendar date for an overnight shift, and the plant's time zone.
Compare pitch count, actual units, and planned production minutes. Inspect the summary response's
start_dateandend_date, rather than assuming they match the requested interval.For the daily summary endpoint,
show_shifts=truereturns separate shift rows; it does not by itself establish that a row contains every pitch in the full overnight shift.
The Daily and Weekly Production Summary Reports documentation describes technical-date grouping. Do not assume that changing a daily summary request's end time alone will reproduce the Pitch Board's full-shift totals.
Retrieve the full shift's raw pitches
The support-confirmed approach for a discrepancy caused by incomplete shift coverage was to retrieve raw pitch data for the full shift and calculate OEE from its inputs:
GET https://<company>.leading2lean.com/api/1.0/pitches/?pitch_start__gte=2026-11-30%2018:30:00&pitch_end__lte=2026-12-01%2006:30:00&line=<line-id>Replace the company and line placeholders and supply your API authentication securely. Use the verified shift boundaries for your plant; the dates and 18:30–06:30 window above are an example, not a universal shift schedule. The filters select pitches starting at or after the lower boundary and ending at or before the upper boundary. Verify that this includes the complete intended shift and the same contributing pitches as the board.
Calculate from raw inputs, not stored OEE percentages
The calculation supplied in the resolved support case was:
Shift OEE (%) = 100 × Σ(actual × ideal_cycle_time)
/ Σ(planned_production_minutes × 60)ideal_cycle_time is in seconds per unit and planned_production_minutes is in minutes. Multiply planned minutes by 60 so both numerator and denominator are in seconds. Use each pitch's applicable cycle time and unrounded inputs. Planned production minutes exclude planned non-production time; they are not simply the elapsed shift duration.
Worked example
In the support case, the summary row contained 13 pitches and 1,100 actual units, returning 53.9%. The full shift contained 15 pitches and 1,153 actual units. With approximately 17.2 seconds ideal cycle time for both products and 630 planned production minutes:
100 × (1,153 × 17.2) / (630 × 60) ≈ 52.5%This reproduced the Pitch Board's daily shift OEE. The example had no scrap and approximately equal cycle times; it is not verification of the calculation for every mixed-product, missing-cycle-time, or other configuration. If those conditions differ, confirm the applicable aggregation with Support.
Do not take a plain average of each pitch's stored overall_equipment_effectiveness. A short pitch would count as much as a long pitch. Even weighting stored percentages can fail when those values are stale: in this case, the plain average was about 49% and the weighted stored values about 52.1%. Recomputing from raw inputs reproduced the board.
If the values still differ
Provide Support with the sanitized request, relevant response rows, plant time zone, exact shift window, and the Pitch Board's pitch count and totals. Remove API keys and other credentials. Confirm pitch membership and applicable cycle times before attributing a difference to rounding or a different OEE formula.