{
 "openapi": "3.1.0",
 "info": {
  "title": "Inspections (Manufacturing)",
  "version": "20261030b",
  "description": "The inspections service of Manufacturing: 3 operation(s)."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {}
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/mfg/inspections/raise": {
   "post": {
    "summary": "Raise",
    "operationId": "action_inspections_0_5",
    "description": "Body keys: source, receiptId, productionOrderId",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/mfg/inspections/{id}/record": {
   "post": {
    "summary": "Record",
    "operationId": "action_inspections_0_6",
    "description": "Body keys: results: [{ lineNo, characteristic, measured, text, notes, gaugeId }]",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/mfg/inspections/{id}/usage-decision": {
   "post": {
    "summary": "Usage decision",
    "operationId": "action_inspections_0_6",
    "description": "Body keys: decision, reason*, alternateItemId, currency, exchangeRate, estimatedCost, quantity, comments, correctiveAction, vendorAction, requiresReinspection, returnToOpNo, deviationApprovedBy; decision one of return_to_vendor_replace|alternate_material",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}