{
 "openapi": "3.1.0",
 "info": {
  "title": "Job Orders (Talent & Contingent Workforce)",
  "version": "20261030b",
  "description": "What a client is asking for. The pipeline against each one is counted here, so a requisition with nothing out against it is visible at a glance."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "job-orders": {
    "type": "object",
    "required": [
     "title",
     "client_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",
      "readOnly": true
     },
     "location_id": {
      "type": "string",
      "format": "uuid",
      "description": "Office"
     },
     "job_order_no": {
      "type": "string",
      "description": "Job order no",
      "readOnly": true
     },
     "title": {
      "type": "string",
      "description": "Role title"
     },
     "client_id": {
      "type": "string",
      "format": "uuid",
      "description": "Client"
     },
     "msp_program_id": {
      "type": "string",
      "format": "uuid",
      "description": "Programme"
     },
     "rate_card_id": {
      "type": "string",
      "format": "uuid",
      "description": "Rate card"
     },
     "hiring_contact_id": {
      "type": "string",
      "format": "uuid",
      "description": "Hiring contact"
     },
     "requisition_id": {
      "type": "string",
      "format": "uuid",
      "description": "Internal requisition"
     },
     "employment_type": {
      "type": "string",
      "description": "Engagement type"
     },
     "work_arrangement": {
      "type": "string",
      "description": "Work arrangement"
     },
     "work_city": {
      "type": "string",
      "description": "Work city"
     },
     "work_country": {
      "type": "string",
      "description": "Work country"
     },
     "openings": {
      "type": "integer",
      "description": "Openings"
     },
     "filled_count": {
      "type": "integer",
      "description": "Filled count",
      "readOnly": true
     },
     "priority": {
      "type": "string",
      "description": "Priority",
      "enum": [
       "low",
       "normal",
       "high",
       "critical"
      ]
     },
     "status": {
      "type": "string",
      "description": "Status"
     },
     "opened_at": {
      "type": "string",
      "format": "date",
      "description": "Opened"
     },
     "closed_at": {
      "type": "string",
      "format": "date",
      "description": "Closed at",
      "readOnly": true
     },
     "target_start_date": {
      "type": "string",
      "format": "date",
      "description": "Target start"
     },
     "target_end_date": {
      "type": "string",
      "format": "date",
      "description": "Target end"
     },
     "duration_weeks": {
      "type": "integer",
      "description": "Duration (weeks)"
     },
     "submission_deadline": {
      "type": "string",
      "format": "date",
      "description": "Submission deadline"
     },
     "max_submissions": {
      "type": "integer",
      "description": "Submission limit"
     },
     "currency": {
      "type": "string",
      "description": "Currency"
     },
     "rate_unit": {
      "type": "string",
      "description": "Rate unit",
      "enum": [
       "hour",
       "day",
       "week",
       "month",
       "year",
       "fixed"
      ]
     },
     "bill_rate_min": {
      "type": "string",
      "format": "decimal",
      "description": "Bill rate from"
     },
     "bill_rate_max": {
      "type": "string",
      "format": "decimal",
      "description": "Bill rate ceiling"
     },
     "pay_rate_max": {
      "type": "string",
      "format": "decimal",
      "description": "Pay rate ceiling"
     },
     "salary_min": {
      "type": "string",
      "format": "decimal",
      "description": "Salary from"
     },
     "salary_max": {
      "type": "string",
      "format": "decimal",
      "description": "Salary to"
     },
     "fee_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Placement fee %"
     },
     "markup_pct": {
      "type": "string",
      "format": "decimal",
      "description": "Target markup %"
     },
     "hours_per_week": {
      "type": "string",
      "format": "decimal",
      "description": "Hours a week"
     },
     "experience_years_min": {
      "type": "string",
      "format": "decimal",
      "description": "Minimum experience (years)"
     },
     "education_level": {
      "type": "string",
      "description": "Education"
     },
     "clearance_required": {
      "type": "string",
      "description": "Clearance required"
     },
     "description": {
      "type": "string",
      "description": "Description"
     },
     "screening_notes": {
      "type": "string",
      "description": "Screening notes"
     },
     "internal_notes": {
      "type": "string",
      "description": "Internal notes"
     },
     "recruiter_id": {
      "type": "string",
      "format": "uuid",
      "description": "Recruiter"
     },
     "account_manager_id": {
      "type": "string",
      "format": "uuid",
      "description": "Account manager"
     },
     "cost_center_id": {
      "type": "string",
      "format": "uuid",
      "description": "Cost center"
     },
     "source_system": {
      "type": "string",
      "description": "Came from"
     },
     "external_ref": {
      "type": "string",
      "description": "Reference over there"
     },
     "vms_req_id": {
      "type": "string",
      "description": "VMS requisition id"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "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
     },
     "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/ats/job-orders": {
   "get": {
    "summary": "list job-orders",
    "operationId": "list_job_orders_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create job-orders",
    "operationId": "create_job_orders_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/job-orders/{id}": {
   "get": {
    "summary": "get job-orders",
    "operationId": "get_job_orders_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change job-orders",
    "operationId": "change_job_orders_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete job-orders",
    "operationId": "delete_job_orders_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/job-orders/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_job_orders_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/ats/job-orders/{parentId}/skills": {
   "get": {
    "summary": "Skills",
    "operationId": "action_job_orders_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Skills",
    "operationId": "action_job_orders_1_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/job-orders/{parentId}/skills/{lineId}": {
   "put": {
    "summary": "Skills",
    "operationId": "action_job_orders_0_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Skills",
    "operationId": "action_job_orders_1_7",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/job-orders/{id}/summarise": {
   "post": {
    "summary": "Summarise",
    "operationId": "action_job_orders_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/job-orders/{id}/preview": {
   "get": {
    "summary": "Preview",
    "operationId": "action_job_orders_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/job-orders/{id}/matches": {
   "get": {
    "summary": "Matches",
    "operationId": "action_job_orders_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/job-orders/from-requisition/{id}": {
   "post": {
    "summary": "From requisition",
    "operationId": "action_job_orders_0_6",
    "description": "Body keys: clientId*, employmentType, recruiterId; employmentType one of contract|contract_to_hire|direct_hire|temp|sow|internship|payrolling",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}