You can access various data from Locaboo, available in JSON format.
Here is an overview of how to access these, and what data is available.

Quickstart

  1. Resource List   -  List of resources along with the fields available for each resource.
  2. Resource   -  Details of resource based on ID.
  3. Booking List   -  List of bookings under a manager.
  4. Booking   -  Details of booking based on ID.
  5. Availability   -  List of available time-slots at resource.
  6. Profile   -  Get details of a manager.
  7. Customer List   -  List of customers along with the fields available for each customer.
  8. Inventory List   -  List of inventory along with the fields available for each inventory.
  9. Services List   -  List of services along with the fields available for each service.23
  10. Invoices List   -  List of invoices along with the fields available for each invlice.
  11. Invoices Details   -  Retrieve details for the specified invoice.
  12. Booking Post   -  Create/Update the booking details.
  13. Events List   -  List of events under a manager.
  14. Events Details   -  Details of event based on ID.
  15. Booking Add   -  Add new booking or booking request
  16. Customer Add   -  Add new customer
  17. Customer Edit   -  Add new customer
  18. Customer Address Add   -  Add address for customer

API authentication and access

You need to use the 'API Access Data', found at 'Profile' section of manager's dashboard.
Every call requires the following auth parameter: api_secret_key. This can either be POST or GET parameter.


API Endpoints

Endpoint base : https://app.locaboo.com

