Task
Operation on a purchase that goes on in the background, with its status and progress (GET /api/v3/tasks/{task_id})
Id of the purchase the task works on (GET /api/v3/purchases/{purchase_id})
task_status objectrequired
Status code: TO_EXECUTE (queued), MACHINE (running), WAIT (paused), HUMAN_INTERVENTION (checked by an operator), ASK_USER (waiting for data, POST /api/v3/tasks/{task_id}/data), DONE (completed) or FAIL (failed)
Name of the status for the customers, in Italian, as in the control panel (for example In verifica for HUMAN_INTERVENTION)
Number of the step reached by the task, out of total_instructions: equal to it when the task is done or failed
Total number of steps of the task
Whether the execution of the task has started
Error found in the data provided for the task, null when there is none: the corrected data are sent with POST /api/v3/tasks/{task_id}/data
Date and time the task was created
{
"task_id": 0,
"purchase_id": 0,
"task_status": {
"status_code": "string",
"status_name": "string"
},
"executed_instructions": 0,
"total_instructions": 0,
"is_started": true,
"ask_user_error": "string",
"date_started": "2024-07-29T15:51:28.071Z"
}