Delete hour bookings

<< Click to Display Table of Contents >>

Navigation:  API requests >

Delete hour bookings

API request

Name: DeleteBooking

 

API request structure

<?xml version="1.0" encoding="UTF-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Header/>

<S:Body>

  <ns2:DeleteBooking xmlns:ns2="api.timewriter.nl">

    <securityToken></securityToken>

    <id></id>

  </ns2:DeleteBooking>

</S:Body>

</S:Envelope>

 

Explanation

Tag/field name

Type

Remark

Description

securityToken

string

mandatory

securityToken obtained at log in

id

long

mandatory

hour booking id

 

Examples

hmtoggle_arrow1Delete hour booking

 

API response

Name: DeleteBookingResponse

 

API response structure

<?xml version="1.0" encoding="utf-8"?>

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Header/>

<S:Body>

  <ns2:DeleteBookingResponse xmlns:ns2="api.timewriter.nl">

    <result>

      <error></error>

      <errorMessage></errorMessage>

      <success></success>

    </result>

  </ns2:DeleteBookingResponse>

</S:Body>

</S:Envelope>

 

Explanation

Tag/field name

Type

result

RequestResult

Tag/field name

Type

Description

error

boolean

false if there are no errors, true if there are errors

errorMessage

string

error message, only used when error = true

success

boolean

true if successfully deleted, false if failed