Service
https://api.timewax.com/time/entries/add/
Goal
Adding time registration bookings (realisation).
Request
The following xml structure must be provided:
<request>
<token></token>
<timelines>
<timeline>
<resource></resource>
<project></project>
<breakdown></breakdown>
<date></date>
<hours></hours>
<startTime></startTime>
<endTime></endTime>
<description></description>
<reference></reference>
<KM></KM>
<descriptionKM></descriptionKM>
<type></type>
</timeline>
</timelines>
</request>
Parameter | Description | Required |
---|---|---|
token | Token for this request | yes |
Resource | Code or name. The resource for the booking. | yes |
project | Code or name. The project for the booking. | yes |
breakdown | Code or name. The breakdown for the booking. | yes |
date | Date of the booking. Format: yyyymmdd. | yes |
hours | Number of hours. | yes |
startTime | Start time for the booking. Format: hh:mm. | yes |
endTime | End time for the booking. Format: hh:mm. | yes |
reference | Reference field. | no |
description | The description field. | no |
KM | Number of kilometers. | no |
descriptionKM/resource | The description field for the kilometers. | no |
type | The type of the booking. Attribute. | no |
The following xml structure is received after an successful execution:
<response>
<valid>yes</valid>
</response>
Parameter | Description |
---|---|
valid | Indication that service was executed successfully |
The following xml structure is received after an incorrect execution:
<response>
<valid>no</valid>
<errors>no</errors>
</response>
Parameter | Description |
---|---|
valid | Indication that service was not executed successfully |
errors | Reason why the service has executed unsuccessfully |
Comments