QloApps Forums
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Cannot create a booking via /bookings

    Technical Help
    1
    1
    11
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nguoi2mello last edited by

      Hey,
      Im trying to create a booking

      <?xml version="1.0" encoding="UTF-8"?>
      <qloapps xmlns:xlink="http://www.w3.org/1999/xlink">
      <booking>
      <id_property>1</id_property>

      <!-- REQUIRED -->
      <booking_status>1</booking_status>   <!-- 1=new -->
      <payment_status>3</payment_status>   <!-- 3=awaiting (nur wenn booking_status=1) -->
      
      <currency>EUR</currency>
      <source>proelectrification-andrea-disillusionedly.ngrok-free.dev</source>
      <booking_date>2026-01-08 21:28:01</booking_date>
      <id_language>1</id_language>
      
      <associations>
        <customer_detail>
          <id_customer>2</id_customer>
          <firstname>Max</firstname>
          <lastname>Mustermann</lastname>
          <email>max.mustermann@example.com</email>
          <phone>+491701234567</phone>
        </customer_detail>
      
        <remarks>
          <remark>Manuelle Bestellung - Mitarbeiter: C. Tran</remark>
        </remarks>
      
        <room_types>
          <room_type>
            <id_room_type>3</id_room_type>
            <checkin_date>2026-01-28 00:00:00</checkin_date>
            <checkout_date>2026-02-10 00:00:00</checkout_date>
            <number_of_rooms>1</number_of_rooms>
      
            <rooms>
              <room>
                <id_room>12</id_room>
                <adults>4</adults>
                <child>0</child>
              </room>
            </rooms>
          </room_type>
        </room_types>
      </associations>
      

      </booking>
      </qloapps>

      but its not working. Either I'm getting a 500 or an invalid order status

      Can someone help me please?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post