Cancel Booking
This call will cancel the booking, even if there is an outstanding balance on the booking.
zapiBookings_CancelBooking
GET
https://{yourdomainname}.zaui.net/zapi/
Request Body
Token that must be used for a reseller to communicate with the supplier system.
Generated by the supplier system.
Confirmation number assigned once booking is confirmed.
Generated by the supplier system when a new contact is created.
<?xml version="1.0" encoding="utf-8"?>
<response>
<zapiVersion>2.1</zapiVersion>
<error>0</error>
<message>OK</message>
<methodResponse>
<methodName>zapiBookings_CancelBooking</methodName>
<bookingNumber>40240</bookingNumber>
<bookingBalance>
<hasOutstandingBalance>true</hasOutstandingBalance>
<balance>105</balance>
<balanceFormated>$105.00</balanceFormated>
</bookingBalance>
<methodErrorCode>0</methodErrorCode>
<methodErrorMessage>
<![CDATA[Booking has been cancelled]]>
</methodErrorMessage>
</methodResponse>
</response>
If you attempt to balance the booking transactions, then you must submit the appropriate transactions on the booking to reconcile it.
<request>
<zapiToken></zapiToken>
<zapiAccountId></zapiAccountId>
<zapiUserId></zapiUserId>
<zapiMethod>
<methodName>zapiBookings_CancelBooking</methodName>
<bookingNumber></bookingNumber>
</zapiMethod>
</request>
<?xml version="1.0" encoding="utf-8"?>
<response>
<zapiVersion>2.1</zapiVersion>
<error>0</error>
<message>OK</message>
<methodResponse>
<methodName>zapiBookings_CancelBooking</methodName>
<methodErrorCode>0</methodErrorCode>
<methodErrorMessage></methodErrorMessage>
<bookingNumber></bookingNumber>
<bookingBalance>
<hasOutstandingBalance></hasOutstandingBalance>
<balance></balance>
<balanceFormated></balanceFormated>
</bookingBalance>
</methodResponse>
</response>