{
 "openapi": "3.1.0",
 "info": {
  "title": "Configurator · Models (Supply Chain)",
  "version": "20261030b",
  "description": "A configurable product and how a configuration of it gets made — configure, assemble, make or engineer to order."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "config-models": {
    "type": "object",
    "required": [
     "model_no",
     "name",
     "base_item_id"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "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"
     },
     "model_no": {
      "type": "string",
      "description": "Model number"
     },
     "name": {
      "type": "string",
      "description": "Name"
     },
     "description": {
      "type": "string",
      "description": "Description"
     },
     "base_item_id": {
      "type": "string",
      "format": "uuid",
      "description": "Base item"
     },
     "fulfilment": {
      "type": "string",
      "description": "Fulfilment strategy",
      "enum": [
       "cto",
       "ato",
       "mto",
       "eto"
      ]
     },
     "promise_at_quote": {
      "type": "boolean",
      "description": "A date may be promised at quotation"
     },
     "requires_engineering": {
      "type": "boolean",
      "description": "Always needs engineering"
     },
     "creates_item": {
      "type": "boolean",
      "description": "Resolving creates an item"
     },
     "item_no_pattern": {
      "type": "string",
      "description": "Item no pattern"
     },
     "creates_bom": {
      "type": "boolean",
      "description": "Resolving creates a bill of material"
     },
     "base_bom_id": {
      "type": "string",
      "format": "uuid",
      "description": "Base bill of material"
     },
     "base_routing_id": {
      "type": "string",
      "format": "uuid",
      "description": "Base routing id"
     },
     "pricing_method": {
      "type": "string",
      "description": "Pricing",
      "enum": [
       "rollup",
       "base_only",
       "price_list",
       "manual",
       "cost_plus"
      ]
     },
     "base_price": {
      "type": "string",
      "format": "decimal",
      "description": "Base price"
     },
     "currency": {
      "type": "string",
      "description": "Currency"
     },
     "markup_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Markup %"
     },
     "status": {
      "type": "string",
      "description": "Status",
      "enum": [
       "draft",
       "in_review",
       "released",
       "superseded",
       "withdrawn"
      ]
     },
     "version": {
      "type": "string",
      "description": "Version"
     },
     "owner_id": {
      "type": "string",
      "format": "uuid",
      "description": "Owner id"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "effective_from": {
      "type": "string",
      "format": "date",
      "description": "In force from"
     },
     "effective_to": {
      "type": "string",
      "format": "date",
      "description": "Until"
     },
     "overhead_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Overhead %"
     },
     "scrap_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Scrap and yield %"
     },
     "freight_amount": {
      "type": "string",
      "format": "decimal",
      "description": "Freight per unit"
     },
     "packaging_amount": {
      "type": "string",
      "format": "decimal",
      "description": "Packaging per unit"
     },
     "creates_routing": {
      "type": "boolean",
      "description": "Resolving creates a routing"
     },
     "default_work_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Default work center"
     },
     "starts_from_base_bom": {
      "type": "boolean",
      "description": "Start from the base item’s bill of material"
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/scm/config-models": {
   "get": {
    "summary": "list config-models",
    "operationId": "list_config_models_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create config-models",
    "operationId": "create_config_models_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/config-models/{id}": {
   "get": {
    "summary": "get config-models",
    "operationId": "get_config_models_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change config-models",
    "operationId": "change_config_models_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete config-models",
    "operationId": "delete_config_models_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/config-models/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_config_models_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/config-models/{parentId}/materials": {
   "get": {
    "summary": "Materials",
    "operationId": "action_config_models_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Materials",
    "operationId": "action_config_models_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/config-models/{parentId}/materials/{lineId}": {
   "put": {
    "summary": "Materials",
    "operationId": "action_config_models_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Materials",
    "operationId": "action_config_models_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/config-models/{parentId}/processes": {
   "get": {
    "summary": "Processes",
    "operationId": "action_config_models_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Processes",
    "operationId": "action_config_models_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/config-models/{parentId}/processes/{lineId}": {
   "put": {
    "summary": "Processes",
    "operationId": "action_config_models_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Processes",
    "operationId": "action_config_models_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}