{"openapi":"3.1.0","info":{"title":"Waybill House planning API","version":"1.0.0","description":"Deterministic planning arithmetic. Not live pricing or official NMFC classification. Hosted Site access controls apply."},"servers":[{"url":"https://waybillhouse.com"}],"paths":{"/api/density-references":{"get":{"operationId":"searchDensityReferences","summary":"Search sourced stock, bulk and liquid densities by product, grade or exact reference ID","parameters":[{"name":"query","in":"query","schema":{"type":"string","maxLength":200}},{"name":"form","in":"query","schema":{"type":"string","enum":["all","stock","bulk","liquid"],"default":"all"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":20,"default":10}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"maximum":10000,"default":0}}],"responses":{"200":{"description":"Paged sources with product conditions, source-specific estimator inputs, outstanding measurements and nextOffset"},"400":{"description":"Invalid, duplicate or unsupported parameter"}}}},"/api/task-paths":{"get":{"operationId":"readShippingTaskPaths","summary":"List curated task paths or retrieve an exact path with required records and resource links; executes no actions","parameters":[{"name":"task","in":"query","schema":{"type":"string","enum":["prepare-quote","compare-quotes","no-dock-delivery","review-invoice","missing-or-damaged-freight","estimate-product-weight","temperature-requirements","shipment-changed"]}}],"responses":{"200":{"description":"Task index or complete ordered path with Markdown"},"400":{"description":"Invalid, duplicate or unsupported parameter"},"404":{"description":"Task path not found"}}}},"/api/classification":{"post":{"operationId":"prepareClassificationHandoff","summary":"Prepare supplied commodity cases and evidence for an authorized lookup; no classification is assigned","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"commodity":{"type":"string","maxLength":1000},"material":{"type":"string","maxLength":1000},"use":{"type":"string","maxLength":1000},"condition":{"type":"string","maxLength":1000},"packaging":{"type":"string","maxLength":1000},"dimensions":{"type":"string","maxLength":1000},"grossWeight":{"type":"string","maxLength":1000},"shipmentDate":{"type":"string","maxLength":10},"reference":{"type":"string","maxLength":300},"evidence":{"type":"string","maxLength":3000},"declaredClassification":{"type":"string","maxLength":500},"handlingUnits":{"type":"string","maxLength":1000},"commodities":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","maxLength":50},"commodity":{"type":"string","maxLength":1000},"material":{"type":"string","maxLength":1000},"use":{"type":"string","maxLength":1000},"condition":{"type":"string","maxLength":1000},"packaging":{"type":"string","maxLength":1000},"dimensions":{"type":"string","maxLength":1000},"grossWeight":{"type":"string","maxLength":1000},"handlingUnits":{"type":"string","maxLength":1000},"declaredClassification":{"type":"string","maxLength":500},"evidence":{"type":"string","maxLength":2000}}}}}}}}},"responses":{"200":{"description":"Unresolved cases, conditional gaps, finder request and portable records"},"400":{"description":"Invalid or conflicting supplied facts"},"403":{"description":"Origin or Site access not permitted"},"413":{"description":"Request exceeds64 KiB"}}}},"/api/carriers":{"get":{"operationId":"readCarrierResources","summary":"Find dated official carrier resources or retrieve an exact carrier reference","parameters":[{"name":"query","in":"query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"task","in":"query","schema":{"type":"string","enum":["all","quote","pickup","tracking","documents","service-centers","claims","billing","support","service-alerts","developer"]}},{"name":"slug","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Carrier references, official links, source-reported sign-in notes and review dates"},"400":{"description":"Invalid query or task"},"404":{"description":"Carrier reference not found"}}}},"/carriers/{slug}/markdown":{"get":{"operationId":"downloadCarrierReference","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Complete editorial reference and official resource links with provenance","content":{"text/markdown":{"schema":{"type":"string"}}}},"404":{"description":"Carrier reference not found"}}}},"/materials/{slug}/worksheet":{"get":{"operationId":"downloadMaterialPreparationRecord","summary":"Download blank product details and booking questions as CSV","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Blank CSV record with canonical provenance, evidence, responsibility and status columns","content":{"text/csv":{"schema":{"type":"string"}}}},"404":{"description":"Profile not found"}}}},"/api/materials":{"get":{"operationId":"readMaterialProfiles","summary":"List or search preparation profiles; retrieve a full profile by exact slug","parameters":[{"name":"query","in":"query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"slug","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Profile index or full editorial profile with source links"},"400":{"description":"Invalid query"},"404":{"description":"Profile not found"}}}},"/api/calculate":{"post":{"operationId":"calculateFreight","summary":"Run a planning calculation","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"supplied-volume-density"},"values":{"type":"object","additionalProperties":false,"required":["cubicMeters","grossKilograms"],"properties":{"cubicMeters":{"type":"number","minimum":0.000001,"maximum":1000000000,"description":"Total outside packed volume (m³)"},"grossKilograms":{"type":"number","minimum":0.000001,"maximum":1000000000,"description":"Total gross weight for the same lot (kg)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"freight-margin"},"values":{"type":"object","additionalProperties":false,"required":["revenue","carrier","other","target"],"properties":{"revenue":{"type":"number","minimum":0,"maximum":1000000000,"description":"Customer price ($)"},"carrier":{"type":"number","minimum":0,"maximum":1000000000,"description":"Carrier cost including agreed charges ($)"},"other":{"type":"number","minimum":0,"maximum":1000000000,"description":"Other entered shipment costs ($)"},"target":{"type":"number","minimum":0,"maximum":1000000000,"description":"Your target margin (%)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"density"},"values":{"type":"object","additionalProperties":false,"required":["units"],"properties":{"units":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["length","width","height","weight"],"properties":{"id":{"type":"string","maxLength":100},"length":{"type":"number","minimum":0.000001,"maximum":1000000000},"width":{"type":"number","minimum":0.000001,"maximum":1000000000},"height":{"type":"number","minimum":0.000001,"maximum":1000000000},"weight":{"type":"number","minimum":0.000001,"maximum":1000000000},"quantity":{"type":"integer","minimum":1,"maximum":10000,"default":1},"unit":{"type":"string","enum":["in","cm"],"default":"in"},"weightUnit":{"type":"string","enum":["lb","kg"],"default":"lb"}}}}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"quote-comparison"},"values":{"type":"object","additionalProperties":false,"required":["baseA","fuelA","extraA","baseB","fuelB","extraB"],"properties":{"baseA":{"type":"number","minimum":0,"maximum":1000000000,"description":"Quote A: base ($)"},"fuelA":{"type":"number","minimum":0,"maximum":1000000000,"description":"Quote A: fuel ($)"},"extraA":{"type":"number","minimum":0,"maximum":1000000000,"description":"Quote A: accessorials ($)"},"baseB":{"type":"number","minimum":0,"maximum":1000000000,"description":"Quote B: base ($)"},"fuelB":{"type":"number","minimum":0,"maximum":1000000000,"description":"Quote B: fuel ($)"},"extraB":{"type":"number","minimum":0,"maximum":1000000000,"description":"Quote B: accessorials ($)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"fuel-surcharge"},"values":{"type":"object","additionalProperties":false,"required":["base","percent"],"properties":{"base":{"type":"number","minimum":0,"maximum":1000000000,"description":"Eligible charge base ($)"},"percent":{"type":"number","minimum":0,"maximum":1000000000,"description":"Fuel surcharge (%)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"detention"},"values":{"type":"object","additionalProperties":false,"required":["elapsed","free","increment","hourly"],"properties":{"elapsed":{"type":"number","minimum":0,"maximum":1000000000,"description":"Elapsed time (min)"},"free":{"type":"number","minimum":0,"maximum":1000000000,"description":"Free time (min)"},"increment":{"type":"number","minimum":1,"maximum":1000000000,"description":"Billing increment (min)"},"hourly":{"type":"number","minimum":0,"maximum":1000000000,"description":"Hourly charge ($/hr)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"invoice-variance"},"values":{"type":"object","additionalProperties":false,"required":["quote","invoice","known"],"properties":{"quote":{"type":"number","minimum":0,"maximum":1000000000,"description":"Quoted total ($)"},"invoice":{"type":"number","minimum":0,"maximum":1000000000,"description":"Billed total ($)"},"known":{"type":"number","minimum":0,"maximum":1000000000,"description":"Known adjustments ($)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"linear-feet"},"values":{"type":"object","additionalProperties":false,"required":["length","width","quantity","trailerWidth"],"properties":{"length":{"type":"number","minimum":1,"maximum":1000000000,"description":"Pallet length (in)"},"width":{"type":"number","minimum":1,"maximum":1000000000,"description":"Pallet width (in)"},"quantity":{"type":"integer","minimum":1,"maximum":1000000000,"description":"Pallet count (units)"},"trailerWidth":{"type":"number","minimum":1,"maximum":1000000000,"description":"Usable interior width (in)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"pallet-layer"},"values":{"type":"object","additionalProperties":false,"required":["palletLength","palletWidth","cartonLength","cartonWidth"],"properties":{"palletLength":{"type":"number","minimum":1,"maximum":1000000000,"description":"Pallet length (in)"},"palletWidth":{"type":"number","minimum":1,"maximum":1000000000,"description":"Pallet width (in)"},"cartonLength":{"type":"number","minimum":1,"maximum":1000000000,"description":"Carton length (in)"},"cartonWidth":{"type":"number","minimum":1,"maximum":1000000000,"description":"Carton width (in)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"stack-height"},"values":{"type":"object","additionalProperties":false,"required":["limit","pallet","carton","perLayer"],"properties":{"limit":{"type":"number","minimum":1,"maximum":1000000000,"description":"Your permitted overall height (in)"},"pallet":{"type":"number","minimum":0,"maximum":1000000000,"description":"Empty pallet height (in)"},"carton":{"type":"number","minimum":1,"maximum":1000000000,"description":"Carton height (in)"},"perLayer":{"type":"integer","minimum":1,"maximum":1000000000,"description":"Cartons per layer (cartons)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"dimensional-weight"},"values":{"type":"object","additionalProperties":false,"required":["length","width","height","weight","divisor"],"properties":{"length":{"type":"number","minimum":1,"maximum":1000000000,"description":"Package length (in)"},"width":{"type":"number","minimum":1,"maximum":1000000000,"description":"Package width (in)"},"height":{"type":"number","minimum":1,"maximum":1000000000,"description":"Package height (in)"},"weight":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Actual weight (lb)"},"divisor":{"type":"number","minimum":1,"maximum":1000000000,"description":"Contract divisor (in³/lb)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"cube-converter"},"values":{"type":"object","additionalProperties":false,"required":["cubicFeet"],"properties":{"cubicFeet":{"type":"number","minimum":0,"maximum":1000000000,"description":"Volume (ft³)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"density-target"},"values":{"type":"object","additionalProperties":false,"required":["weight","length","width","target"],"properties":{"weight":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Gross weight (lb)"},"length":{"type":"number","minimum":1,"maximum":1000000000,"description":"Overall length (in)"},"width":{"type":"number","minimum":1,"maximum":1000000000,"description":"Overall width (in)"},"target":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Planning density target (PCF)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"cost-per-unit"},"values":{"type":"object","additionalProperties":false,"required":["freight","units"],"properties":{"freight":{"type":"number","minimum":0,"maximum":1000000000,"description":"Total freight ($)"},"units":{"type":"integer","minimum":1,"maximum":1000000000,"description":"Saleable units (units)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"hundredweight"},"values":{"type":"object","additionalProperties":false,"required":["weight","rate","minimum"],"properties":{"weight":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Chargeable weight (lb)"},"rate":{"type":"number","minimum":0,"maximum":1000000000,"description":"Rate per CWT ($/CWT)"},"minimum":{"type":"number","minimum":0,"maximum":1000000000,"description":"Minimum base charge ($)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"ltl-vs-truckload"},"values":{"type":"object","additionalProperties":false,"required":["ltl","ltlExtra","ftl","ftlExtra"],"properties":{"ltl":{"type":"number","minimum":0,"maximum":1000000000,"description":"LTL quote ($)"},"ltlExtra":{"type":"number","minimum":0,"maximum":1000000000,"description":"LTL extras ($)"},"ftl":{"type":"number","minimum":0,"maximum":1000000000,"description":"Truckload quote ($)"},"ftlExtra":{"type":"number","minimum":0,"maximum":1000000000,"description":"Truckload extras ($)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"terminal-pickup"},"values":{"type":"object","additionalProperties":false,"required":["delivered","terminal","rental","travel","labor","unload"],"properties":{"delivered":{"type":"number","minimum":0,"maximum":1000000000,"description":"Delivered quote with services ($)"},"terminal":{"type":"number","minimum":0,"maximum":1000000000,"description":"Terminal collection quote ($)"},"rental":{"type":"number","minimum":0,"maximum":1000000000,"description":"Vehicle rental ($)"},"travel":{"type":"number","minimum":0,"maximum":1000000000,"description":"Travel and fuel ($)"},"labor":{"type":"number","minimum":0,"maximum":1000000000,"description":"Collection labor ($)"},"unload":{"type":"number","minimum":0,"maximum":1000000000,"description":"Unloading expense ($)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"landed-cost"},"values":{"type":"object","additionalProperties":false,"required":["goods","freight","other","units"],"properties":{"goods":{"type":"number","minimum":0,"maximum":1000000000,"description":"Product cost ($)"},"freight":{"type":"number","minimum":0,"maximum":1000000000,"description":"Transport cost ($)"},"other":{"type":"number","minimum":0,"maximum":1000000000,"description":"Other known costs ($)"},"units":{"type":"integer","minimum":1,"maximum":1000000000,"description":"Saleable units (units)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"warehouse-footprint"},"values":{"type":"object","additionalProperties":false,"required":["length","width","quantity","allowance"],"properties":{"length":{"type":"number","minimum":1,"maximum":1000000000,"description":"Pallet length (in)"},"width":{"type":"number","minimum":1,"maximum":1000000000,"description":"Pallet width (in)"},"quantity":{"type":"integer","minimum":1,"maximum":1000000000,"description":"Floor positions (pallets)"},"allowance":{"type":"number","minimum":0,"maximum":1000000000,"description":"Planning allowance (%)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"return-budget"},"values":{"type":"object","additionalProperties":false,"required":["freight","accessorials","packing","handling","fees"],"properties":{"freight":{"type":"number","minimum":0,"maximum":1000000000,"description":"Return freight ($)"},"accessorials":{"type":"number","minimum":0,"maximum":1000000000,"description":"Pickup services ($)"},"packing":{"type":"number","minimum":0,"maximum":1000000000,"description":"Replacement packaging ($)"},"handling":{"type":"number","minimum":0,"maximum":1000000000,"description":"Handling labor ($)"},"fees":{"type":"number","minimum":0,"maximum":1000000000,"description":"Other known fees ($)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"accessorial-budget"},"values":{"type":"object","additionalProperties":false,"required":["base","fuel","liftgate","residential","limited","appointment","other"],"properties":{"base":{"type":"number","minimum":0,"maximum":1000000000,"description":"Transport base ($)"},"fuel":{"type":"number","minimum":0,"maximum":1000000000,"description":"Fuel ($)"},"liftgate":{"type":"number","minimum":0,"maximum":1000000000,"description":"Liftgate ($)"},"residential":{"type":"number","minimum":0,"maximum":1000000000,"description":"Residential ($)"},"limited":{"type":"number","minimum":0,"maximum":1000000000,"description":"Limited access ($)"},"appointment":{"type":"number","minimum":0,"maximum":1000000000,"description":"Appointment ($)"},"other":{"type":"number","minimum":0,"maximum":1000000000,"description":"Other services ($)"}}}}},{"type":"object","required":["tool","values"],"additionalProperties":false,"properties":{"tool":{"const":"shipment-value"},"values":{"type":"object","additionalProperties":false,"required":["value","weight"],"properties":{"value":{"type":"number","minimum":0,"maximum":1000000000,"description":"Shipment value ($)"},"weight":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Gross weight (lb)"}}}}}]}}}},"responses":{"200":{"description":"Calculation result with units, formula and limitations"},"400":{"description":"Invalid inputs"},"403":{"description":"Origin or Site access not permitted"},"413":{"description":"Body exceeds 64 KiB"}}}},"/api/workflow":{"post":{"operationId":"reviewShipmentWorkflow","summary":"Create a BOL draft, estimate bulk/liquid or solid-stock weight, review service-charge budgets and fuel terms, detention event records and staging occupancy, compare container constraints, review shipment plans and measurements, reconcile invoices and received quantities, compare supplied LTL weight breaks, and allocate entered freight costs","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"ifta-fuel-tax"},"values":{"type":"object","additionalProperties":false,"properties":{"year":{"type":"integer","minimum":2000,"maximum":2100},"quarter":{"type":"integer","minimum":1,"maximum":4},"basis":{"type":"string","enum":["us","canada"]},"activity":{"type":"string","enum":["active","none"]},"reference":{"type":"string","maxLength":160,"minLength":0},"fleet":{"type":"string","maxLength":300,"minLength":0},"baseJurisdiction":{"type":"string","maxLength":100,"minLength":0},"totalDistance":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string; up to 3 decimals. Omit unknown; zero is explicit."},"totalFuel":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string; up to 3 decimals. Omit unknown; zero is explicit."},"nonIftaDistance":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string; up to 3 decimals. Omit unknown; zero is explicit."},"distanceSource":{"type":"string","maxLength":500,"minLength":0},"fuelSource":{"type":"string","maxLength":500,"minLength":0},"fuelBasis":{"type":"string","enum":["unknown","used","delivered"]},"fuelBasisConfirmed":{"type":"string","enum":["unknown","confirmed"]},"scopeConfirmed":{"type":"string","enum":["unknown","confirmed"]},"inventoryCoverage":{"type":"string","enum":["unknown","partial","complete"]},"fuelDifferenceExplanation":{"type":"string","maxLength":500,"minLength":0},"rows":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"},"jurisdiction":{"type":"string","enum":["AL","AZ","AR","CA","CO","CT","DE","FL","GA","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY","AB","BC","MB","NB","NL","NS","ON","PE","QC","SK"]},"periodStart":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"periodEnd":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"totalDistance":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string; up to 3 decimals. Omit unknown; zero is explicit."},"taxableDistance":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string; up to 3 decimals. Omit unknown; zero is explicit."},"taxPaidFuel":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string; up to 3 decimals. Omit unknown; zero is explicit."},"baseRate":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string; up to 6 decimals. Omit unknown; zero is explicit."},"surchargeRate":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string; up to 6 decimals. Omit unknown; zero is explicit."},"rateYear":{"type":"integer","minimum":2000,"maximum":2100},"rateQuarter":{"type":"integer","minimum":1,"maximum":4},"rateBasis":{"type":"string","enum":["us","canada"]},"rateFuel":{"type":"string","maxLength":40,"minLength":0},"rateFinality":{"type":"string","enum":["unknown","provisional","final"]},"rateReviewed":{"type":"string","enum":["unknown","confirmed"]},"rateSource":{"type":"string","maxLength":500,"minLength":0},"recordSource":{"type":"string","maxLength":500,"minLength":0},"footnotes":{"type":"string","maxLength":500,"minLength":0}},"required":["id","jurisdiction","rateFinality","rateReviewed"]}}},"required":["year","quarter","basis","activity","fuelBasis","fuelBasisConfirmed","scopeConfirmed","inventoryCoverage","rows"]}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"axle-weight"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":160,"minLength":0},"vehicle":{"type":"string","maxLength":300,"minLength":0},"scaleRecord":{"type":"string","maxLength":400,"minLength":0},"routeContext":{"type":"string","maxLength":500,"minLength":0},"weightUnit":{"type":"string","enum":["lb","kg"]},"sameScaleEvent":{"type":"string","enum":["unknown","confirmed","different"]},"groupCoverage":{"type":"string","enum":["unknown","partial","complete"],"description":"Complete means every vehicle axle is included once, with no overlaps or omissions. Combined with sameScaleEvent confirmed, this enables a gross sum when every weight is known."},"groups":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"},"label":{"type":"string","maxLength":160,"minLength":1},"weight":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string, at most six fractional places. Omit unknown; zero is explicit."},"limit":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string, at most six fractional places. Omit unknown; zero is explicit."},"weightSource":{"type":"string","maxLength":400,"minLength":0},"limitSource":{"type":"string","maxLength":400,"minLength":0}},"required":["id","label"]}},"reportedGross":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string, at most six fractional places. Omit unknown; zero is explicit."},"grossLimit":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string, at most six fractional places. Omit unknown; zero is explicit."},"grossLimitSource":{"type":"string","maxLength":500,"minLength":0},"bridgeGroups":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","maxLength":40,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"},"label":{"type":"string","maxLength":160,"minLength":1},"axleCount":{"type":"integer","minimum":2,"maximum":20},"outerSpan":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string, at most six fractional places. Omit unknown; zero is explicit."},"spanUnit":{"type":"string","enum":["ft","in","m"]},"weight":{"type":"string","maxLength":16,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string, at most six fractional places. Omit unknown; zero is explicit."},"consecutive":{"type":"string","enum":["unknown","confirmed","no"]},"evidence":{"type":"string","maxLength":500,"minLength":0}},"required":["id","label","spanUnit","consecutive"]}}},"required":["weightUnit","sameScaleEvent","groupCoverage","groups","bridgeGroups"]}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"cost-per-mile"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":160},"period":{"type":"string","maxLength":160},"scope":{"type":"string","maxLength":300},"currency":{"type":"string","pattern":"^[A-Z]{3}$","minLength":3,"maxLength":3},"decimalPlaces":{"type":"integer","minimum":0,"maximum":4},"distanceUnit":{"type":"string","enum":["mi","km"]},"totalDistance":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string with at most 3 fractional places and 9 integer digits. Omit unknown values; explicit zero is retained."},"loadedDistance":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string with at most 3 fractional places and 9 integer digits. Omit unknown values; explicit zero is retained."},"emptyDistance":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Nonnegative plain decimal string with at most 3 fractional places and 9 integer digits. Omit unknown values; explicit zero is retained."},"distanceEvidence":{"type":"string","maxLength":400},"costCoverage":{"type":"string","enum":["unknown","partial","complete"]},"costs":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":160},"basis":{"type":"string","enum":["period","per-total-distance","per-loaded-distance","per-empty-distance","percent-revenue"]},"value":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Nonnegative plain decimal string with at most 6 fractional places and 9 integer digits. Omit unknown values; explicit zero is retained."},"evidence":{"type":"string","maxLength":400}},"required":["id","label","basis"]}},"totalRevenue":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,4})?$","description":"Nonnegative plain decimal string with at most 4 fractional places and 9 integer digits. Omit unknown values; explicit zero is retained."},"revenueEvidence":{"type":"string","maxLength":400},"targetMarginPercent":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,2})?$","description":"Nonnegative plain decimal string with at most 2 fractional places and 9 integer digits. Omit unknown values; explicit zero is retained."},"otherTargetRevenue":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,4})?$","description":"Nonnegative plain decimal string with at most 4 fractional places and 9 integer digits. Omit unknown values; explicit zero is retained."},"targetEvidence":{"type":"string","maxLength":400}},"required":["currency","decimalPlaces","distanceUnit","costCoverage","costs"]}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"trade-terms"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":160},"terms":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string","enum":["EXW","FCA","CPT","CIP","DAP","DPU","DDP","FAS","FOB","CFR","CIF"]}},"transport":{"type":"string","enum":["unknown","sea-inland-waterway","other-or-multimodal"]},"handoff":{"type":"string","enum":["unknown","carrier-terminal","alongside-vessel","on-board-vessel","seller-premises","destination"]},"records":{"type":"array","maxItems":3,"items":{"type":"object","additionalProperties":false,"properties":{"code":{"type":"string","enum":["EXW","FCA","CPT","CIP","DAP","DPU","DDP","FAS","FOB","CFR","CIF"]},"namedPlace":{"type":"string","maxLength":400},"deliveryPoint":{"type":"string","maxLength":400},"carriageDestination":{"type":"string","maxLength":400},"unloadingPlan":{"type":"string","maxLength":400},"customsPlan":{"type":"string","maxLength":400},"insuranceEvidence":{"type":"string","maxLength":400},"agreementReference":{"type":"string","maxLength":400}},"required":["code"]}}},"required":["terms","transport","handoff"]}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"box-sizing"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":160},"dimensionUnit":{"type":"string","enum":["in","cm","mm"]},"quantity":{"type":"integer","minimum":1,"maximum":200},"rotation":{"type":"string","enum":["fixed","upright","all"]},"maxLayers":{"type":"integer","minimum":1,"maximum":200},"item":{"type":"object","additionalProperties":false,"properties":{"length":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0},"width":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0},"height":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0}},"required":["length","width","height"]},"padding":{"type":"object","additionalProperties":false,"properties":{"length":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."},"width":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."},"height":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."}},"required":["length","width","height"]},"gap":{"type":"object","additionalProperties":false,"properties":{"length":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."},"width":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."},"height":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."}},"required":["length","width","height"]},"allowanceEvidence":{"type":"string","maxLength":500},"itemEvidence":{"type":"string","maxLength":300},"weightUnit":{"type":"string","enum":["lb","kg"]},"itemWeight":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."},"remainingPackingWeight":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."},"boxes":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","maxLength":160},"inside":{"type":"object","additionalProperties":false,"properties":{"length":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0},"width":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0},"height":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0}},"required":[]},"outside":{"type":"object","additionalProperties":false,"properties":{"length":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0},"width":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0},"height":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values.","exclusiveMinimum":0}},"required":[]},"tareWeight":{"type":"number","minimum":0,"maximum":100000,"description":"Nonnegative value with at most three decimal places. Zero is explicit; omit unknown optional values."},"evidence":{"type":"string","maxLength":300}},"required":["id"]}}},"required":["dimensionUnit","quantity","rotation","maxLayers","item","padding","gap","boxes"]}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"commercial-invoice"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":160},"documentDate":{"type":"string","maxLength":10},"documentType":{"type":"string","enum":["working-record","commercial","proforma"]},"reason":{"type":"string","maxLength":160},"currency":{"type":"string","pattern":"^[A-Z]{3}$","minLength":3,"maxLength":3},"decimalPlaces":{"type":"integer","minimum":0,"maximum":4,"description":"User-selected document rounding precision. This does not validate destination or currency requirements."},"seller":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600},"contact":{"type":"string","maxLength":160}},"required":[]},"buyer":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600},"contact":{"type":"string","maxLength":160}},"required":[]},"shipFrom":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600},"contact":{"type":"string","maxLength":160}},"required":[]},"shipTo":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600},"contact":{"type":"string","maxLength":160}},"required":[]},"packingReference":{"type":"string","maxLength":160},"transportReference":{"type":"string","maxLength":160},"terms":{"type":"string","maxLength":300},"customerCharge":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,4})?$","description":"Plain nonnegative decimal string, at most 4 decimal places and 9 integer digits. Omit unknown values; an explicit zero is preserved."},"itemCoverage":{"type":"string","enum":["unknown","partial","complete"]},"adjustmentCoverage":{"type":"string","enum":["unknown","partial","complete"]},"notes":{"type":"string","maxLength":1500},"items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"},"sku":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":500},"quantity":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Plain nonnegative decimal string, at most 3 decimal places and 9 integer digits. Omit unknown values; an explicit zero is preserved."},"orderQuantity":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,3})?$","description":"Plain nonnegative decimal string, at most 3 decimal places and 9 integer digits. Omit unknown values; an explicit zero is preserved."},"unit":{"type":"string","maxLength":40},"unitValue":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,6})?$","description":"Plain nonnegative decimal string, at most 6 decimal places and 9 integer digits. Omit unknown values; an explicit zero is preserved."},"originCountry":{"type":"string","maxLength":100},"originEvidence":{"type":"string","maxLength":300},"valueEvidence":{"type":"string","maxLength":300},"packingLineId":{"type":"string","maxLength":80},"tariffCode":{"type":"string","maxLength":80},"tariffEvidence":{"type":"string","maxLength":300}},"required":["id"]}},"adjustments":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"},"label":{"type":"string","maxLength":160},"effect":{"type":"string","enum":["add","subtract","included"]},"amount":{"type":"string","maxLength":17,"pattern":"^(0|[1-9][0-9]{0,8})(\\.[0-9]{1,4})?$","description":"Plain nonnegative decimal string, at most 4 decimal places and 9 integer digits. Omit unknown values; an explicit zero is preserved."},"evidence":{"type":"string","maxLength":300}},"required":["id"]}}},"required":["currency","decimalPlaces","items","adjustments"]}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"packing-list"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":160},"shipmentDate":{"type":"string","maxLength":10},"invoiceReference":{"type":"string","maxLength":160},"transportReference":{"type":"string","maxLength":160},"shipper":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600}},"required":[]},"consignee":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600}},"required":[]},"unitCoverage":{"type":"string","enum":["unknown","partial","complete"]},"itemCoverage":{"type":"string","enum":["unknown","partial","complete"]},"unitBasis":{"type":"string","enum":["unknown","outer-only","nested-or-mixed"]},"notes":{"type":"string","maxLength":1500},"handlingUnits":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"packageType":{"type":"string","maxLength":80},"marks":{"type":"string","maxLength":160},"length":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Nonnegative number with at most three decimal places. Omit unknown values."},"width":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Nonnegative number with at most three decimal places. Omit unknown values."},"height":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Nonnegative number with at most three decimal places. Omit unknown values."},"dimensionUnit":{"type":"string","enum":["in","cm"]},"netWeight":{"type":"number","minimum":0,"maximum":1000000000,"description":"Nonnegative number with at most three decimal places. Omit unknown values."},"grossWeight":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Nonnegative number with at most three decimal places. Omit unknown values."},"weightUnit":{"type":"string","enum":["lb","kg"]},"evidence":{"type":"string","maxLength":300}},"required":["id"]}},"items":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"sku":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":300},"unit":{"type":"string","maxLength":40},"expectedQuantity":{"type":"number","minimum":0,"maximum":1000000000,"description":"Nonnegative number with at most three decimal places. Omit unknown values."},"evidence":{"type":"string","maxLength":300}},"required":["id"]}},"allocations":{"type":"array","maxItems":200,"items":{"type":"object","additionalProperties":false,"properties":{"lineId":{"type":"string","minLength":1,"maxLength":40},"handlingUnitId":{"type":"string","minLength":1,"maxLength":40},"quantity":{"type":"number","minimum":0,"maximum":1000000000,"description":"Nonnegative number with at most three decimal places. Omit unknown values."}},"required":["lineId","handlingUnitId"]}}},"required":["handlingUnits","items","allocations"]}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"return-identity"},"values":{"type":"object","additionalProperties":false,"required":["expectedStatus","packingStatus","expected","packed"],"properties":{"reference":{"type":"string","maxLength":200},"expectedStatus":{"type":"string","enum":["complete","incomplete","unknown"]},"packingStatus":{"type":"string","enum":["complete","incomplete","unknown"]},"expected":{"type":"array","minItems":1,"maxItems":100,"description":"One row per expected serialized unit; omitted identifiers remain unknown.","items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"part":{"type":"string","maxLength":100},"serial":{"type":"string","maxLength":100},"evidence":{"type":"string","maxLength":300}}}},"packed":{"type":"array","maxItems":150,"description":"One observed row per serialized unit; duplicate scans are not merged.","items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"part":{"type":"string","maxLength":100},"serial":{"type":"string","maxLength":100},"evidence":{"type":"string","maxLength":300},"carton":{"type":"string","maxLength":80}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"rack-load"},"values":{"type":"object","additionalProperties":false,"required":["weightUnit","inventoryStatus","configurationStatus","levels"],"properties":{"reference":{"type":"string","maxLength":200},"weightUnit":{"type":"string","enum":["lb","kg"]},"inventoryStatus":{"type":"string","enum":["complete","incomplete","unknown"]},"configurationStatus":{"type":"string","enum":["confirmed","changed","unknown"]},"ratingSource":{"type":"string","maxLength":500},"unitLimit":{"type":"number","minimum":0,"maximum":1000000000,"description":"Supplied limit in weightUnit, up to three decimal places. Omit when unknown; zero is an entered zero limit."},"bayLimit":{"type":"number","minimum":0,"maximum":1000000000,"description":"Supplied limit in weightUnit, up to three decimal places. Omit when unknown; zero is an entered zero limit."},"levels":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["id","inventoryStatus","loadPatternStatus","loads"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"inventoryStatus":{"type":"string","enum":["complete","incomplete","unknown"]},"loadPatternStatus":{"type":"string","enum":["confirmed","different","unknown"]},"limit":{"type":"number","minimum":0,"maximum":1000000000,"description":"Supplied limit in weightUnit, up to three decimal places. Omit when unknown; zero is an entered zero limit."},"ratingSource":{"type":"string","maxLength":500},"loads":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"weight":{"type":"number","minimum":0.001,"maximum":1000000000,"description":"Complete pallet or handling-unit gross weight in weightUnit. Omit when unknown."},"source":{"type":"string","maxLength":500}}}}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"supplier-weight"},"values":{"type":"object","additionalProperties":false,"required":["rows","inventoryStatus","outputUnit"],"properties":{"reference":{"type":"string","maxLength":300},"rows":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","rateUnit"],"properties":{"id":{"type":"string","minLength":1,"maxLength":80},"description":{"type":"string","maxLength":300},"quantity":{"type":"integer","minimum":1,"maximum":1000000,"description":"Number of identical pieces in THIS row. Omit if unknown. Match panels versus bundles to the supplied weight basis."},"rateUnit":{"type":"string","enum":["kg/piece","lb/piece","kg/m","lb/ft","kg/m2","lb/ft2","lb/1000ft2"]},"rateValue":{"type":"number","minimum":0.000001,"maximum":1000000000,"description":"Positive supplied value, up to six decimals. Omit when unknown."},"length":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension for ONE piece in dimensionUnit, up to six decimals. Omit when unknown."},"width":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension for ONE piece in dimensionUnit, up to six decimals. Omit when unknown."},"dimensionUnit":{"type":"string","enum":["mm","cm","m","in","ft"]},"weightSource":{"type":"string","maxLength":500},"measureSource":{"type":"string","maxLength":500}}}},"inventoryStatus":{"type":"string","enum":["unknown","partial","complete"],"description":"Your confirmation that these rows cover all shipment items. Partial or unknown withholds the complete item and gross totals."},"outputUnit":{"type":"string","enum":["kg","lb"]},"packingMass":{"type":"number","minimum":0,"maximum":1000000000,"description":"Additional packing mass for the WHOLE shipment, excluding packing already in supplied item weights. Zero is explicit; omit if unknown."},"packingUnit":{"type":"string","enum":["kg","lb"]},"packingSource":{"type":"string","maxLength":500}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"temperature-ranges"},"values":{"type":"object","additionalProperties":false,"required":["rows","outputUnit"],"properties":{"reference":{"type":"string","maxLength":300},"outputUnit":{"type":"string","enum":["C","F"]},"rows":{"type":"array","minItems":2,"maxItems":20,"items":{"type":"object","additionalProperties":false,"required":["id","unit","subject"],"properties":{"id":{"type":"string","maxLength":60,"minLength":1},"label":{"type":"string","maxLength":200},"low":{"type":"number","minimum":-459.67,"maximum":1832,"description":"Up to three decimal places; unit-specific limits are absolute zero through 1000°C / 1832°F. Omit an unknown bound."},"high":{"type":"number","minimum":-459.67,"maximum":1832,"description":"Up to three decimal places; unit-specific limits are absolute zero through 1000°C / 1832°F. Omit an unknown bound."},"unit":{"type":"string","enum":["C","F"]},"subject":{"type":"string","enum":["transport-air","product-temperature","storage-air","unknown"]},"source":{"type":"string","maxLength":500},"context":{"type":"string","maxLength":500}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"bulk-weight"},"values":{"type":"object","additionalProperties":false,"required":["materialForm","volumeUnit","quantity","densityBasis","densityUnit","conditionMatch","outputUnit"],"properties":{"materialForm":{"type":"string","enum":["liquid","loose-bulk","compacted-bulk","supplier-bulk"],"description":"Select supplier-bulk for a volume stated on the supplier’s stated bulk-volume conversion basis. Use loose-bulk or compacted-bulk for a documented loose or compacted volume."},"volume":{"type":"number","minimum":0.000001,"maximum":1000000000,"description":"Up to six decimal places. Omit when unknown."},"volumeUnit":{"type":"string","enum":["L","us-gal","imp-gal","m3","ft3","yd3","us-bu"]},"bushelBasis":{"type":"string","enum":["unknown","physical_volume","weight_equivalent"],"description":"For volumeUnit us-bu, physical_volume must explicitly identify actual US dry volume (level measure). Unknown, omitted or weight_equivalent withholds volume and mass. Other volume units do not use this field."},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"density":{"type":"number","minimum":0.000001,"maximum":10000000,"description":"Up to six decimal places. Omit when unknown."},"densityHigh":{"type":"number","minimum":0.000001,"maximum":10000000,"description":"Up to six decimal places. Omit when unknown."},"densityUnit":{"type":"string","enum":["kg/m3","g/cm3","lb/ft3","lb/yd3","lb/us-gal","lb/imp-gal","lb/us-bu"]},"densityMeasureBasis":{"type":"string","enum":["unknown","physical_volume","weight_equivalent"],"description":"For densityUnit lb/us-bu, physical_volume must explicitly identify mass per physical US dry-bushel volume. Unknown, omitted or weight_equivalent withholds density and mass. A marketed crop pounds-per-bushel factor is not this measurement. Other density units do not use this field."},"densityBasis":{"type":"string","enum":["liquid","loose-bulk","compacted-bulk","supplier-bulk","particle-solid","unknown"],"description":"Choose the volume basis documented by the density source. A supplier-bulk rate applies only to that supplier’s corresponding volume basis."},"conditionMatch":{"type":"string","enum":["confirmed","unknown"],"description":"User confirmation that volume and density describe the same material and condition, including temperature/moisture/compaction as relevant. Not independently verified."},"packingMass":{"type":"number","minimum":0,"maximum":1000000000,"description":"Up to six decimal places. Omit when unknown."},"packingUnit":{"type":"string","enum":["kg","lb"]},"outputUnit":{"type":"string","enum":["kg","lb","t","us-ton"]},"reference":{"type":"string","maxLength":300},"material":{"type":"string","maxLength":300},"volumeSource":{"type":"string","maxLength":500},"densitySource":{"type":"string","maxLength":500},"condition":{"type":"string","maxLength":500},"packingSource":{"type":"string","maxLength":500}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"bol-draft"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":160},"shipmentDate":{"type":"string","maxLength":10},"shipper":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600},"contact":{"type":"string","maxLength":160},"phone":{"type":"string","maxLength":80}}},"consignee":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600},"contact":{"type":"string","maxLength":160},"phone":{"type":"string","maxLength":80}}},"billTo":{"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","maxLength":160},"address":{"type":"string","maxLength":600},"contact":{"type":"string","maxLength":160},"phone":{"type":"string","maxLength":80}}},"carrier":{"type":"string","maxLength":160},"service":{"type":"string","maxLength":160},"quoteReference":{"type":"string","maxLength":160},"proNumber":{"type":"string","maxLength":160},"purchaseOrders":{"type":"string","maxLength":500},"paymentTerms":{"type":"string","enum":["unknown","prepaid","collect"]},"inventoryStatus":{"type":"string","enum":["unknown","partial","complete"]},"packageCountsBasis":{"type":"string","enum":["unknown","disjoint","shared"]},"declaredPackageCount":{"type":"integer","minimum":1,"maximum":1000000},"hazmat":{"type":"string","enum":["unknown","no","yes"]},"instructions":{"type":"string","maxLength":2000},"termsReference":{"type":"string","maxLength":1000},"valueInstructions":{"type":"string","maxLength":600},"handlingUnits":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"packageType":{"type":"string","maxLength":80},"grossWeight":{"type":"number","minimum":0.000001,"maximum":10000000},"weightUnit":{"type":"string","enum":["lb","kg"]},"length":{"type":"number","minimum":0.000001,"maximum":10000000},"width":{"type":"number","minimum":0.000001,"maximum":10000000},"height":{"type":"number","minimum":0.000001,"maximum":10000000},"dimensionUnit":{"type":"string","enum":["in","cm"]},"evidence":{"type":"string","maxLength":500}},"required":["id"]}},"lines":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"description":{"type":"string","maxLength":600},"packageCount":{"type":"integer","minimum":1,"maximum":1000000},"packageType":{"type":"string","maxLength":80},"handlingUnitIds":{"type":"array","maxItems":30,"items":{"type":"string","minLength":1,"maxLength":40}},"grossWeight":{"type":"number","minimum":0.000001,"maximum":10000000},"weightUnit":{"type":"string","enum":["lb","kg"]},"nmfc":{"type":"string","maxLength":80},"freightClass":{"type":"string","maxLength":40},"classificationSource":{"type":"string","maxLength":500}},"required":["id"]}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"material-weight"},"values":{"type":"object","additionalProperties":false,"required":["shape","dimensions","dimensionUnit","quantity","densityUnit","outputUnit"],"properties":{"shape":{"type":"string","enum":["rectangular-solid","round-solid","rectangular-tube","round-tube"]},"dimensions":{"type":"object","additionalProperties":false,"properties":{"length":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension in the selected unit, up to six decimal places. Omit when unknown."},"width":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension in the selected unit, up to six decimal places. Omit when unknown."},"height":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension in the selected unit, up to six decimal places. Omit when unknown."},"diameter":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension in the selected unit, up to six decimal places. Omit when unknown."},"innerWidth":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension in the selected unit, up to six decimal places. Omit when unknown."},"innerHeight":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension in the selected unit, up to six decimal places. Omit when unknown."},"innerDiameter":{"type":"number","minimum":0.000001,"maximum":1000000,"description":"Positive dimension in the selected unit, up to six decimal places. Omit when unknown."}}},"dimensionUnit":{"type":"string","enum":["ft","in","cm","mm","m"]},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"densityReferenceId":{"type":"string","minLength":1,"maxLength":120,"description":"Exact ID returned by search_material_density_references or /api/catalog. Use its densityUnit, permitted shape and volume basis. Omit density and densitySource with an ID. Verify the product and condition match the actual stock."},"density":{"type":"number","minimum":0.000001,"maximum":10000000,"description":"Density of the material represented by the modeled volume, in densityUnit. Up to six decimals. Omit when unknown."},"densityUnit":{"type":"string","enum":["kg/m3","g/cm3","lb/ft3","lb/in3"]},"outputUnit":{"type":"string","enum":["kg","lb"]},"packingMass":{"type":"number","minimum":0,"maximum":1000000000,"description":"Packing mass for the WHOLE group, not each piece. Up to six decimals. Omit when unknown; zero is explicit."},"packingUnit":{"type":"string","enum":["kg","lb"]},"reference":{"type":"string","maxLength":300},"material":{"type":"string","maxLength":300},"dimensionSource":{"type":"string","maxLength":500},"densitySource":{"type":"string","maxLength":500},"packingSource":{"type":"string","maxLength":500}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"fuel-terms"},"values":{"type":"object","additionalProperties":false,"required":["scope","scopeConfirmation","currency","baselineId","scenarios"],"properties":{"scope":{"type":"string","maxLength":300,"minLength":1},"scopeConfirmation":{"type":"string","enum":["confirmed","unknown"],"description":"Your confirmation that the scenarios describe the same shipment and service scope."},"currency":{"type":"string","enum":["USD","CAD","EUR","GBP"],"description":"One currency for every entered amount and rate. No currency conversion."},"shipmentDate":{"type":"string","maxLength":10,"description":"Real date in YYYY-MM-DD, from 1900 through 2100. Effective endpoints are inclusive for this review."},"baselineId":{"type":"string","maxLength":80,"minLength":1},"scenarios":{"type":"array","minItems":1,"maxItems":12,"items":{"type":"object","additionalProperties":false,"required":["id","basis","rounding","applicability"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"label":{"type":"string","maxLength":200},"basis":{"type":"string","enum":["percentage","distance"]},"eligibleBase":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the selected currency, at most two decimals. Omit when unknown; zero is explicit."},"percent":{"type":"number","minimum":0,"maximum":10000,"description":"Supplied percentage, up to six decimals. Percentage basis only."},"distance":{"type":"number","minimum":0,"maximum":1000000,"description":"Supplied chargeable distance, up to three decimals. Distance basis only."},"distanceUnit":{"type":"string","enum":["mi","km"]},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"Currency units per rateUnit, up to six decimals. Distance basis only."},"rateUnit":{"type":"string","enum":["mi","km"]},"rounding":{"type":"string","enum":["nearest-cent","up-cent","down-cent"],"description":"Round each fuel amount to a minor currency unit using the chosen rule. Nearest rounds a half cent upward."},"applicability":{"type":"string","enum":["confirmed","unknown","not-applicable"],"description":"Your review of the supplied terms for this scenario, not validation by Waybill House. Confirmed requires source."},"source":{"type":"string","maxLength":500},"program":{"type":"string","maxLength":200},"dateBasis":{"type":"string","maxLength":200},"referenceDate":{"type":"string","maxLength":10,"description":"Real date in YYYY-MM-DD, from 1900 through 2100. Effective endpoints are inclusive for this review."},"effectiveFrom":{"type":"string","maxLength":10,"description":"Real date in YYYY-MM-DD, from 1900 through 2100. Effective endpoints are inclusive for this review."},"effectiveThrough":{"type":"string","maxLength":10,"description":"Real date in YYYY-MM-DD, from 1900 through 2100. Effective endpoints are inclusive for this review."}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"accessorial-review"},"values":{"type":"object","additionalProperties":false,"required":["scope","currency","coverage","base","fuel","charges"],"properties":{"scope":{"type":"string","maxLength":500,"minLength":1},"reference":{"type":"string","maxLength":200},"currency":{"type":"string","enum":["USD","CAD","EUR","GBP"]},"coverage":{"type":"string","enum":["complete","incomplete","unknown"],"description":"Your review that all needed service rows are listed, including unresolved ones. Incomplete/unknown lists withhold the selected-scope total."},"base":{"type":"object","additionalProperties":false,"properties":{"amount":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the one selected currency, up to two decimals. Omit unknown amounts; zero is explicit."},"source":{"type":"string","maxLength":500}}},"fuel":{"type":"object","additionalProperties":false,"properties":{"amount":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the one selected currency, up to two decimals. Omit unknown amounts; zero is explicit."},"source":{"type":"string","maxLength":500}}},"quotedTotal":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the one selected currency, up to two decimals. Omit unknown amounts; zero is explicit."},"charges":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["id","name","stage","requirement","pricing"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"name":{"type":"string","maxLength":120,"minLength":1},"stage":{"type":"string","enum":["pickup","delivery","shipment"]},"requirement":{"type":"string","enum":["required","not-required","unknown"]},"pricing":{"type":"string","enum":["additional","included","waived","unknown"]},"source":{"type":"string","maxLength":500},"conditions":{"type":"string","maxLength":500},"basis":{"type":"string","enum":["flat","per-unit"]},"amount":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the one selected currency, up to two decimals. Omit unknown amounts; zero is explicit."},"quantity":{"type":"number","minimum":0,"maximum":1000000,"description":"Chargeable units, up to three decimals. Already expressed in the supplied rate unit; no weight or time conversion."},"unit":{"type":"string","maxLength":80},"rate":{"type":"number","minimum":0,"maximum":1000000,"description":"Currency per unit, up to six decimals."},"minimum":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the one selected currency, up to two decimals. Omit unknown amounts; zero is explicit."},"maximum":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the one selected currency, up to two decimals. Omit unknown amounts; zero is explicit."},"rounding":{"type":"string","enum":["nearest-cent","up-cent","down-cent"]}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"shipment-density-total"},"values":{"type":"object","additionalProperties":false,"required":["grossWeight","weightUnit","units"],"properties":{"grossWeight":{"type":"number","minimum":0.000001,"maximum":1000000000,"description":"One gross weight covering every listed unit and all packing, entered once."},"weightUnit":{"type":"string","enum":["lb","kg"]},"reference":{"type":"string","maxLength":200,"pattern":"^[^\\u0000-\\u001f\\u007f]*$","description":"Optional source of the shipment gross weight."},"units":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","length","width","height","unit","quantity"],"properties":{"id":{"type":"string","minLength":1,"maxLength":100,"allOf":[{"pattern":"^[^\\u0000-\\u001f\\u007f]*$"},{"pattern":"\\S"}]},"length":{"type":"number","minimum":0.000001,"maximum":1000000000},"width":{"type":"number","minimum":0.000001,"maximum":1000000000},"height":{"type":"number","minimum":0.000001,"maximum":1000000000},"unit":{"type":"string","enum":["in","cm"],"description":"Unit of all three outside dimensions for this row."},"quantity":{"type":"integer","minimum":1,"maximum":10000,"description":"Number of handling units sharing these outside dimensions. Their weights may differ."},"evidence":{"type":"string","maxLength":1000,"pattern":"^[^\\u0000-\\u001f\\u007f]*$"}}},"description":"One row per outside envelope or group sharing dimensions. Row IDs must be unique after trimming and ignoring case."}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"ltl-weight-break"},"values":{"type":"object","additionalProperties":false,"required":["actualWeightLb","breakWeightLb","baseRatePerCwt","breakRatePerCwt","currency"],"properties":{"actualWeightLb":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"multipleOf":0.001,"description":"Measured physical gross weight of the packed shipment in pounds."},"baseChargeableWeightLb":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"multipleOf":0.001,"description":"Separate starting chargeable weight when supplied by the provider. Omit to use the measured physical weight for the starting calculation."},"breakWeightLb":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"multipleOf":0.001,"description":"Higher billing break in pounds from the supplied terms. Must exceed the starting chargeable weight."},"baseRatePerCwt":{"type":"number","minimum":0,"maximum":100000,"multipleOf":0.0001,"description":"Supplied rate per US hundredweight (100 lb) applicable at the starting chargeable weight."},"breakRatePerCwt":{"type":"number","minimum":0,"maximum":100000,"multipleOf":0.0001,"description":"Supplied rate per US hundredweight at the higher billing break."},"minimumCharge":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Common minimum linehaul charge for either basis. Omit when unknown. Enter zero for a confirmed absence of a minimum."},"currency":{"type":"string","enum":["USD","CAD","MXN"]},"reference":{"type":"string","maxLength":200,"description":"Optional quote, rate sheet or carrier confirmation reference."},"higherBreakStatus":{"type":"string","enum":["confirmed","unconfirmed"],"default":"unconfirmed","description":"Whether the supplied terms confirm this higher break may be used for this shipment."}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"quote-services"},"values":{"type":"object","additionalProperties":false,"required":["a","b","services","scopeConfirmed","coverageComplete"],"properties":{"a":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":200},"base":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied USD amount. Omit when unknown. Enter 0 for a confirmed zero."},"fuel":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied USD amount. Omit when unknown. Enter 0 for a confirmed zero."},"other":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied total of other USD charges outside the required service rows. Omit when unknown."}}},"b":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":200},"base":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied USD amount. Omit when unknown. Enter 0 for a confirmed zero."},"fuel":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied USD amount. Omit when unknown. Enter 0 for a confirmed zero."},"other":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied total of other USD charges outside the required service rows. Omit when unknown."}}},"services":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["id","name","a","b"],"properties":{"id":{"type":"string","minLength":1,"maxLength":80,"pattern":"\\S"},"name":{"type":"string","minLength":1,"maxLength":120,"pattern":"\\S"},"a":{"type":"object","additionalProperties":false,"required":["status"],"properties":{"status":{"type":"string","enum":["unpriced","included","additional","unavailable"],"description":"Use unavailable when the provider cannot perform this service. Use unpriced when its price is unknown."},"amount":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied USD amount. Omit when unknown. Enter 0 for a confirmed zero."}},"if":{"required":["amount"]},"then":{"properties":{"status":{"const":"additional"}}}},"b":{"type":"object","additionalProperties":false,"required":["status"],"properties":{"status":{"type":"string","enum":["unpriced","included","additional","unavailable"],"description":"Use unavailable when the provider cannot perform this service. Use unpriced when its price is unknown."},"amount":{"type":"number","minimum":0,"maximum":1000000000,"multipleOf":0.01,"description":"Supplied USD amount. Omit when unknown. Enter 0 for a confirmed zero."}},"if":{"required":["amount"]},"then":{"properties":{"status":{"const":"additional"}}}}}},"description":"One shared row per required service. IDs must be unique ignoring case and surrounding spaces."},"scopeConfirmed":{"type":"boolean","description":"Both providers quoted the same shipment and service scope."},"coverageComplete":{"type":"boolean","description":"Every required service is listed, including any still awaiting a price. An empty list means none are required only when confirmed."}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"detention-review"},"values":{"type":"object","additionalProperties":false,"required":["currency","events","scenarios"],"properties":{"reference":{"type":"string","maxLength":200},"currency":{"type":"string","enum":["USD","CAD","EUR","GBP"]},"events":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"label":{"type":"string","maxLength":200},"timestamp":{"type":"string","maxLength":25,"description":"Minute-precision ISO timestamp with an explicit offset, for example 2026-11-23T09:00-05:00. Omit an unknown time."},"source":{"type":"string","maxLength":500}}}},"scenarios":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","maxLength":80,"minLength":1},"label":{"type":"string","maxLength":200},"startEventId":{"type":"string","maxLength":80},"endEventId":{"type":"string","maxLength":80},"freeMinutes":{"type":"integer","minimum":0,"maximum":44640},"incrementMinutes":{"type":"integer","minimum":1,"maximum":1440},"hourlyRate":{"type":"number","minimum":0,"maximum":1000000},"minimumMode":{"type":"string","enum":["unknown","none","amount"]},"minimumAmount":{"type":"number","minimum":0,"maximum":1000000000},"capMode":{"type":"string","enum":["unknown","none","amount"]},"capAmount":{"type":"number","minimum":0,"maximum":1000000000},"rounding":{"type":"string","enum":["nearest-cent","up-cent","down-cent"]},"termsStatus":{"type":"string","enum":["unknown","confirmed","not-applicable"]},"rulesScope":{"type":"string","enum":["unknown","modeled","other"]},"source":{"type":"string","maxLength":500}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"staging-timeline"},"values":{"type":"object","additionalProperties":false,"required":["start","end","capacity","positionBasis","loads"],"properties":{"reference":{"type":"string","maxLength":200},"start":{"type":"string","maxLength":25,"description":"Minute-precision ISO time with explicit offset, e.g. 2026-11-23T08:00-05:00 or 2026-11-23T13:00Z. Optional seconds must be :00. No local/ambiguous times."},"end":{"type":"string","maxLength":25,"description":"Minute-precision ISO time with explicit offset, e.g. 2026-11-23T08:00-05:00 or 2026-11-23T13:00Z. Optional seconds must be :00. No local/ambiguous times."},"capacity":{"type":"integer","minimum":0,"maximum":1000000},"positionBasis":{"type":"string","minLength":1,"maxLength":300},"capacitySource":{"type":"string","maxLength":300},"loads":{"type":"array","maxItems":200,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","minLength":1,"maxLength":80},"reference":{"type":"string","maxLength":200},"positions":{"type":"integer","minimum":0,"maximum":1000000},"start":{"type":"string","maxLength":25,"description":"Minute-precision ISO time with explicit offset, e.g. 2026-11-23T08:00-05:00 or 2026-11-23T13:00Z. Optional seconds must be :00. No local/ambiguous times."},"end":{"type":"string","maxLength":25,"description":"Minute-precision ISO time with explicit offset, e.g. 2026-11-23T08:00-05:00 or 2026-11-23T13:00Z. Optional seconds must be :00. No local/ambiguous times."},"source":{"type":"string","maxLength":300}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"container-fit"},"values":{"type":"object","additionalProperties":false,"required":["quantity","rotation","maxLayers","doorMode","space","unit"],"properties":{"reference":{"type":"string","maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":1000000},"rotation":{"type":"string","enum":["fixed","quarter-turn"]},"maxLayers":{"type":"integer","minimum":1,"maximum":10000},"doorMode":{"type":"string","enum":["individual","stacked"]},"space":{"type":"object","additionalProperties":false,"required":["length","width","height","dimensionUnit"],"properties":{"length":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"width":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"height":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"doorWidth":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"doorHeight":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"dimensionUnit":{"type":"string","enum":["mm","cm","in"]},"availablePayload":{"type":"number","minimum":0,"maximum":1000000000,"description":"Mass with up to six decimal places. Omit when unknown. Available payload must already exclude other cargo, packing and securing materials."},"weightUnit":{"type":"string","enum":["kg","lb"]},"evidence":{"type":"string","maxLength":300}}},"unit":{"type":"object","additionalProperties":false,"required":["length","width","height","dimensionUnit"],"properties":{"length":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"width":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"height":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"Positive dimension, up to six decimal places. Use the complete packed unit or the usable space after your required allowances."},"dimensionUnit":{"type":"string","enum":["mm","cm","in"]},"grossWeight":{"type":"number","minimum":0,"maximum":1000000000,"description":"Mass with up to six decimal places. Omit when unknown. Available payload must already exclude other cargo, packing and securing materials.","exclusiveMinimum":0},"weightUnit":{"type":"string","enum":["kg","lb"]},"evidence":{"type":"string","maxLength":300}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"measurement-comparison"},"values":{"type":"object","additionalProperties":false,"required":["scope","shipper","inspection"],"properties":{"scope":{"type":"string","minLength":1,"maxLength":300},"shipper":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","unitId"],"properties":{"id":{"type":"string","maxLength":40},"unitId":{"type":"string","maxLength":80},"count":{"type":"integer","minimum":1,"maximum":10000},"length":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"width":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"height":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"dimensionUnit":{"type":"string","enum":["in","cm"]},"grossWeight":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"weightUnit":{"type":"string","enum":["lb","kg"]},"weightBasis":{"type":"string","enum":["per-unit","row-total","unknown"]},"measuredAt":{"type":"string","maxLength":100},"evidence":{"type":"string","maxLength":300},"packageNotes":{"type":"string","maxLength":300}}}},"inspection":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","unitId"],"properties":{"id":{"type":"string","maxLength":40},"unitId":{"type":"string","maxLength":80},"count":{"type":"integer","minimum":1,"maximum":10000},"length":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"width":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"height":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"dimensionUnit":{"type":"string","enum":["in","cm"]},"grossWeight":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Positive recorded value with at most nine decimal places. Omit when unknown; do not enter zero."},"weightUnit":{"type":"string","enum":["lb","kg"]},"weightBasis":{"type":"string","enum":["per-unit","row-total","unknown"]},"measuredAt":{"type":"string","maxLength":100},"evidence":{"type":"string","maxLength":300},"packageNotes":{"type":"string","maxLength":300},"packageComparison":{"type":"string","enum":["same","changed","unknown"],"description":"Your review of this record against the linked shipper record: same complete package and dimension axes, changed package, or not yet established. Defaults to unknown."}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"quantity-reconciliation"},"values":{"type":"object","additionalProperties":false,"required":["scope","snapshotDate","packing","tallies"],"properties":{"scope":{"type":"string","minLength":1,"maxLength":300},"snapshotDate":{"type":"string","minLength":10,"maxLength":10},"packing":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","sku","unit"],"properties":{"id":{"type":"string","maxLength":40},"sku":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":200},"unit":{"type":"string","maxLength":40},"shipped":{"type":"number","minimum":0,"maximum":1000000000,"description":"Nonnegative quantity with at most three decimals. Omit if unknown. Zero means a recorded zero."},"evidence":{"type":"string","maxLength":300}}}},"tallies":{"type":"array","maxItems":150,"description":"One cumulative count per packing line at this snapshot, not individual receipt events. Duplicate links are retained for review, never summed.","items":{"type":"object","additionalProperties":false,"required":["id","countStatus"],"properties":{"id":{"type":"string","maxLength":40},"lineId":{"type":"string","maxLength":40},"sku":{"type":"string","maxLength":100},"unit":{"type":"string","maxLength":40},"countStatus":{"type":"string","enum":["complete","partial","not-counted"]},"received":{"type":"number","minimum":0,"maximum":1000000000,"description":"Nonnegative quantity with at most three decimals. Omit if unknown. Zero means a recorded zero."},"damaged":{"type":"number","minimum":0,"maximum":1000000000,"description":"Nonnegative quantity with at most three decimals. Omit if unknown. Zero means a recorded zero."},"evidence":{"type":"string","maxLength":300}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"invoice-reconciliation"},"values":{"type":"object","additionalProperties":false,"required":["scope","snapshotDate","shipments","documents"],"properties":{"scope":{"type":"string","minLength":1,"maxLength":300},"snapshotDate":{"type":"string","minLength":10,"maxLength":10},"shipments":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id"],"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"reference":{"type":"string","maxLength":200},"expectedIssuer":{"type":"string","maxLength":120},"expectedCurrency":{"type":"string","enum":["USD","CAD","EUR","GBP"]}}}},"documents":{"type":"array","maxItems":200,"items":{"type":"object","additionalProperties":false,"required":["id","kind"],"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"shipmentId":{"type":"string","maxLength":40},"issuer":{"type":"string","maxLength":120},"number":{"type":"string","maxLength":100},"kind":{"type":"string","enum":["invoice","credit","debit"]},"currency":{"type":"string","enum":["USD","CAD","EUR","GBP"]},"amount":{"type":"number","minimum":0,"maximum":1000000000,"description":"Nonnegative document amount, at most two decimals. Credit amounts are subtracted. Omit when unknown."},"replaces":{"type":"string","maxLength":40},"appliesTo":{"type":"string","maxLength":40},"evidence":{"type":"string","maxLength":300}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"freight-allocation"},"values":{"type":"object","additionalProperties":false,"required":["basis","currency","sharedCost","rows"],"properties":{"reference":{"type":"string","maxLength":200},"basis":{"type":"string","enum":["units","weight","volume","value"]},"currency":{"type":"string","enum":["USD","CAD","EUR","GBP"]},"weightUnit":{"type":"string","enum":["lb","kg"]},"volumeUnit":{"type":"string","enum":["ft3","m3"]},"sharedCost":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the selected currency, with at most two decimal places. Enter zero only when assigning no amount."},"rows":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","units","directCost"],"properties":{"id":{"type":"string","minLength":1,"maxLength":40},"description":{"type":"string","maxLength":200},"units":{"type":"integer","minimum":1,"maximum":1000000000},"weight":{"type":"number","minimum":0.000001,"maximum":1000000000,"description":"Total for this entire row, not per unit. Up to six decimal places."},"volume":{"type":"number","minimum":0.000001,"maximum":1000000000,"description":"Total for this entire row, not per unit. Up to six decimal places."},"value":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the selected currency, with at most two decimal places. Enter zero only when assigning no amount."},"directCost":{"type":"number","minimum":0,"maximum":1000000000,"description":"Amount in the selected currency, with at most two decimal places. Enter zero only when assigning no amount."}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"receiving-plan"},"values":{"type":"object","additionalProperties":false,"properties":{"reference":{"type":"string","maxLength":200},"shipment":{"type":"string","maxLength":1500},"siteNotes":{"type":"string","maxLength":1500},"placementDetails":{"type":"string","maxLength":1000},"hours":{"type":"string","maxLength":500},"onwardPlan":{"type":"string","maxLength":1000},"timingDetails":{"type":"string","maxLength":1000},"siteKind":{"type":"string","enum":["unknown","business","home","jobsite","institution","other"],"description":"Destination type"},"equipment":{"type":"string","enum":["unknown","dock","forklift","both","none"],"description":"Equipment available at delivery"},"placement":{"type":"string","enum":["unknown","dock","ground","threshold","inside","other"],"description":"Requested placement point"},"timingNeed":{"type":"string","enum":["unknown","ordinary","notice","appointment","deadline"],"description":"Delivery timing needed"},"confirmations":{"type":"object","additionalProperties":false,"properties":{"unloading":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["unknown","requested","confirmed","declined","needs-review"]},"reference":{"type":"string","maxLength":500},"scope":{"type":"string","maxLength":1000}}},"placement":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["unknown","requested","confirmed","declined","needs-review"]},"reference":{"type":"string","maxLength":500},"scope":{"type":"string","maxLength":1000}}},"access":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["unknown","requested","confirmed","declined","needs-review"]},"reference":{"type":"string","maxLength":500},"scope":{"type":"string","maxLength":1000}}},"timing":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["unknown","requested","confirmed","declined","needs-review"]},"reference":{"type":"string","maxLength":500},"scope":{"type":"string","maxLength":1000}}},"price":{"type":"object","additionalProperties":false,"properties":{"status":{"type":"string","enum":["unknown","requested","confirmed","declined","needs-review"]},"reference":{"type":"string","maxLength":500},"scope":{"type":"string","maxLength":1000}}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"quote-completeness"},"values":{"type":"object","additionalProperties":false,"required":["facts","services"],"properties":{"reference":{"type":"string","maxLength":200},"facts":{"type":"object","additionalProperties":false,"properties":{"lane":{"type":"string","enum":["confirmed","unknown"],"description":"Origin and destination, including location type"},"date":{"type":"string","enum":["confirmed","unknown"],"description":"Shipment date and quote validity"},"goods":{"type":"string","enum":["confirmed","unknown"],"description":"Commodity and actual packaging"},"measurements":{"type":"string","enum":["confirmed","unknown"],"description":"Final dimensions, gross weights and unit count"},"classification":{"type":"string","enum":["confirmed","unknown"],"description":"Classification or contractual rating basis"},"service":{"type":"string","enum":["confirmed","unknown"],"description":"Service level, timing and delivery placement"},"terms":{"type":"string","enum":["confirmed","unknown"],"description":"Payer, applicable agreement and exclusions"}}},"base":{"type":"number","minimum":0,"maximum":1000000000,"description":"USD amount, up to two decimal places. Omit when unknown; zero is a confirmed zero."},"fuel":{"type":"number","minimum":0,"maximum":1000000000,"description":"USD amount, up to two decimal places. Omit when unknown; zero is a confirmed zero."},"quotedTotal":{"type":"number","minimum":0,"maximum":1000000000,"description":"USD amount, up to two decimal places. Omit when unknown; zero is a confirmed zero."},"services":{"type":"array","maxItems":30,"items":{"type":"object","additionalProperties":false,"required":["name","requirement","pricing"],"properties":{"name":{"type":"string","minLength":1,"maxLength":100},"requirement":{"type":"string","enum":["required","not-required","unknown"]},"pricing":{"type":"string","enum":["additional","included","unknown"]},"amount":{"type":"number","minimum":0,"maximum":1000000000,"description":"USD amount, up to two decimal places. Omit when unknown; zero is a confirmed zero."}}}}}}}},{"type":"object","required":["workflow","values"],"additionalProperties":false,"properties":{"workflow":{"const":"shipment-packet"},"values":{"type":"object","additionalProperties":false,"required":["stage","units","records"],"properties":{"stage":{"type":"string","enum":["before-pickup","after-delivery","invoice-review"]},"reference":{"type":"string","maxLength":200},"commodity":{"type":"string","maxLength":1000},"shipmentDate":{"type":"string","maxLength":10},"quotedTotal":{"type":"number","minimum":0,"maximum":1000000000,"description":"USD amount, up to two decimal places. Omit when unknown; zero is a confirmed zero."},"billedTotal":{"type":"number","minimum":0,"maximum":1000000000,"description":"USD amount, up to two decimal places. Omit when unknown; zero is a confirmed zero."},"units":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["length","width","height","weight"],"properties":{"id":{"type":"string","maxLength":100},"length":{"type":"number","minimum":0.000001,"maximum":1000000000},"width":{"type":"number","minimum":0.000001,"maximum":1000000000},"height":{"type":"number","minimum":0.000001,"maximum":1000000000},"weight":{"type":"number","minimum":0.000001,"maximum":1000000000},"quantity":{"type":"integer","minimum":1,"maximum":10000,"default":1},"unit":{"type":"string","enum":["in","cm"],"default":"in"},"weightUnit":{"type":"string","enum":["lb","kg"],"default":"lb"}}}},"records":{"type":"array","maxItems":10,"items":{"type":"object","additionalProperties":false,"required":["kind","status"],"properties":{"kind":{"type":"string","enum":["quote","measurements","packing","bol","pickup","delivery","invoice","carrier","agreement","correspondence"]},"status":{"type":"string","enum":["available","missing","not-applicable"]},"reference":{"type":"string","maxLength":500},"notes":{"type":"string","maxLength":1000}}}}}}}}]},"examples":{"ltlWeightBreak":{"summary":"Compare a 480 lb starting weight and a 500 lb pricing break with a common minimum","value":{"workflow":"ltl-weight-break","values":{"actualWeightLb":480,"breakWeightLb":500,"baseRatePerCwt":30,"breakRatePerCwt":27,"minimumCharge":140,"currency":"USD","higherBreakStatus":"confirmed"}}}}}}},"responses":{"200":{"description":"Structured result for the requested workflow. Weight-break comparisons return both rating bases, linehaul and charge amounts in integer cents, and any unresolved terms."},"400":{"description":"Invalid inputs"},"413":{"description":"Body exceeds 64 KiB"}}}},"/api/catalog":{"get":{"operationId":"listFreightTools","responses":{"200":{"description":"Catalog, schemas, dated product-specific material density references and MCP tool definitions"}}}},"/mcp":{"servers":[{"url":"https://waybill-house.stevemod43.chatgpt.site"}],"post":{"operationId":"mcp","summary":"Stateless JSON-RPC MCP endpoint","responses":{"200":{"description":"MCP response"},"400":{"description":"Invalid protocol request"}}}}}}