Create Location

Creates new location

post-api/locations/create

https://api.oauth.pabau.com/{api_key}/locations/create

 

Request

 

Query Parameters:

api_key*

location_name*                                             String

address                                                          String

street                                                             String

city                                                                String

county                                                           String

postcode                                                        String

can_book_online                                           Int

phone                                                            String

website                                                          String

is_active                                                        Int 

bookable_online                                            Int

can_book_calendar                                       Int

is_default                                                       Int

email                                                             String

send_conf_email                                           Int

show_online                                                  Int

loc_order                                                       Int

region                                                            String

color                                                              String

notice                                                            String

image                                                            String

working_hours                                              Array

Working Hours array:

day_name                                                     String

opening_hours                                              String

closing_hours                                               String

closed                                                           Int

location_id                                                    Int

company_id                                                  Int

 

Response sample

application/json

 

{
"status": true,
"insert_id": {location_id},
"message": "Location created successfully!"
}