Get workflow groups and jobs per location. This call will return all groups available to the user.
Group header only contains essential information for displaying the number of jobs to do, total number of orders in the group. Things like Conditions and Action lists are not returned as part of this call.
Jobs - only header of a job is returned, actual list of order ids will be empty in this call. You will need to use GetJob to get actual list of orders allocated to the job
Name | Type | Description |
---|---|---|
request | GetWorkflowRequest | Get workflow request |
The following request format is required for this method.
GET | POST https://eu-ext.linnworks.net/api/OrderWorkflow/GetWorkflow
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE
This is an example of the request structure. Results will vary depending on your data.
request={
"LocationId": "a22d5440-fc81-49c7-91aa-ad7ef9ce8c9f",
"GroupId": 1
}
This is an example of the response JSON. Results will vary depending on your data.
{
"WorkflowGroups": [
{
"GroupHeader": {
"GroupId": 1,
"LocationId": "a968112a-767a-4cf8-a00e-af47cb1f1571",
"Name": "sample string 3",
"Prefix": "sam",
"Seed": 5,
"MaxOrderCount": 6,
"Prevalence": 7,
"JobCount": 8,
"OrderCount": 9,
"AttachmentCount": 10,
"Condition": {
"Where": "sample string 1",
"Inner": "sample string 2",
"Sort": "sample string 3"
},
"Action": {
"Actions": [
"sample string 1"
]
},
"HasAction": true
},
"Jobs": [
{
"JobId": 1,
"GroupId": 2,
"Name": "sample string 3",
"Status": "PENDING",
"OrderCount": 4,
"AttachmentCount": 5,
"IsError": true,
"IsAllPrinted": true,
"CreatedDate": "2023-01-10T13:49:46.9443762Z",
"ExecutedByUser": "sample string 9",
"ExecutionDate": "2023-01-10T13:49:46.9443762Z",
"JobAttachmentList": [
{
"AttachmentId": 1,
"JobId": 2,
"Type": 0,
"URL": "sample string 3",
"PrintedDate": "2023-01-10T13:49:46.9453728+00:00",
"User": "sample string 4"
}
],
"OrderList": [
{
"OrderId": "e5608b27-6c79-458e-be27-fc6d860233e2",
"nOrderId": 2,
"CustomerName": "sample string 3",
"EmailAddress": "sample string 4"
}
]
}
]
}
]
}