Skip to content
HALOWERK

Trade Operations

lot sampling second stage

Double sampling evaluates a second dependent sample only when the first sample falls between acceptance and rejection counts. Use it when an agent needs comparing two-stage inspection plans.

POST https://handel.halowerk.com/v1/lot-sampling-second-stage

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
lotintegerYes
defectsintegerYes
firstintegerYes
secondintegerYes
early_acceptintegerYes
early_rejectintegerYes
final_acceptintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "lot": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "defects": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "first": {
      "type": "integer",
      "minimum": 1,
      "maximum": 150
    },
    "second": {
      "type": "integer",
      "minimum": 1,
      "maximum": 150
    },
    "early_accept": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "early_reject": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    },
    "final_accept": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000
    }
  },
  "required": [
    "lot",
    "defects",
    "first",
    "second",
    "early_accept",
    "early_reject",
    "final_accept"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "lot": 1000,
  "defects": 10,
  "first": 26,
  "second": 26,
  "early_accept": 0,
  "early_reject": 4,
  "final_accept": 3
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’