Back

Search

Search

Methods

Inventory

Orders

OrderWorkflow /GetJob

Response: GetJobResponse



Get specific job details. This method will return list of order ids in a job.

Parameters

NameTypeDescription
requestGetJobRequestRequest class

HTTP Endpoint

Server /OrderWorkflow / GetJob

Permissions

GlobalPermissions.OrderBook.Workflow.ViewWorkflow.ViewWorkflowNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/OrderWorkflow/GetJob HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

request={
  "JobId": 1
}

Response

This is an example response. Results may vary depending on your data.

{
  "Job": {
    "JobId": 1,
    "GroupId": 2,
    "Name": "sample string 3",
    "Status": "PENDING",
    "OrderCount": 4,
    "AttachmentCount": 5,
    "IsError": true,
    "IsAllPrinted": true,
    "CreatedDate": "2018-02-19T16:57:08.0540278+00:00",
    "ExecutedByUser": "sample string 9",
    "ExecutionDate": "2018-02-19T16:57:08.0540278+00:00",
    "JobAttachmentList": [
      {
        "AttachmentId": 1,
        "JobId": 2,
        "Type": 0,
        "URL": "sample string 3",
        "PrintedDate": "2018-02-19T16:57:08.0540278+00:00",
        "User": "sample string 4"
      },
      {
        "AttachmentId": 1,
        "JobId": 2,
        "Type": 0,
        "URL": "sample string 3",
        "PrintedDate": "2018-02-19T16:57:08.0540278+00:00",
        "User": "sample string 4"
      }
    ],
    "OrderList": [
      {
        "OrderId": "2b149d17-a7be-421d-b131-9e831e5549ab",
        "nOrderId": 2,
        "CustomerName": "sample string 3",
        "EmailAddress": "sample string 4"
      },
      {
        "OrderId": "2b149d17-a7be-421d-b131-9e831e5549ab",
        "nOrderId": 2,
        "CustomerName": "sample string 3",
        "EmailAddress": "sample string 4"
      }
    ]
  },
  "JobErrors": [
    {
      "JobErrorId": 1,
      "Action": "sample string 2",
      "OrderId": "a0eb6032-edcd-4127-aacf-3d5b2ed60c3e",
      "ErrorType": 3,
      "ErrorText": "sample string 4"
    },
    {
      "JobErrorId": 1,
      "Action": "sample string 2",
      "OrderId": "a0eb6032-edcd-4127-aacf-3d5b2ed60c3e",
      "ErrorType": 3,
      "ErrorText": "sample string 4"
    }
  ]
}