Return response 200 only for successful API calls.

  1. GET /api/v2/resource_list : List of resources along with the fields available for each resource.

    Example response can be found below,

    /api/v2/resource_list?api_secret_key=<api_secret_key>
    
    {
      "data":[
         {
            "id":5721,
            "title":"test audit",
            "parts":[
               {
                  "id":8795,
                  "title":"The only child"
               }
            ]
         },
         {
            "id":48,
            "title":"Stefan Test",
            "parts":[
               {
                  "id":49,
                  "title":"Kleine Halle"
               },
               {
                  "id":50,
                  "title":"Gro\u00dfe Halle"
               }
            ]
         },
         {
            "id":51,
            "title":"Matthias Dome",
            "parts":[
               {
                  "id":52,
                  "title":"Basketball Field"
               },
               {
                  "id":53,
                  "title":"Eishockey Field"
               }
            ]
         },
         {
            "id":47,
            "title":"Sandkasten",
            "parts":[
    
            ]
         }
      ],
      "total":4,
      "free_text_fields":[
         {
            "id":1,
            "name":"Persons",
            "type":"numeric"
         },
         {
            "id":2,
            "name":"Seat Type",
            "type":"select",
            "options":[
                "A",
                "B"
            ],
         },
       ],
      "success":true
    } 
    

  2. GET /api/v2/resource/<resource-id> : Details of resource based on ID.

    Example response can be found below,

    /api/v2/resource/51?api_secret_key=<api_secret_key>
    
    {
      "data":{
         "id":51,
         "manager":46,
         "title":"Matthias Dome",
         "image":"https:\/\/app.locaboo\/files\/location\/51\/thumb_Buzz Aldrin on the moon_HD.jpg",
         "category_id":564,
         "category_name":"Box",
         "street_hnr":"",
         "zip":"",
         "city":"",
         "country":"DE",
         "phone":"",
         "fax":"",
         "public_comment":"",
         "today_opening_times": [
          [
            "10:30",
            "23:59"
          ]
        ],
        "today_holidays": [
          {
            "title": "New Holiday",
            "from": "2020-07-06",
            "to": "2020-07-06"
          }
        ]
      },
      "total":1,
      "success":true
    }
    

  3. GET /api/v2/booking_list : List of bookings under a manager.

    Example response can be found below,

    /api/v2/booking_list?&api_secret_key=<api_secret_key>&date_from=2023-10-11&date_to=2023-10-13&show_details=true
    
    {
        "data": [
            {
                "id": 312834,
                "title": "",
                "resources": [
                    {
                        "resource_id": 48,
                        "resource": "Sample Resource B",
                        "instances": {
                            "39518": {
                                "id": 39518,
                                "resource_id": 49,
                                "resource": "Sample Resource B > Kleine Halle",
                                "from": "2023-10-11 11:00",
                                "to": "2023-10-11 14:00",
                                "custom_fields": []
                            },
                            "39519": {
                                "id": 39519,
                                "resource_id": 49,
                                "resource": "Sample Resource B > Kleine Halle",
                                "from": "2023-10-12 11:00",
                                "to": "2023-10-12 14:00",
                                "custom_fields": []
                            }
                        }
                    }
                ],
                "custom_fields": {
                    "48": {
                        "56": {
                            "label": "New MF field ",
                            "value": "Geschäftleitungsmeeting / Managementtagung",
                            "category": 0
                        }
                    }
                },
                "comments": "",
                "customer_id": "21749",
                "customer": "DemoStore GmbH",
                "color": "#17df26"
            },
            {
                "id": 312838,
                "title": "",
                "resources": [
                    {
                        "resource_id": 48,
                        "resource": "Sample Resource B",
                        "instances": {
                            "39526": {
                                "id": 39526,
                                "resource_id": 50,
                                "resource": "Sample Resource B > Große Halle",
                                "from": "2023-10-11 00:00",
                                "to": "2023-10-11 23:59",
                                "custom_fields": []
                            },
                            "39527": {
                                "id": 39527,
                                "resource_id": 50,
                                "resource": "Sample Resource B > Große Halle",
                                "from": "2023-10-12 00:00",
                                "to": "2023-10-12 23:59",
                                "custom_fields": []
                            },
                            "39528": {
                                "id": 39528,
                                "resource_id": 50,
                                "resource": "Sample Resource B > Große Halle",
                                "from": "2023-10-13 00:00",
                                "to": "2023-10-13 18:00",
                                "custom_fields": []
                            }
                        }
                    }
                ],
                "custom_fields": {
                    "48": {
                        "56": {
                            "label": "New MF field ",
                            "value": "Geschäftleitungsmeeting / Managementtagung",
                            "category": 0
                        }
                    }
                },
                "comments": "",
                "customer_id": "21749",
                "customer": "DemoStore GmbH",
                "color": "#17df26"
            },
            {
                "id": 312886,
                "title": "Test booking for api",
                "resources": [
                    {
                        "resource_id": 5721,
                        "resource": "Conference Room C",
                        "instances": {
                            "39593": {
                                "id": 39593,
                                "resource_id": 8795,
                                "resource": "Conference Room C > The only child",
                                "from": "2023-10-11 11:00",
                                "to": "2023-10-11 16:00",
                                "custom_fields": []
                            },
                            "39594": {
                                "id": 39594,
                                "resource_id": 8795,
                                "resource": "Conference Room C > The only child",
                                "from": "2023-10-12 11:00",
                                "to": "2023-10-12 16:00",
                                "custom_fields": {
                                    "5721": {
                                        "49": {
                                            "label": "Radi-O",
                                            "value": "Yo!",
                                            "category": null
                                        },
                                        "58": {
                                            "label": "Your comment",
                                            "value": "Sample comment for API from instance",
                                            "category": 0
                                        },
                                        "56": {
                                            "label": "New MF field ",
                                            "value": "Tagung / Konferenz",
                                            "category": 0
                                        },
                                        "55": {
                                            "label": "Seat Type",
                                            "value": "L shape",
                                            "category": 0
                                        },
                                        "36": {
                                            "label": "Just admin",
                                            "value": "off",
                                            "category": null
                                        },
                                        "33": {
                                            "label": "Manager input field",
                                            "value": "test input field",
                                            "category": null
                                        },
                                        "32": {
                                            "label": "Mumbo Jumbo",
                                            "value": "off",
                                            "category": null
                                        },
                                        "28": {
                                            "label": "Just admin",
                                            "value": "off",
                                            "category": null
                                        },
                                        "22": {
                                            "label": "Manager input field",
                                            "value": "",
                                            "category": null
                                        },
                                        "21": {
                                            "label": "Yolo cb?",
                                            "value": "off",
                                            "category": null
                                        },
                                        "5": {
                                            "label": "Select Field B",
                                            "value": "A",
                                            "category": null
                                        },
                                        "4": {
                                            "label": "Input Field C",
                                            "value": "API input C",
                                            "category": null
                                        },
                                        "1": {
                                            "label": "Test Seats A",
                                            "value": "8",
                                            "category": null
                                        }
                                    }
                                }
                            },
                            "39595": {
                                "id": 39595,
                                "resource_id": 8795,
                                "resource": "Conference Room C > The only child",
                                "from": "2023-10-13 11:00",
                                "to": "2023-10-13 16:00",
                                "custom_fields": []
                            }
                        }
                    }
                ],
                "custom_fields": {
                    "5721": {
                        "49": {
                            "label": "Radi-O",
                            "value": "Hey",
                            "category": null
                        },
                        "58": {
                            "label": "Your comment",
                            "value": "Sample comment for api",
                            "category": 0
                        },
                        "56": {
                            "label": "New MF field ",
                            "value": "Tagung / Konferenz",
                            "category": 0
                        },
                        "55": {
                            "label": "Seat Type",
                            "value": "L shape",
                            "category": 0
                        },
                        "36": {
                            "label": "Just admin",
                            "value": "off",
                            "category": null
                        },
                        "33": {
                            "label": "Manager input field",
                            "value": "test input field",
                            "category": null
                        },
                        "32": {
                            "label": "Mumbo Jumbo",
                            "value": "on",
                            "category": null
                        },
                        "28": {
                            "label": "Just admin",
                            "value": "on",
                            "category": null
                        },
                        "21": {
                            "label": "Yolo cb?",
                            "value": "on",
                            "category": null
                        },
                        "5": {
                            "label": "Select Field B",
                            "value": "A",
                            "category": null
                        },
                        "4": {
                            "label": "Input Field C",
                            "value": "API input C",
                            "category": null
                        },
                        "1": {
                            "label": "Test Seats A",
                            "value": "11",
                            "category": null
                        }
                    }
                },
                "color": "#17df26",
                "comments": "",
                "customer_id": "21749",
                "persons": [],
                "customer": "DemoStore GmbH"
            }
        ],
        "total": 3,
        "success": true
    }
    

  1. GET /api/v2/booking/<booking-id> : Details of booking based on ID.

    Example response can be found below,

    /api/v2/booking/312842?api_secret_key=<api_secret_key>
    
    {
        "data": {
            "id": 312842,
            "title": "",
            "resources": [
                {
                    "resource_id": 5721,
                    "resource": "Conference Room C",
                    "instances": [
                        {
                            "id": 39535,
                            "resource_id": 8795,
                            "resource": "Conference Room C > The only child",
                            "from": "2023-10-10 05:00",
                            "to": "2023-10-10 09:00",
                            "custom_fields": []
                        },
                        {
                            "id": 39536,
                            "resource_id": 8795,
                            "resource": "Conference Room C > The only child",
                            "from": "2023-10-11 05:00",
                            "to": "2023-10-11 09:00",
                            "custom_fields": []
                        },
                        {
                            "id": 39537,
                            "resource_id": 8795,
                            "resource": "Conference Room C > The only child",
                            "from": "2023-10-12 05:00",
                            "to": "2023-10-12 09:00",
                            "custom_fields": []
                        }
                    ],
                    "features": {
                        "451": {
                            "rule_interval": "per_quantity",
                            "rule_price": 10.149,
                            "rule_name": "Projectors",
                            "price_cost": 0,
                            "quantity": "0"
                        },
                        "699": {
                            "rule_interval": "per_hour",
                            "rule_price": 0,
                            "rule_name": "t1",
                            "price_cost": 0,
                            "quantity": "0"
                        }
                    },
                    "inventory": {
                        "13": {
                            "rule_interval": "per_hour",
                            "rule_price": 2.371,
                            "rule_name": "Inv_item1",
                            "price_cost": 0,
                            "quantity": "0"
                        }
                    },
                    "custom_fields": {
                        "5721": {
                            "58": {
                                "label": "Your comment",
                                "value": "",
                                "category": 0
                            },
                            "56": {
                                "label": "New MF field ",
                                "value": "Geschäftleitungsmeeting / Managementtagung",
                                "category": 0
                            },
                            "36": {
                                "label": "Just admin",
                                "value": "off",
                                "category": null
                            },
                            "28": {
                                "label": "Just admin",
                                "value": "off",
                                "category": null
                            },
                            "21": {
                                "label": "Yolo cb?",
                                "value": "off",
                                "category": null
                            },
                            "5": {
                                "label": "Select Field B",
                                "value": "A",
                                "category": null
                            },
                            "4": {
                                "label": "Input Field C",
                                "value": "",
                                "category": null
                            },
                            "1": {
                                "label": "Test Seats A",
                                "value": "11",
                                "category": null
                            }
                        }
                    }
                }
            ],
            "comments": "",
            "customer_id": "21749",
            "persons": [],
            "color": "#17df26"
        },
        "total": 1,
        "success": true
    }
    

  2. GET /api/v2/availability : List of available time-slots at resource.

    Example response can be found below,

    /api/v2/availability?resource_id=48&date_from=2018-11-01&date_to=2019-01-01&duration=02:00&free_text_field_ids=1,2,3&free_text_field_conditions=great_than_et,,et&free_text_field_values=0,True,10&limit=4&api_secret_key=<api_secret_key>
    
    {
      "data":[
         {
            "resource_id":49,
            "dates":{
               "2018-11-01":[
                  {
                     "time_from":"08:00",
                     "time_to":"10:00"
                  },
                  {
                     "time_from":"10:00",
                     "time_to":"12:00"
                  },
                  {
                     "time_from":"12:00",
                     "time_to":"14:00"
                  },
                  {
                     "time_from":"14:00",
                     "time_to":"16:00"
                  }
               ]
            }
         },
         {
            "resource_id":50,
            "dates":[
    
            ]
         }
      ],
      "total":4,
      "success":true
    }
    

  3. GET /api/v2/profile : Get details of a manager.

    Example response can be found below,

    /api/v2/profile?api_secret_key=<api_secret_key>
    
    {
      "data":{
         "first_name": "LOY",
         "last_name": "Manager",
         "company_name": "The Manager",
         "email": "manager@locaboo.com",
         "logo":"https:\/\/app.locaboo\/files\/user\/46\/28227338c515a8369c92800f3299d4bc-d9sxx8q.jpg",
         "logo_thumbnail":"https:\/\/app.locaboo\/files\/user\/46\/thumb_28227338c515a8369c92800f3299d4bc-d9sxx8q.jpg",
         "currency": "EUR",
         "language": "en",
         "created": "2016-06-02",
         "age": "3",
         "zip": "55555",
         "city": "Testhausen",
         "country": "DE",
         "phone": "123456789456",
         "fax": "123456789123",
         "address": "Test-Str. 1"
      },
      "total":16,
      "success":true
    }
    

  4. GET /api/v2/customer_list : List of customers along with the fields available for each customer.

    Example response can be found below,

    /api/v2/customer_list?api_secret_key=<api_secret_key>
    
    {
      "data":[
          {
            "id": 41,
            "email": "matthias1@loy.info",
            "company_name": "Locaboo G",
            "first_name": "Matthias",
            "last_name": "Dillmann",
            "show_name": "Locaboo G",
            "created": "2015-05-13T14:49:41+02:00",
            "customer_id": 2024,
            "customer_number": 100079,
            "customer_number_prefix": null,
            "tags": [
              {
                "id": 513296,
                "customer_id": 41,
                "key": "customer_tag",
                "value": "1",
                "tag": {
                  "id": 1,
                  "manager_id": 46,
                  "tag_name": "Tag 3000",
                  "created_by": 46,
                  "created_date": "2019-07-23T00:00:00+02:00"
                }
              },
              {
                "id": 513297,
                "customer_id": 41,
                "key": "customer_tag",
                "value": "4",
                "tag": {
                  "id": 4,
                  "manager_id": 46,
                  "tag_name": "Tag 3",
                  "created_by": 46,
                  "created_date": "2019-07-23T00:00:00+02:00"
                }
              }
            ],
            "groups": [
              {
                "id": 513298,
                "customer_id": 41,
                "key": "customer_group_id",
                "value": "145",
                "group": {
                  "id": 145,
                  "user_id": 46,
                  "name": "Gang 1",
                  "description": "",
                  "public_group": 0,
                  "defult_group": 0
                }
              }
            ],
            "street": null,
            "zip": null,
            "city": null,
            "phone": null,
            "noletter": null,
            "color": null,
            "salutation": null,
            "country": null,
            "house_number": null,
            "customer_account_number": null,
            "salutation_title": null,
            "last_login": "2017-03-10T16:34:37+01:00",
            "customer_created_date": "2015-05-13T14:49:41+02:00"
          },
          {
            "id": 48,
            "email": "customer@locaboo.com",
            "company_name": "Locaboo B",
            "first_name": "Test",
            "last_name": "Customer",
            "show_name": "Locaboo B",
            "created": "2015-06-01T15:47:18+02:00",
            "customer_id": 2025,
            "customer_number": null,
            "customer_number_prefix": null,
            "tags": [],
            "groups": [],
            "street": null,
            "zip": null,
            "city": null,
            "phone": null,
            "noletter": null,
            "color": null,
            "salutation": null,
            "country": null,
            "house_number": null,
            "customer_account_number": null,
            "salutation_title": null,
            "last_login": "",
            "customer_created_date": "2015-06-01T15:47:18+02:00"
          },
          {
            "id": 54,
            "email": "customer_d@locaboo.com",
            "company_name": "Locaboo D",
            "first_name": "Customer",
            "last_name": "D",
            "show_name": "Locaboo D",
            "created": "2015-06-12T07:25:55+02:00",
            "customer_id": 2026,
            "customer_number": null,
            "customer_number_prefix": null,
            "tags": [],
            "groups": [],
            "street": null,
            "zip": null,
            "city": null,
            "phone": null,
            "noletter": null,
            "color": null,
            "salutation": null,
            "country": null,
            "house_number": null,
            "customer_account_number": null,
            "salutation_title": null,
            "last_login": "",
            "customer_created_date": "2015-06-12T07:25:55+02:00"
          }
        ],
      "total":3,
      "success":true
    } 
    

  5. GET /api/v2/inventory_list : List of inventory along with the fields available for each inventory.

    Example response can be found below,

    /api/v2/inventory_list?api_secret_key=<api_secret_key>
    
    {
      "data":[
         {
          "id":1890,
          "name":"Inv_item1",
          "image":"",
          "created_on":"2020-09-02T12:53:05+02:00",
          "description":"",
          "inventory_no":"",
          "i_type":"",
          "model":"",
          "serial_no":"",
          "quantity":"1",
          "price_cost":"0",
          "prices":[
              {
                  "price":"20",
                  "customer_groups":["All"],
                  "interval":"per_hour",
                  "tax":19
              },
              {
                  "price":"2",
                  "customer_groups":{
                      "1182":"Group 1",
                      "1183":"group 2"
                  },
                  "interval":"per_hour",
                  "tax":"34"
              }
          ],
          "resources":
              {
              "48":"Sample Resource A",
              "49":"Sample Resource B"
              }
        }
      ],
      "total":1,
      "success":true
    } 
    

  6. GET /api/v2/service_list : List of services along with the fields available for each service.

    Example response can be found below,

    /api/v2/service_list?api_secret_key=<api_secret_key>
    
    {
      "data":[
         {
             "id":686,
             "name":"CJ Service",
             "image":"",
             "created_on":"2019-02-25T08:37:30+01:00",
             "description":"",
             "prices":[
              {
                  "price":"20",
                  "customer_groups":["All"],
                  "interval":"per_hour",
                  "tax":19
              },
              {
                  "price":"2",
                  "customer_groups":{
                      "1182":"Group 1",
                      "1183":"group 2"
                  },
                  "interval":"per_hour",
                  "tax":"34"
              }
            ],
          "resources":
              {
              "48":"Sample Resource A",
              "49":"Sample Resource B"
              }
          }
      ],
      "total":1,
      "success":true
    } 
    

  7. GET /api/v2/invoice_list : List of invoices along with the fields available for each invoice.

    Example response can be found below,

    /api/v2/invoice_list?api_secret_key=<api_secret_key>
    {
      "data": [
        {
          "id": 3823,
          "invoice_number": "RE20222147484368",
          "file": "InvoiceX_RE20222147484368.pdf",
          "discount_price": 0,
          "total_price": 6302.95,
          "currency": "EUR",
          "document_date": "2024-10-09T00:00:00+02:00",
          "created": "09.10.2024 13:59",
          "booking_reference": "",
          "payment_method": null,
          "invoice_type": "invoice",
          "processed_status": "No",
          "approved": 1,
          "text": "",
          "discount": {
            "type": null,
            "rate": null
          },
          "invoice_number_suffix_label": "",
          "payment_status": "Offen",
          "payment_type": "",
          "status": "Neu",
          "due_date": "19.10.2024",
          "customer": {
            "id": 21749,
            "company": "DemoStore GmbH",
            "first_name": "Vineeth",
            "last_name": "Krishnan",
            "street": "Pappelallee",
            "house_number": "1234",
            "zip": "09427",
            "city": "Ehrenfriedersdorf",
            "country": "CH"
          },
          "invoice_rows": [
            {
              "id": 15585,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323881,
              "type": "Einzel",
              "rate": "-1 Pro Stunde",
              "duration": 1,
              "unit": "hours",
              "price": 200,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 200
            },
            {
              "id": 15586,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323887,
              "type": "Einzel",
              "rate": "-1 Pro Stunde",
              "duration": 4,
              "unit": "hours",
              "price": 240,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 240
            },
            {
              "id": 15587,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323893,
              "type": "Einzel",
              "rate": "-1 Pro Stunde",
              "duration": 1,
              "unit": "hours",
              "price": 200,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 200
            },
            {
              "id": 15588,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323887,
              "type": "Inventar",
              "rate": "23 Pro Minute",
              "duration": 15588,
              "unit": 15588,
              "price": 5520,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 5520
            },
            {
              "id": 15589,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323887,
              "type": "Inventar",
              "rate": "7.3 pro 30 Minuten",
              "duration": 15589,
              "unit": 15589,
              "price": 58.4,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 58.4
            },
            {
              "id": 15590,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323887,
              "type": "Service",
              "rate": "3 Pro Stunde",
              "duration": 15590,
              "unit": 15590,
              "price": 12,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 12
            },
            {
              "id": 15591,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323887,
              "type": "Service",
              "rate": "1 Pro Stunde",
              "duration": 15591,
              "unit": 15591,
              "price": 4,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 4
            },
            {
              "id": 15592,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323887,
              "type": "Service",
              "rate": "7.3 pro 30 Minuten",
              "duration": 15592,
              "unit": 15592,
              "price": 58.4,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 58.4
            },
            {
              "id": 15593,
              "date": "09.10.2024",
              "resource_id": 15869,
              "booking_id": 323887,
              "type": "Service",
              "rate": "10.149 Pro St\u00fcck",
              "duration": 15593,
              "unit": 15593,
              "price": 10.149,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 10.149
            }
          ]
        },
        {
          "id": 3814,
          "invoice_number": "2147484364",
          "file": "Caution_2147484364.pdf",
          "discount_price": 0,
          "total_price": 123,
          "currency": "EUR",
          "document_date": "2024-10-07T13:08:45+02:00",
          "created": "07.10.2024 13:08",
          "booking_reference": "",
          "payment_method": null,
          "invoice_type": "deposit",
          "processed_status": "No",
          "approved": 1,
          "text": "",
          "discount": {
            "type": null,
            "rate": null
          },
          "invoice_number_suffix_label": "Anzahlungsrechnung",
          "payment_status": "Offen",
          "payment_type": "",
          "status": "Neu",
          "due_date": "",
          "customer": {
            "id": 21749,
            "company": "DemoStore GmbH",
            "first_name": "Vineeth",
            "last_name": "Krishnan",
            "street": "Pappelallee",
            "house_number": "1234",
            "zip": "09427",
            "city": "Ehrenfriedersdorf",
            "country": "CH"
          },
          "invoice_rows": [
            {
              "id": 15563,
              "date": "07.10.2024",
              "resource_id": 0,
              "booking_id": 0,
              "type": "Kaution",
              "rate": 123,
              "duration": 15563,
              "unit": 15563,
              "price": 123,
              "discount": null,
              "tax_rate": 0,
              "tax": 0,
              "total": 123
            }
          ]
        }
      ],
      "total": 892,
      "success": true,
      "limit": 2,
      "offset": 0
    }
    

  8. GET /api/v2/invoice_details : The invoice_details API allows you to retrieve detailed information for a specific invoice. By providing the unique invoice_number.

    Example response can be found below,

    /api/v2/invoice_details?api_secret_key=<api_secret_key>&invoice_number=<invoice_number>
    {
      "data": {
        "booking": {
          "15585": {
            "type": "special",
            "period": "09.10.2024",
            "date": "2024-10-09",
            "time": [
              {
                "from": "01:00",
                "to": "02:00"
              }
            ],
            "event_id": 323881,
            "booking": "preperation",
            "cost_centre": "",
            "tax_cost_centre": "",
            "general_ledger_account": "",
            "tax_general_ledger_account": "",
            "resource_id": 15869,
            "resource_text": "Foodball Stadium",
            "units": 1,
            "units_accurate": 1,
            "unit_type": "hours",
            "interval_price": -1,
            "price_for_scale": 200,
            "interval": "per_hour",
            "tax": 0,
            "price": "200.00000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "booking_discount": 0,
            "total": "200.000000",
            "multi_day_spanning": "",
            "instance_start_date": "2024-10-09 01:00:00",
            "instance_end_date": "2024-10-09 02:00:00",
            "instance_id": "90185",
            "resource_hours": 1,
            "ePlanpersonCount": "",
            "status": true,
            "booking_status": true,
            "price_description": "",
            "price_rule_id": "4330",
            "price_rule_title": "3 KGK ab 1.6.24",
            "price_rule_display_interval": "per_hour",
            "offer_interval": "",
            "offer_price": 0,
            "purchased_offer_id": "0",
            "offer_id": "0",
            "multi_resource_price_applied": "",
            "remark": "",
            "is_edited": 0,
            "canceled": 0,
            "edit_history": "",
            "discount": 0,
            "discount_type": "percent",
            "discount_price": 0,
            "custom_fields": []
          },
          "15586": {
            "type": "special",
            "period": "09.10.2024",
            "date": "2024-10-09",
            "time": [
              {
                "from": "02:00",
                "to": "06:00"
              }
            ],
            "event_id": 323887,
            "booking": "Conference",
            "cost_centre": "",
            "tax_cost_centre": "",
            "general_ledger_account": "",
            "tax_general_ledger_account": "",
            "resource_id": 15869,
            "resource_text": "Foodball Stadium",
            "units": 4,
            "units_accurate": 4,
            "unit_type": "hours",
            "interval_price": -1,
            "price_for_scale": 240,
            "interval": "per_hour",
            "tax": 0,
            "price": "240.00000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "booking_discount": 0,
            "total": "240.000000",
            "multi_day_spanning": "",
            "instance_start_date": "2024-10-09 02:00:00",
            "instance_end_date": "2024-10-09 06:00:00",
            "instance_id": "90189",
            "resource_hours": 4,
            "ePlanpersonCount": "0",
            "status": true,
            "booking_status": true,
            "price_description": "",
            "price_rule_id": "4330",
            "price_rule_title": "3 KGK ab 1.6.24",
            "price_rule_display_interval": "per_hour",
            "offer_interval": "",
            "offer_price": 0,
            "purchased_offer_id": "0",
            "offer_id": "0",
            "multi_resource_price_applied": "",
            "remark": "",
            "is_edited": 0,
            "canceled": 0,
            "edit_history": "",
            "discount": 0,
            "discount_type": "percent",
            "discount_price": 0,
            "custom_fields": []
          },
          "15587": {
            "type": "special",
            "period": "09.10.2024",
            "date": "2024-10-09",
            "time": [
              {
                "from": "06:00",
                "to": "07:00"
              }
            ],
            "event_id": 323893,
            "booking": "Cleaning",
            "cost_centre": "",
            "tax_cost_centre": "",
            "general_ledger_account": "",
            "tax_general_ledger_account": "",
            "resource_id": 15869,
            "resource_text": "Foodball Stadium",
            "units": 1,
            "units_accurate": 1,
            "unit_type": "hours",
            "interval_price": -1,
            "price_for_scale": 200,
            "interval": "per_hour",
            "tax": 0,
            "price": "200.00000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "booking_discount": 0,
            "total": "200.000000",
            "multi_day_spanning": "",
            "instance_start_date": "2024-10-09 06:00:00",
            "instance_end_date": "2024-10-09 07:00:00",
            "instance_id": "90193",
            "resource_hours": 1,
            "ePlanpersonCount": "",
            "status": true,
            "booking_status": true,
            "price_description": "",
            "price_rule_id": "4330",
            "price_rule_title": "3 KGK ab 1.6.24",
            "price_rule_display_interval": "per_hour",
            "offer_interval": "",
            "offer_price": 0,
            "purchased_offer_id": "0",
            "offer_id": "0",
            "multi_resource_price_applied": "",
            "remark": "",
            "is_edited": 0,
            "canceled": 0,
            "edit_history": "",
            "discount": 0,
            "discount_type": "percent",
            "discount_price": 0,
            "custom_fields": []
          }
        },
        "inventory": {
          "15588": {
            "date": "2024-10-09",
            "period": "",
            "id": "13",
            "inventory": "Inv_item1",
            "quantity": "1",
            "booking_id": 323887,
            "booking": "Conference",
            "resource_id": 15869,
            "resource": "Foodball Stadium",
            "units": 4,
            "unit_type": "hours",
            "interval_price": 23,
            "interval": "per_minute",
            "tax": 0,
            "price": "5520.00000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "total": "5520.000000",
            "multi_day_spanning": "",
            "instance_start_date": "",
            "instance_end_date": "",
            "status": true,
            "booking_status": true
          },
          "15589": {
            "date": "2024-10-09",
            "period": "",
            "id": "1317",
            "inventory": "Sample inventory",
            "quantity": "1",
            "booking_id": 323887,
            "booking": "Conference",
            "resource_id": 15869,
            "resource": "Foodball Stadium",
            "units": 4,
            "unit_type": "hours",
            "interval_price": 7.3,
            "interval": "per_30_minutes",
            "tax": 0,
            "price": "58.40000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "total": "58.400000",
            "multi_day_spanning": "",
            "instance_start_date": "",
            "instance_end_date": "",
            "status": true,
            "booking_status": true
          }
        },
        "feature": {
          "15590": {
            "date": "2024-10-09",
            "period": "",
            "id": "128",
            "feature": "Reduced Feat",
            "quantity": "1",
            "booking_id": 323887,
            "booking": "Conference",
            "resource_id": 15869,
            "resource": "Foodball Stadium",
            "units": 4,
            "unit_type": "hours",
            "interval_price": 3,
            "interval": "per_hour",
            "tax": 0,
            "price": "12.00000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "total": "12.000000",
            "multi_day_spanning": "",
            "instance_start_date": "",
            "instance_end_date": "",
            "status": true,
            "booking_status": true
          },
          "15591": {
            "date": "2024-10-09",
            "period": "",
            "id": "686",
            "feature": "CJ Service",
            "quantity": "1",
            "booking_id": 323887,
            "booking": "Conference",
            "resource_id": 15869,
            "resource": "Foodball Stadium",
            "units": 4,
            "unit_type": "hours",
            "interval_price": 1,
            "interval": "per_hour",
            "tax": 0,
            "price": "4.00000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "total": "4.000000",
            "multi_day_spanning": "",
            "instance_start_date": "",
            "instance_end_date": "",
            "status": true,
            "booking_status": true
          },
          "15592": {
            "date": "2024-10-09",
            "period": "",
            "id": "1055",
            "feature": "Sample service",
            "quantity": "1",
            "booking_id": 323887,
            "booking": "Conference",
            "resource_id": 15869,
            "resource": "Foodball Stadium",
            "units": 4,
            "unit_type": "hours",
            "interval_price": 7.3,
            "interval": "per_30_minutes",
            "tax": 0,
            "price": "58.40000",
            "price_cost": 0,
            "tax_price": "0.00000",
            "total": "58.400000",
            "multi_day_spanning": "",
            "instance_start_date": "",
            "instance_end_date": "",
            "status": true,
            "booking_status": true
          },
          "15593": {
            "date": "2024-10-09",
            "period": "",
            "id": "451",
            "feature": "Projectors",
            "quantity": "1",
            "booking_id": 323887,
            "booking": "Conference",
            "resource_id": 15869,
            "resource": "Foodball Stadium",
            "units": 4,
            "unit_type": "hours",
            "interval_price": 10.149,
            "interval": "per_quantity",
            "tax": 0,
            "price": "10.14900",
            "price_cost": 0,
            "tax_price": "0.00000",
            "total": "10.149000",
            "multi_day_spanning": "",
            "instance_start_date": "",
            "instance_end_date": "",
            "status": true,
            "booking_status": true
          }
        },
        "person": [],
        "deposit": [],
        "offer": [],
        "calc": {
          "total": {
            "booking": 640.00001,
            "booking_tax": 0,
            "inventory": 5578.400009999999,
            "inventory_tax": 0,
            "feature": 84.54901,
            "feature_tax": 0,
            "person": 0,
            "person_tax": 0,
            "deposit": 0,
            "deposit_tax": 0,
            "booking_offer": 0,
            "offer": 0,
            "offer_tax": 0,
            "offer_price": 0
          },
          "tax": [
            0
          ],
          "tax_from": [
            6302.949
          ],
          "cost_centre": [],
          "general_ledger": []
        },
        "invoice": {
          "customer": {
            "id": 21749,
            "name": "DemoStore GmbH",
            "email": "vineeth@loy.info",
            "salutation": "1",
            "customer_number": 100010,
            "financial_number": "",
            "cost_centre": "",
            "reference_sign": "",
            "reference_number": "",
            "items_shown_in_invoice": {
              "customer_number": 0,
              "reference_sign": 0,
              "financial_number": 0,
              "cost_centre": 0,
              "reference_number": 0
            },
            "mandate": "100010",
            "customer_account_number": "4444",
            "debtor_account_number": "",
            "customer_number_prefix": "CUST",
            "customer_full_name": "Vineeth Krishnan",
            "salutation_txt": "Frau",
            "salutation_title_txt": "",
            "company_name": "DemoStore GmbH",
            "customer_zip": "09427",
            "customer_street": "Pappelallee",
            "customer_house_number": "1234",
            "customer_country": "CH",
            "customer_city": "Ehrenfriedersdorf",
            "first_name": "Vineeth",
            "last_name": "Krishnan",
            "customer_phone": "123456798",
            "iban": "CH123456789"
          },
          "document_date": "2024-10-09 00:00:00",
          "created": "2024-10-09 13:59:01",
          "modified": "2024-10-09 13:59:15",
          "invoice_id": 3823,
          "manager_id": 46,
          "invoice_number": 2147484368,
          "invoice_number_prefix": "RE2022",
          "file": "InvoiceX_RE20222147484368.pdf",
          "invoice_sent": false,
          "comments": "",
          "invoice_comment": "",
          "invoice_text_extra": "",
          "closing_text_extra": "",
          "booking_description_extra": "Custom Booking Description",
          "down_payment": 0,
          "total_price": 6302.95,
          "currency": "EUR",
          "discount": {
            "id": 0,
            "code": "",
            "price": 0
          },
          "status": 0,
          "payment_method": null,
          "invoice_type": "invoice",
          "billing_address": 0,
          "processed_status": "No",
          "processed_on": null,
          "processed_from": 0,
          "balance_payment": "6302.95",
          "payment_history": "a:0:{}",
          "offer_id": 0,
          "approved": 1,
          "booking_reference": "",
          "payment_due_date": "2024-10-19",
          "payment_transaction_id": "",
          "eplan_id": 0,
          "eplan_document_id": 0,
          "payment_reference_number": "",
          "booking_reference_modulo11": "",
          "created_by": 0,
          "is_caution": false,
          "custom_fields": "[]",
          "final_discount": "",
          "final_discount_type": "percentage",
          "final_discount_price": 0
        }
      },
      "success": true
    }
    

  9. GET /api/v2/booking_save : Create/Update the bookings.

    Example response can be found below,

    /api/v2/booking_save?api_secret_key=<api_secret_key>
    
    {
      "data":[
         {
             "id":46330,
             "message":"Successfully cerated the booking."
          }
      ],
      "total":0,
      "success":true
    } 
    

  10. GET /api/v2/event_list : List of events under a manager.

    Example response can be found below,

    /api/v2/event_list?date_from=2021-05-10&date_to=2021-05-20&api_secret_key=<api_secret_key>
    
    {
      "data":[
         {
            "id":1,
            "event_title":"Event 1",
            "marketing_data_title":"Test marketing title",
            "marketing_data_description":"Description",
            "date_from":"13.05.2021",
            "date_to":"14.05.2021",
            "time_from":"03:00",
            "time_to":"05:00",
            "entrance_time":"05:00",
            "beginning_time":"08:00",
            "marketing_data_ticket_link":"https:\/\/app.locaboo.com\/",
            "marketing_data_price":"12",
            "marketing_data_notice_text":"Test",
            "image":"https:\/\/app.locaboo.com\/files\/eplanning\/marketingdata\/262\/test_file1.jpg"
        },
        {
            "id":2,
            "event_title":"Event 2",
            "marketing_data_title":"Test marketing title",
            "marketing_data_description":"Description",
            "date_from":"15.05.2021",
            "date_to":"16.05.2021",
            "time_from":"03:00",
            "time_to":"05:00",
            "entrance_time":"05:00",
            "beginning_time":"08:00",
            "marketing_data_ticket_link":"https:\/\/app.locaboo.com\/",
            "marketing_data_price":"12",
            "marketing_data_notice_text":"Test",
            "image":"https:\/\/app.locaboo.com\/files\/eplanning\/marketingdata\/262\/test_file2.jpg"
        }
      ],
      "total":2,
      "success":true
    } 
    

  11. GET /api/v2/event_details/<event-id> : Details of event based on ID.

    Example response can be found below,

    /api/v2/event_details/<event-id>?api_secret_key=<api_secret_key>
    
    {
      "data":[
         {
          "id":"1",
          "event_title":"Event 1",
          "marketing_data_title":"Test Title",
          "marketing_data_description":"Test",
          "date_from":"13.05.2021",
          "date_to":"14.05.2021",
          "time_from":"06:28",
          "time_to":"12:00",
          "entrance_time":"04:00",
          "beginning_time":"09:00",
          "marketing_data_ticket_link":"",
          "marketing_data_price":"",
          "marketing_data_notice_text":"",
          "image":"https:\/\/app.locaboo.com\/files\/eplanning\/marketingdata\/262\/test_file1.jpg",
          "documents":[
            {
              "document_type":"Offer",
              "document_number":"OFFER 1",
              "price":11.5,
              "document_date":"13.05.2021",
              "processed_status":1,
              "processed_date":"14.05.2021"
              "bookings":[
                {
                    "id":149293,
                    "title":"Document test booking",
                    "resources":[
                      "resource_id":47,
                      "resource":"Sandkasten",
                      "instances":[
                         {
                            "id":6201748,
                            "resource_id":47,
                            "resource":"Sandkasten",
                            "from":"16.05.2021 09:00",
                            "to":"16.05.2021 17:00"
                         },
                         {
                            "id":6201749,
                            "resource_id":47,
                            "resource":"Sandkasten",
                            "from":"16.05.2021 09:00",
                            "to":"16.05.2021 17:00"
                         }
                      ]
                    ]
                 },
                 {
                    "id":193527,
                    "title":"Test",
                    "resources":[
                      "resource_id":48,
                      "resource":"Stefan Test",
                      "instances":[
                         {
                            "id":5693679,
                            "resource_id":49,
                            "resource":"Stefan Test > Kleine Halle",
                            "from":"16.05.2021 12:00",
                            "to":"16.05.2021 12:15"
                         }
                      ]
                    ]
                 }
              ]
            },
            {
              "document_type":"Order confirmation",
              "document_number":"CONF 1",
              "price":12.65,
              "document_date":"14.05.2021",
              "processed_status":1,
              "processed_date":"15.05.2021"
              "bookings":[]"
            },
            {
              "document_type":"Invoice",
              "document_number":"INVOICE 1",
              "price":12.65,
              "document_date":"15.05.2021",
              "processed_status":0,
              "processed_date":null
              "bookings":[]"
            }
          ]
        }
      ],
      "total":2,
      "success":true
    } 
    

  12. POST /api/v2/booking_add : Add new booking or booking request.

    Example response can be found below,

    /api/v2/booking_add
    
    {
      "data":[
         {
             "id":46330,
             "message":"Successfully created the booking."
          }
      ],
      "total":1,
      "success":true
    } 
    

  13. POST /api/v2/customer_add : Add new customer.

    Example response can be found below,

    /api/v2/customer_add
    
       {
         "data":[
            {
                "id":1234,
                "message":"Successfully Added"
             }
         ],
         "success":true
       } 
       
  14. POST /api/v2/customer_edit : Edit existing customer.

    Example response can be found below,

    /api/v2/customer_edit
    
       {
         "data":[
            {
                "id":1234,
                "message":"Edited successfully"
             }
         ],
         "success":true
       } 
       
  15. POST /api/v2/customer_address_add : Add customer addresses.

    Example response can be found below,

    /api/v2/customer_address_add
    
       {
         "data":[
            {
                "id":1234,
                "message":"Successfully Added"
             }
         ],
         "success":true
       }