Skip to main content

UserTask decline reasons

Sometimes Ship From Store tasks need to be declined for various reasons. To keep track of non-completed tasks and allow store employees to choose a reason for declining, we have to set up these reasons using our services.

To add reasons, we use CreateUserTaskNotCompletedReason:

{
"Name":"No time",
"Usages":[
{
"UserTaskTypeID":"3",
"UserTaskSubTypeID":"6",
"organizationUnitSetID":"11"
},
{
"UserTaskTypeID":"3",
"UserTaskSubTypeID":"6",
"organizationUnitSetID":"11"
}
]
}

Getโ€‹

These decline reasons can be listed using GetUserTaskNotCompletedReason. You'll also be able to see each reason's usage:

{
"Reasons": [
{
"ReasonID": 1,
"Name": "TaskInProgressForTooLong",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 2,
"Name": "TaskNotStartedInTime",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 3,
"Name": "NoStock",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 4,
"Name": "Manual",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 5,
"Name": "OtherStore",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 6,
"Name": "Expired",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 7,
"Name": "FulfillmentCancelled",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 8,
"Name": "Unknown",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 9,
"Name": "OrderCancelled",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 10,
"Name": "BlobNotFound",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 11,
"Name": "FullStockCountCreated",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 12,
"Name": "ReturnToSupplierCompleted",
"IsSystem": true,
"Usages": []
},
{
"ReasonID": 15,
"Name": "No Time",
"IsSystem": false,
"Usages": [
{
"UserTaskTypeID": 3,
"UserTaskSubTypeID": 6,
"UserTaskType": "ShipFromStore",
"UserTaskSubType": "Pick",
"organizationUnitSetID": 11
}
]
},
{
"ReasonID": 17,
"Name": "Too Far",
"IsSystem": false,
"Usages": [
{
"UserTaskTypeID": 3,
"UserTaskSubTypeID": 5,
"UserTaskType": "ShipFromStore",
"UserTaskSubType": "ShipFromStore",
"organizationUnitSetID": 11
}
]
}
]
}

Additional servicesโ€‹

Note

You are only allowed to alter and delete your own custom decline reasons.

Cycle count on no stockโ€‹

Setting UserTasks:CreateCycleCountOnNoStockPartialPickCompletion to true will trigger a cycle count whenever decline reason NoStock is used.