POST /v2/bookings/{id}/comm

Adds communication to the booking. Body response will contain status of the operation.

Resource information

Authentication Yes
Request Formats xml
Response Formats xml, json
HTTP Method POST
Request Object Booking communication object
Response Object Result of the inserting communication to the booking
API Version v2

Example Request

https://api.poplidays.com/v2/bookings/1223211/comm

xml post body

<comm>
	<referenceProvider>TYUHVRTYJ</referenceProvider>
  	<msg>some message to add</msg>
</comm>

json post body

{"msg": "some message to add",
 "referenceProvider":"TYUHVRTYJ"
}

Example Response

xml response body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<result>
    <id>1463789</id>
    <status>INSERTED</status>
</result>

json response body

{"id":1463789,"status":"INSERTED"}