List service bookings
...
Tag | Format | Example | Description |
---|---|---|---|
servicebookings |
| <servicebookings> | servicebookings tag encloses bookings. |
id | ID | <id>12</id> | Unique ID |
order |
| <order><id>487</id><number>300</number><preliminary>true</preliminary></order> | The order that contains the booking. |
businessunit |
| <businessunit><id>11</id><name>Center</name></businessunit> | The bookings business unit/facility |
start | Time | <start><timepoint><timestamp>1102082400</timestamp><datetime>2004-12-03 15:00</datetime><date>2004-12-03</date><time>15:00</time></timepoint></start> | The start time of the service booking |
end | Time | <end><timepoint><timestamp>1102086000</timestamp><datetime>2004-12-03 16:00</datetime><date>2004-12-03</date><time>16:00</time></timepoint></end> | The end time of the service booking |
product |
| <product>#see products#</product> | The actual product used for the service booking. For more details please visit products |
resources |
| <resources> | A list containing booked resources |
resource |
| <resource><id>7</id><name>Auditorium</name><type>Lokal</type> <isemployee>false</isemployee> <employee/> </resource> | Resource |
externalmessage | String | <externalmessage>Extra paper and pencils will be placed by the chalkboard</externalmessage> | External messages for specfic service booking |
internalmessage | String | <internalmessage> Internal message </internalmessage> | Internal message for specific service booking |
Code Block |
---|
<servicebookings>
<servicebooking>
<id>12</id>
<order>
<id>487</id>
<number>300</number>
<preliminary>true</preliminary>
</order>
<businessunit>
<id>11</id>
<name>Center</name>
</businessunit>
<start>
<timepoint>
<timestamp>1102082400</timestamp>
<datetime>2004-12-03 15:00</datetime>
<date>2004-12-03</date>
<time>15:00</time>
</timepoint>
</start>
<end>
<timepoint>
<timestamp>1102086000</timestamp>
<datetime>2004-12-03 16:00</datetime>
<date>2004-12-03</date>
<time>16:00</time>
</timepoint>
</end>
<product>#se produkter#</product>
<resources>
<resource>
<id>7</id>
<name>Auditorium</name>
<type>Lokal</type>
<isemployee>false</isemployee>
<employee/>
</resource>
</resources>
<externalmessage>Extra paper and pencils will be placed by the chalkboard</externalmessage>
<internalmessage>Internal message</internalmessage>
<participants>
<participant>
<id>22</id>
<personid>23</personid>
<firstname>John</firstname>
<lastname>Doe</lastname>
</participant>
</participants>
</servicebooking>
...
</servicebookings>
|
...
Modifies an existing servicebooking for a logged in user.
Note: If apikey of level 3 is used person should be identified with param personid=x
Request
Code Block |
---|
PUT:APIURL/servicebookings.json?apikey=338934897438 { "id":1, "participantfirstname":"John", "participantlastname":"Doe" } |
...
Name | Example | Description | Datatype | Required |
---|---|---|---|---|
id | id=1 | Servicebooking id | ID | X |
participantfirstname | participantfirstname=John | Open text field that can be used to specify first name of a participant other than the customer that has made the booking | String | |
participantlastname | participantlastname=Doe | Open text field that can be used to specify last name of a participant other than the customer that has made the booking | String | |
participantid | participantid=7 | The ID of the person being booked as a participant. If specified participantfirstname and participantlastname will be ignored | ID | |
anonymous | anonymous=true | Required if the servicebooking belongs to an anonymous order | Boolean | X* |
internalmessage | internalmessage=internal message | Internal message on service booking | String | |
externalmessage | externalmessage=External message | External message on service booking | String |
Response
The same as the listing of the servicebooking
...