Create New Booking

Is it possible to create a new booking via the API if I have my own form?

Comments

  • More importantly how does a session or form get inserted into the API call?  Thanks for any help in advance!
  • MitchMitch Checkfront Team
    Hi kg567,

    Thanks for your question!

    Yes, you can create a new booking via the API using your own form data. In the last step of the booking process (after you've queried the items and created the session) you'll need to send a POST request to the "booking/create" endpoint. This endpoint will accept an array of booking form parameters.

    You can learn more about which specific keys you'll need to use when creating the array of form field data see: http://api.checkfront.com/ref/booking/form.html and to learn more about the "booking/create" endpoint please see: http://api.checkfront.com/ref/booking/create.html

    I hope this helps!

    Cheers,
    Mitch
    Checkfront support team
  • edited August 2016
    Sorry, I am pretty new to working with APIs. Thanks for the fast response. Another quick question....my customers do not have to sign up for the site to rent something.  Should I be using oAuth2 or can I just use a token for them to rent from the site.  There is SSL on my site. Thanks.
  • NickNick Checkfront Team
    Hi kg567, 

    Thanks for using our forums! 

    Yes, you will be able to use token authentication to build a custom booking flow. Note that token authentication only works for server-to-server communication. It will not work when used in JavaScript for example. For more on authentication, see here: http://api.checkfront.com/overview/auth.html

    I hope that helps. Please let us know if there is more we can do to help

    Have a great day,

    Nick
    Checkfront Support Team  
  • Great that answered all of my questions!  Thanks.
Sign In or Register to comment.