Back

Search

Search

Methods

Inventory

Orders

OrderWorkflow /DeallocateOrderFromJob

Response: DeallocateOrderFromJobResponse



Remove order from a job

Parameters

NameTypeDescription
requestDeallocateOrderFromJobRequest

HTTP Endpoint

Server /OrderWorkflow / DeallocateOrderFromJob

Permissions

GlobalPermissions.OrderBook.Workflow.ManualModifyJobOrdersNode

Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/OrderWorkflow/DeallocateOrderFromJob 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,
  "OrderId": "c500c9a5-6871-4994-97e3-c18ec9c2e08d"
}

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-10-03T11:12:35.809432Z",
    "ExecutedByUser": "sample string 9",
    "ExecutionDate": "2018-10-03T11:12:35.809432Z",
    "JobAttachmentList": [
      {
        "AttachmentId": 1,
        "JobId": 2,
        "Type": 0,
        "URL": "sample string 3",
        "PrintedDate": "2018-10-03T11:12:35.809432+01:00",
        "User": "sample string 4"
      },
      {
        "AttachmentId": 1,
        "JobId": 2,
        "Type": 0,
        "URL": "sample string 3",
        "PrintedDate": "2018-10-03T11:12:35.809432+01:00",
        "User": "sample string 4"
      }
    ],
    "OrderList": [
      {
        "OrderId": "e26c5b6b-5540-4780-b0bc-8c7a1489e297",
        "nOrderId": 2,
        "CustomerName": "sample string 3",
        "EmailAddress": "sample string 4"
      },
      {
        "OrderId": "e26c5b6b-5540-4780-b0bc-8c7a1489e297",
        "nOrderId": 2,
        "CustomerName": "sample string 3",
        "EmailAddress": "sample string 4"
      }
    ]
  }
}