Accessing booking

Booking can be accessed using two methods:

  • By TourOperator and RemoteBookingCode or;
  • By providing only our internal Booking ID BookingCode

On bookings you can also perform certain actions, such as cancellation.

Warning

You currently cannot access booking made by register method, until booking has been finalized by an agent.

Possible endpoints are:

  • /booking/by-id/<BookingCode>/<action>
  • /booking/by-toc/<TourOperator>/<RemoteBookingCode>/<action>

For booking operations you can simple GET as an HTTP method.

Response structure

Response structure is identical as described in first chapter.

Note

OfferInfo in response is always empty. Information on what was booked (product) can be retreived from ServiceDesc field.

Getting booking information.

Issuing GET request without any action will return information on current booking:

For example: /booking/by-id/20191220121834240/, or /booking/by-toc/ODP/5528139/ (both are equivalent).

Cancellation check

You can check whenever booking can be cancelled using cancel-check action.

If tour operator supports cancelation on this offer status code ID (StatusCode->ID in JSON response) should be set to 760.

Warning

Cancellation might not be free and might carry cancellation costs. Consult with textual response in info field for any possible fees.

Example: /booking/by-toc/ODP/5528139/cancel-check

Cancelling booking

You can cancel booking, by issuing GET request on the booking with additional action of cancel.

Warning

Cancellation might not be free. Always perform cancellation check first and consult with response info field for any possible fees.

Upon sucesfull cancellation all Status fields in services (Services->ID->Status in JSON response) should have XX set as value.

Example: /booking/by-toc/ODP/5528139/cancel

Option fix

Fixing an previously created option turn that option into a fixed booking.

You can perform this with action option-fix

Example: /booking/by-toc/ODP/5528139/option-fix