{
 "openapi": "3.1.0",
 "info": {
  "title": "Sourcing Events (Supply Chain)",
  "version": "20261030b",
  "description": "RFI, RFP and RFQ. Every response is scored and ranked as it arrives — on price, lead time, payment terms and any criteria the evaluators mark — and awarding against the ranking has to be said out loud."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "rfx": {
    "type": "object",
    "required": [
     "title"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "rfx_no": {
      "type": "string",
      "description": "Rfx no",
      "readOnly": true
     },
     "rfx_type": {
      "type": "string",
      "description": "Type"
     },
     "title": {
      "type": "string",
      "description": "Title"
     },
     "description": {
      "type": "string",
      "description": "What is needed"
     },
     "category": {
      "type": "string",
      "description": "Category"
     },
     "currency": {
      "type": "string",
      "description": "Currency"
     },
     "estimated_value": {
      "type": "string",
      "format": "decimal",
      "description": "Estimated value"
     },
     "published_at": {
      "type": "string",
      "format": "date-time",
      "description": "Published at",
      "readOnly": true
     },
     "closes_at": {
      "type": "string",
      "format": "date-time",
      "description": "Closes"
     },
     "technical_weight": {
      "type": "string",
      "format": "decimal",
      "description": "Technical weight"
     },
     "commercial_weight": {
      "type": "string",
      "format": "decimal",
      "description": "Commercial weight"
     },
     "sealed": {
      "type": "boolean",
      "description": "Sealed until it closes"
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "awarded_supplier_id": {
      "type": "string",
      "format": "uuid",
      "description": "Awarded supplier id",
      "readOnly": true
     },
     "awarded_at": {
      "type": "string",
      "format": "date-time",
      "description": "Awarded at",
      "readOnly": true
     },
     "award_reason": {
      "type": "string",
      "description": "Award reason",
      "readOnly": true
     },
     "contract_id": {
      "type": "string",
      "format": "uuid",
      "description": "Contract id",
      "readOnly": true
     },
     "buyer_id": {
      "type": "string",
      "format": "uuid",
      "description": "Buyer"
     },
     "cost_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Cost center"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "derived_from_rfx_id": {
      "type": "string",
      "format": "uuid",
      "description": "Derived from rfx id",
      "readOnly": true
     },
     "generation": {
      "type": "integer",
      "description": "Generation",
      "readOnly": true
     },
     "requisition_id": {
      "type": "string",
      "format": "uuid",
      "description": "Requisition id",
      "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
     },
     "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
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/scm/rfx": {
   "get": {
    "summary": "list rfx",
    "operationId": "list_rfx_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create rfx",
    "operationId": "create_rfx_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}": {
   "get": {
    "summary": "get rfx",
    "operationId": "get_rfx_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change rfx",
    "operationId": "change_rfx_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete rfx",
    "operationId": "delete_rfx_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_rfx_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/rfx/{id}/publish": {
   "post": {
    "summary": "Publish",
    "operationId": "action_rfx_0_6",
    "description": "Body keys: supplierIds, allRegistered",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/respond": {
   "post": {
    "summary": "Respond",
    "operationId": "action_rfx_0_6",
    "description": "Body keys: paymentTerms, supplierId*, leadTimeDays, validityDays, notes, paymentTermsDays; lines: [{ leadTimeDays, unitPrice, rfxLineId, quantity, isAlternate, alternateDescription, notes }]",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/comparison": {
   "get": {
    "summary": "Comparison",
    "operationId": "action_rfx_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/score": {
   "post": {
    "summary": "Score",
    "operationId": "action_rfx_0_6",
    "description": "Body keys: technical",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/award": {
   "post": {
    "summary": "Award",
    "operationId": "action_rfx_0_6",
    "description": "Body keys: reason, supplierId*, createContract, contractMonths",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/document": {
   "get": {
    "summary": "Document",
    "operationId": "action_rfx_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/document/propose": {
   "post": {
    "summary": "Document propose",
    "operationId": "action_rfx_0_7",
    "description": "Body keys: sectionKeys, instruction",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/document/sections/{sectionId}": {
   "put": {
    "summary": "Document sections",
    "operationId": "action_rfx_0_8",
    "description": "Body keys: body, title, isRequired",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/document/recheck": {
   "post": {
    "summary": "Document recheck",
    "operationId": "action_rfx_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/document/pointers/{pointerId}/resolve": {
   "post": {
    "summary": "Document pointers resolve",
    "operationId": "action_rfx_0_9",
    "description": "Body keys: resolution, dismiss",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/document/approve": {
   "post": {
    "summary": "Document approve",
    "operationId": "action_rfx_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/document/export": {
   "get": {
    "summary": "Document export",
    "operationId": "action_rfx_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/lineage": {
   "get": {
    "summary": "Lineage",
    "operationId": "action_rfx_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/evaluate": {
   "post": {
    "summary": "Evaluate",
    "operationId": "action_rfx_0_6",
    "description": "Body keys: scores; marks: [{ mark, criterionId, responseId, comment }]",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{id}/purchase-order": {
   "post": {
    "summary": "Purchase order",
    "operationId": "action_rfx_0_6",
    "description": "Body keys: exchangeRate",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{parentId}/lines": {
   "get": {
    "summary": "Lines",
    "operationId": "action_rfx_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Lines",
    "operationId": "action_rfx_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{parentId}/lines/{lineId}": {
   "put": {
    "summary": "Lines",
    "operationId": "action_rfx_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Lines",
    "operationId": "action_rfx_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{parentId}/invitations": {
   "get": {
    "summary": "Invitations",
    "operationId": "action_rfx_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Invitations",
    "operationId": "action_rfx_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{parentId}/invitations/{lineId}": {
   "put": {
    "summary": "Invitations",
    "operationId": "action_rfx_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Invitations",
    "operationId": "action_rfx_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{parentId}/criteria": {
   "get": {
    "summary": "Criteria",
    "operationId": "action_rfx_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Criteria",
    "operationId": "action_rfx_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/scm/rfx/{parentId}/criteria/{lineId}": {
   "put": {
    "summary": "Criteria",
    "operationId": "action_rfx_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Criteria",
    "operationId": "action_rfx_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}