{
 "openapi": "3.1.0",
 "info": {
  "title": "Procurement Exceptions (Supply Chain)",
  "version": "20261030b",
  "description": "Everything between a customer order and the material it needs that is not moving — unapproved requisitions, unawarded tenders, late deliveries, rejected material, overdue subcontractors and invoices that will not match."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "procurement-exceptions": {
    "type": "object",
    "required": [],
    "properties": {
     "ref_id": {
      "type": "string",
      "format": "uuid",
      "description": "Ref id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "ref_kind": {
      "type": "string",
      "description": "Ref kind",
      "readOnly": true
     },
     "ref_no": {
      "type": "string",
      "description": "Ref no",
      "readOnly": true
     },
     "exception_kind": {
      "type": "string",
      "description": "Exception kind",
      "readOnly": true
     },
     "description": {
      "type": "string",
      "description": "Description",
      "readOnly": true
     },
     "required_date": {
      "type": "string",
      "format": "date",
      "description": "Required date",
      "readOnly": true
     },
     "value": {
      "type": "string",
      "format": "decimal",
      "description": "Value",
      "readOnly": true
     },
     "currency": {
      "type": "string",
      "description": "Currency",
      "readOnly": true
     },
     "so_no": {
      "type": "string",
      "description": "So no",
      "readOnly": true
     },
     "account_name": {
      "type": "string",
      "description": "Account name",
      "readOnly": true
     },
     "supplier_name": {
      "type": "string",
      "description": "Supplier name",
      "readOnly": true
     },
     "since": {
      "type": "string",
      "format": "date-time",
      "description": "Since",
      "readOnly": true
     },
     "severity": {
      "type": "string",
      "description": "Severity",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/scm/procurement-exceptions": {
   "get": {
    "summary": "list procurement-exceptions",
    "operationId": "list_procurement_exceptions_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post procurement exceptions",
    "operationId": "action_procurement_exceptions_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/procurement-exceptions/{ref_id}": {
   "get": {
    "summary": "get procurement-exceptions",
    "operationId": "get_procurement_exceptions_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/procurement-exceptions/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_procurement_exceptions_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/procurement-exceptions/{id}": {
   "put": {
    "summary": "Put procurement exceptions",
    "operationId": "action_procurement_exceptions_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete procurement exceptions",
    "operationId": "action_procurement_exceptions_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}