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.
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.
Endpoint base : https://app.locaboo.com
Return response 200 only for successful API calls.
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
}
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
}
POST /api/v2/resource_add : Create a new resource.
title - Title of the resourceparent_id - ID of the parent resource. If provided, creates a resource part. Resource parts cannot have their own parts.platform_status - Activated on platform (default: 1)street_hnr - Street and house numberzip - ZIP/Postal codecity - City namecountry - Countrycontact_person - Contact person for the resourcephone - Phone numberfax - Fax numberinternal_comment - Internal commentpublic_comment - Public commentlat - Latitudelng - Longitudetags - Tags for the resource. Provide as an comma-separated string.Tag1, Tag2, Tag3
customfields - Custom fields for the resource (only allowed for main resources, not for resource parts). Format:{
"field_id1": "value1",
"field_id2": "value2"
}
street_hnr, zip, city), the system will:
Example response can be found below,
/api/v2/resource_add?api_secret_key=<api_secret_key>
// Example Request
{
"title": "Meeting Room A",
"description": "A spacious meeting room with modern amenities",
"street_hnr": "Main Street 123",
"zip": "10115",
"city": "Berlin",
"contact_person": "John Smith",
"phone": "+49 30 1234567",
"tags": "Meeting Room, Conference, Projector"
}
// Example Response
{
"data": {
"id": 9876,
"message": "Resource added successfully"
},
"success": true
}
GET /api/v2/booking_list : List of bookings under a manager.
resource_id, date_from, date_to, time_from, time_to, show_detailsresource_id field should contain the unique ID of the Resource at locaboo.date_from and date_to are the date-range of the bookings to retrieve. The expected format is Y-m-d.time_from and time_to are the time-range of the bookings to retrieve. The expected format is H:i. This is optional.show_details is a flag to retrieve additional information of the bookings. Expected values are true|false. This is optional, and defaults to false.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
}
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
}
GET /api/v2/availability : List of available time-slots at resource.
resource_id, date_from, date_to, time_from, time_to, duration, limitresource_id field should contain either a single Resource ID or a comma separated string containing Resource IDs. This is optional.date_from and date_to are the date-range of the results to retrieve. The expected format is Y-m-d.time_from and time_to are the time-range of the results to retrieve. The expected format is H:i. This is optional.duration is the time-duration of the results to retrieve. The expected format is H:i. This is optional, and defaults to 01:00.free_text_field_ids_str is a comma separated value of all Custom field id's. The expected format is id1,id2... This is optional. The Custom field id's can be obtained from GET /api/v2/resource_list call, inside free_text_fields list.free_text_field_conditions_str is a comma separated value of all Custom field conditions. The expected format is less_than,less_than_et,et,great_than,great_than_et, or empty. This is required if free_text_field_ids_str is passed. The order is important and should follow the order of corresponding free_text_field_ids_str value.free_text_field_values_str is a comma separated value of all Custom field values. The expected format is value1,value2... Empty values can also be passed. This is required if free_text_field_ids_str is passed. The order is important and should follow the order of corresponding free_text_field_ids_str value.limit is the number of the results to retrieve. This is optional.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
}
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
}
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
}
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
}
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
}
GET /api/v2/invoice_list : List of invoices along with the fields available for each invoice.
limit, offset, datelimit - Maximum number of records to fetch.offset - Number of records to skip before starting to fetch.date - Retrieve invoices for a specific date. (Format: YYYY-MM-DD)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
}
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.
invoice_numberinvoice_number - Retrieve details for the specified invoice.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
}
GET /api/v2/booking_save : Create/Update the bookings.
booking_id, resource_id, date_from, date_to, time_from, time_to, booking_status, customer_first_name, customer_last_name, customer_email, customer_company, customer_salutation, customer_street, customer_zip, customer_phone, customer_citybooking_id field should contain the unique ID of the Booking at locaboo. This is optional. This field required only for updating the booking.resource_id field should contain the unique ID of the Resource at locaboo.date_from and date_to are the date-range of the booking to create. The expected format is Y-m-d.time_from and time_to are the time-range of the booking to create. The expected format is H:i. This is optional.booking_status is the status of the booking. Expected values are Live|Draft|Complete|Cancel. This is optional, and defaults to Live.customer_first_name is the first name of customer associated with the booking. This is optional.customer_last_name is the last name of customer associated with the booking. This is optional.customer_email is the email of customer associated with the booking. This is optional.customer_company is the company name of customer associated with the booking. This is optional.customer_salutation is the salutation of customer associated with the booking. . Expected values are Mr|Ms/Mrs|Pr|Dr. This is optional.customer_street is the street name of customer associated with the booking. This is optional.customer_zip is the zip code of customer associated with the booking. This is optional.customer_phone is the phone number of customer associated with the booking. This is optional.customer_city is the city name of customer associated with the booking. This is optional.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
}
GET /api/v2/event_list : List of events under a manager.
date_from and date_to are the date-range of the events to retrieve. The expected format is Y-m-d.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
}
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
}
POST /api/v2/booking_add : Add new booking or booking request.
booking_mode,
title,customer_id,persons,recurring,season_id,date_from,date_to,recurrence_type,daily_recurrence,weekly_type_select,weekly_recurrence,monthly_recurrence,yearly_recurrence,time_from,time_to,category_fields,multi_day,main_resource,resource_parts,custom_color,color,entrance_hall,booking_hidden_widget,internal_comments,comments,inventory,servicesbooking_mode field accepts the values direct_booking|booking_request. This is required.title is title of booking. This is optional.customer_id is customer_id of customer. This is optional.persons is array of person ID's for the booking. This is optional.recurring field accepts the values 0 if it is a single booking, and 1 if it is a recurring booking. This is required.season_id is the Season ID if it is a season booking. This is only required for season bookings.date_from is the start date of the booking in format YYYY-MM-DD. This is required.date_to is the end date of the booking in format YYYY-MM-DD. This is required.recurrence_type is the type of recurring booking. Accepted values are day,week,month,year. This is required if recurring is 1.daily_recurrence is an array that define the daily recurring timings. Accepted format is [
'from' => '09:00',
'to' => '10:00',
'full_day' => 0
]full_day is passed as 1 if full day booking. This is required if recurrence_type is day.weekly_type_select is the repeats of weekly recurring. Accepted values are week,biweek,triweek,quadweek. This is optional, defaults to week.weekly_recurrence is an array that define the weekly recurring timings. Accepted format is [
['day' => 'mon', 'full_day' => 1],
['day' => 'tue', 'from' => '09:00', 'to' => '10:00']
]
'a:2:{i:0;a:2:{s:3:"day";s:3:"mon";s:6:"full_day";i:1;}i:1;a:2:{s:3:"day";s:3:"tue";s:3:"from";s:5:"09:00";s:2:"to";s:5:"10:00";}}'
full_day is passed as 1 if full day booking. This is required if recurrence_type is week.monthly_recurrence is an array that define the monthly recurring timings. Accepted format is [
'mode' => 'day',
'days' => ['day' => '01', 'month' => '01'],
'from' => '09:00',
'to' => '10:00',
'full_day' => 0
]
mode is passed as day. So it means it repeats every nth day of every nth month. full_day is passed as 1 if full day booking.
[
'mode' => 'week',
'days' => [week_number' => 1, 'week_day' => 'tue', 'month' => '01'],
'from' => '09:00',
'to' => '10:00',
'full_day' => 0
];
mode is passed as week. So it means it repeats every nth week_number of every week_day day of every nth month. full_day is passed as 1 if full day booking.
recurrence_type is month.yearly_recurrence is an array that define the yearly recurring timings. Accepted format is [
'day' => '01',
'month' => '06',
'from' => '09:00',
'to' => '10:00',
'full_day' => 0
];
day of every nth month of every year. full_day is passed as 1 if full day booking.
recurrence_type is year.time_from is the start time of the booking in format HH:MM (24 hr format). This is required if recurring is 0.recurring is 1, then it is still required to be passed as 00:00 (for validation purpose).time_to is the end time of the booking in format HH:MM (24 hr format). This is required if recurring is 0.recurring is 1, then it is still required to be passed as 00:00 (for validation purpose).category_fields is the custom fields for the booking. Allowed format is [
'resource_id' => [
'free_text_field_id1' => 'value1',
'free_text_field_id2' => 'value2',
...
],
...
]
[
'48' => [
'52' => '21',
'58' => 'B'
],
'5721' => [
'5' => 'A'
]
]
multi_day field accepts the values 0 if it is a booking with from and to time, and 1 if it is a full day booking. This is optional and defaults to 0.main_resource is the ID of main resource of booking. This is required.resource_parts is an array of main resources and it's parts of the booking. Allowed format is
[
48 => [49],
5721 => [8795]
]
'{"48":[49],"5721":[8795]}'
custom_color field accepts the values 0 if no custom color is defined, and 1 if custom color is defined. This is optional and defaults to 0.color is the custom color value in Hex Code format. Eg#ff0000. This is required if custom_color is 1.entrance_hall field accepts the values 1 if booking needs to be shown in Entrance hall widget, and 0 if not needed. This is optional and defaults to 0.booking_hidden_widget field accepts the values 1 if booking needs to be hidden in widget, and 0 if not hidden. This is optional and defaults to 0.internal_comments is the internal comments for the booking. This is optional.comments is the public comments for the booking. This is optional.inventory is an array of inventory booked for this booking. Allowed format is
[
'resource_id' => [
'inventory_id' => [
'checked => 'on',
'quantity' => 1
]
]
]
Eg:
[
'48' => [
'1317' => [
'checked => 'on',
'quantity' => 1
]
]
]
services is an array of services booked for this booking. Allowed format is
[
'resource_id' => [
'service_id' => [
'checked => 'on',
'quantity' => 1
]
]
]
Eg:
[
'48' => [
'1317' => [
'checked => 'on',
'quantity' => 1
]
]
]
Example response can be found below,
/api/v2/booking_add
{
"data":[
{
"id":46330,
"message":"Successfully created the booking."
}
],
"total":1,
"success":true
}
POST /api/v2/customer_add : Add new customer.
color,
customer_number,customer_number_prefix,customer_account_number,debtor_account_number,
customer_group_id,customer_tags,default_customer_group,company_name,customer_department,
matriculation_number,salutation,salutation_title,customer_function,first_name,
last_name,show_name,street,house_number,zip,city,country,ust_id,email,phone,website,
mobile,customer_newsletter,bank_owner,iban,bic,mandate,internal_comment,reference_sign_shown_invoice,
reference_sign,financial_number_shown_invoice,financial_number,cost_centre_shown_invoice,
cost_centre,general_ledger_shown_invoice,
general_ledger,reference_number_shown_invoice,reference_number,master_id,primion_id
color field accepts the color value in Hex Code format eg:#ff0000.customer_number field accepts the customer number.customer_number_prefix field accepts the prefix for customer number.customer_account_number field accepts the customer account number.debtor_account_number field accepts the customer debtor account number.debtor_account_number field accepts the customer debtor account number.customer_group_id field accepts the customer group ID.customer_tags field accepts the customer tags.default_customer_group field accepts the customer default group.company_name field accepts the customer company name.customer_department field accepts the customer department.matriculation_number field accepts the customer matriculation number.salutation field accepts the customer salutation, accepted values 0/1 (0 = Mr., 1 = Ms./Mrs.).salutation_title field accepts the customer salutation title, accepted values 0/1 (0 = Dr., 1 = Pr.).customer_function field accepts the customer function.first_name field accepts the customer first name.last_name field accepts the customer last name.show_name field accepts the customer shown name.street,house_number,zip,city,country fields accepts the customer address details.ust_id,email,phone,website,mobile fields accepts the customer communication details.customer_newsletter field accepts the customer newsletter agreement, accepted values 0/1bank_owner,iban,bic,mandate fields accepts the customer payment info.internal_comment,reference_sign_shown_invoice,reference_sign,financial_number_shown_invoice,financial_number,
cost_centre_shown_invoice,cost_centre,general_ledger_shown_invoice,general_ledger,reference_number_shown_invoice,reference_number,master_id,primion_id fields accepts the customer additional settings.Example response can be found below,
/api/v2/customer_add
{
"data":[
{
"id":1234,
"message":"Successfully Added"
}
],
"success":true
}
POST /api/v2/customer_edit : Edit existing customer.
customer_id,color,
customer_number,customer_number_prefix,customer_account_number,debtor_account_number,
customer_group_id,customer_tags,default_customer_group,company_name,customer_department,
matriculation_number,salutation,salutation_title,customer_function,first_name,
last_name,show_name,street,house_number,zip,city,country,ust_id,email,phone,website,
mobile,customer_newsletter,bank_owner,iban,bic,mandate,internal_comment,reference_sign_shown_invoice,
reference_sign,financial_number_shown_invoice,financial_number,cost_centre_shown_invoice,
cost_centre,general_ledger_shown_invoice,
general_ledger,reference_number_shown_invoice,reference_number,master_id,primion_id
customer_id field accepts the customer's ID. This is required.color field accepts the color value in Hex Code format eg:#ff0000.customer_number field accepts the customer number.customer_number_prefix field accepts the prefix for customer number.customer_account_number field accepts the customer account number.debtor_account_number field accepts the customer debtor account number.debtor_account_number field accepts the customer debtor account number.customer_group_id field accepts the customer group ID.customer_tags field accepts the customer tags.default_customer_group field accepts the customer default group.company_name field accepts the customer company name.customer_department field accepts the customer department.matriculation_number field accepts the customer matriculation number.salutation field accepts the customer salutation, accepted values 0/1 (0 = Mr., 1 = Ms./Mrs.).salutation_title field accepts the customer salutation title, accepted values 0/1 (0 = Dr., 1 = Pr.).customer_function field accepts the customer function.first_name field accepts the customer first name.last_name field accepts the customer last name.show_name field accepts the customer shown name.street,house_number,zip,city,country fields accepts the customer address details.ust_id,email,phone,website,mobile fields accepts the customer communication details.customer_newsletter field accepts the customer newsletter agreement, accepted values 0/1bank_owner,iban,bic,mandate fields accepts the customer payment info.internal_comment,reference_sign_shown_invoice,reference_sign,financial_number_shown_invoice,financial_number,
cost_centre_shown_invoice,cost_centre,general_ledger_shown_invoice,general_ledger,reference_number_shown_invoice,reference_number,master_id,primion_id fields accepts the customer additional settings.Example response can be found below,
/api/v2/customer_edit
{
"data":[
{
"id":1234,
"message":"Edited successfully"
}
],
"success":true
}
POST /api/v2/customer_address_add : Add customer addresses.
customer_id,address
customer_id field accepts the customer's ID. This is required.address field accepts an array of addresses. The format of address array is as follows:
'address': [{
'company_name' => '',
'salutation' => 0/1 (0 = Mr., 1 = Ms./Mrs.),
'salutation_title' => 0/1 (0 = Dr., 1 = Pr.),
'function' => '',
'first_name' => '',
'last_name' => '',
'street' => '',
'house_number' => '',
'zip' => '',
'city' => '',
'country' => 'DE',
'UstID' => '',
'address_type' => '' / 'secondary',
'phone' => '',
'email' => '',
'mobile' => '',
}, {...}, ..]
.Example response can be found below,
/api/v2/customer_address_add
{
"data":[
{
"id":1234,
"message":"Successfully Added"
}
],
"success":true
}