Creating a work order

Creating a work order



Imagine you have an external software system that can track time and you want it to create work orders for you.

This request shows how to create a work order with:

- employee commute information
- employee time entries
- extra line items with used articles

POST https://app.robaws.be/api/v2/work-orders
{
    "projectId": "1",
    "commuteEntries": [
       {
            "distance": 17,
            "returnDistance": 33,
            "employeeId":"1"
       },
       {
           "distance": 5,
           "returnDistance": 5,
           "employeeId": "2"
       }
    ],
    "timeEntries": [
        {
            "employeeId":"1",
            "articleId":"556",
            "startTime": {
                "hour": 8,
                "minute": 30
            },
            "endTime": {
                "hour": 18,
                "minute": 45
            },
            "breakHours": 1.5
        }
    ],
    "lineItems": [
        {
            "type": "LINE",
            "articleId": "1",
            "quantity": "3",
            "description": "Your custom description"
        }
    ]
}

Bijgewerkt op: 17/12/2020

Was dit artikel nuttig?

Deel uw feedback

Annuleer

Dankuwel!