Skip to main content

Create Work Order

POST 

https://racko-api.ianai.co/v2/workorder

Create Work Order

Request

Responses

Work Order

Authorization: http

name: bearerAuthtype: httpscheme: bearerbearerFormat: JWT
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://racko-api.ianai.co/v2/workorder");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"active\": true,\n \"doc_number\": \"example work order\",\n \"status\": \"PENDING\",\n \"txn_datetime\": \"2024-01-01T00:00:00Z\",\n \"start_datetime\": \"2024-01-01T00:00:00Z\",\n \"end_datetime\": \"2024-01-01T00:00:00Z\",\n \"due_date\": \"2024-01-01\",\n \"progress_percentage\": 50,\n \"total_operations\": 10,\n \"completed_operations\": 5,\n \"internal_notes\": \"string\",\n \"custom_fields\": {},\n \"linked_transaction\": [\n {\n \"entity_name\": \"PurchaseOrderLineItem\",\n \"entity_key\": \"uuid\"\n }\n ],\n \"item_options\": {},\n \"department\": {\n \"id\": \"\",\n \"name\": \"example department\"\n },\n \"location\": {\n \"id\": \"\",\n \"name\": \"example location\"\n },\n \"project_code\": {\n \"id\": \"\",\n \"name\": \"example project code\"\n },\n \"built_items\": [\n {\n \"line_number\": 1,\n \"item\": {\n \"id\": \"uuid\",\n \"name\": \"Built Item 1\"\n },\n \"description\": \"Built Item 1 description\",\n \"quantity\": 10,\n \"qty_on_hand\": 50,\n \"measurements\": {\n \"id\": \"uuid\",\n \"weight\": 1,\n \"weight_unit\": \"lbs\",\n \"length\": 1,\n \"height\": 1,\n \"width\": 1,\n \"dimension_unit\": \"in\"\n },\n \"linked_transaction\": {\n \"entity_name\": \"PurchaseOrderLineItem\",\n \"entity_key\": \"uuid\"\n },\n \"uom\": {\n \"id\": \"uuid\",\n \"name\": \"Unit\"\n },\n \"binlocation\": {\n \"id\": \"uuid\",\n \"name\": \"Bin 2\"\n },\n \"lot\": {\n \"id\": \"uuid\",\n \"name\": \"LOT123456\"\n },\n \"serials\": \"SERIAL100\",\n \"class_ref\": {\n \"id\": \"uuid\",\n \"name\": \"Class 1\"\n },\n \"expiry_date\": \"2024-07-29\",\n \"item_options\": {},\n \"option_template\": {\n \"id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"name\": \"Option template name\"\n }\n }\n ]\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://racko-api.ianai.co/v2
Auth
Parameters
— header
Body required
{
  "active": true,
  "doc_number": "example work order",
  "status": "PENDING",
  "txn_datetime": "2024-01-01T00:00:00Z",
  "start_datetime": "2024-01-01T00:00:00Z",
  "end_datetime": "2024-01-01T00:00:00Z",
  "due_date": "2024-01-01",
  "progress_percentage": 50,
  "total_operations": 10,
  "completed_operations": 5,
  "internal_notes": "string",
  "custom_fields": {},
  "linked_transaction": [
    {
      "entity_name": "PurchaseOrderLineItem",
      "entity_key": "uuid"
    }
  ],
  "item_options": {},
  "department": {
    "id": "",
    "name": "example department"
  },
  "location": {
    "id": "",
    "name": "example location"
  },
  "project_code": {
    "id": "",
    "name": "example project code"
  },
  "built_items": [
    {
      "line_number": 1,
      "item": {
        "id": "uuid",
        "name": "Built Item 1"
      },
      "description": "Built Item 1 description",
      "quantity": 10,
      "qty_on_hand": 50,
      "measurements": {
        "id": "uuid",
        "weight": 1,
        "weight_unit": "lbs",
        "length": 1,
        "height": 1,
        "width": 1,
        "dimension_unit": "in"
      },
      "linked_transaction": {
        "entity_name": "PurchaseOrderLineItem",
        "entity_key": "uuid"
      },
      "uom": {
        "id": "uuid",
        "name": "Unit"
      },
      "binlocation": {
        "id": "uuid",
        "name": "Bin 2"
      },
      "lot": {
        "id": "uuid",
        "name": "LOT123456"
      },
      "serials": "SERIAL100",
      "class_ref": {
        "id": "uuid",
        "name": "Class 1"
      },
      "expiry_date": "2024-07-29",
      "item_options": {},
      "option_template": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "Option template name"
      }
    }
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!