POST businesses

Creates a single business in the localtunity network.

Resource URL

https://api.localtunity.com/v2/businesses

Example

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer {access_token}" https://api.localtunity.com/v2/businesses

Response 201 Status Code

                    {"id":"5569554"}                

Parameters

Note about time parameters:

Fields that represent time need to be civilian time formatted with the hours number (1-12), directly followed by a colon, directly followed by the minute number which must be divisible by 15 (00, 15, 30 45), directly followed by the period (am, pm). There must not be any spaces. Examples of acceptable formats: "9:00am", "10:15AM", "8:30pm", "11:45PM" Examples of unacceptable formats: "9:00 am", "12:11pm","9:01am", "13:00am", "0900"

name: (string, 255 characters max, required) The name of the business.

first_name: (string, 255 characters max, required) The first name of the primary owner of the business.

last_name: (string, 255 characters max, required) The last name of the primary owner of the business.

email: (string, 100 characters max, required) The primary email address for the business, this will be the username for the business in the Localtunity network.

phone_one: (string, 100 characters max, required) The primary phone number for the business.

password: (string, 255 characters max, required) The password for the business account.

website: (string, 255 characters max, optional) The business's website url.

description: (string, optional) A description of the business's services.

is_multi_location: (boolean, 0|1, optional) Defaults to false. Determines if Multi-Location Viewing logic is used when displaying the business to a frontend user. When turned on, Primary location logic will not be used, the location displaed on the business app homepage will be determiend by the location_id provided in the url. Proper url structure for multi_location businesses homepages: https://localtunity.com/:business/:location_id

category_one_id: (integer, optional) The id of the businesse's first category. A list of categories can be fetched with the categories end-point.

category_two_id: (integer, optional) The id of the businesse's second category. A list of categories can be fetched with the categories end-point.

category_three_id: (integer, optional) The id of the businesse's third category. A list of categories can be fetched with the categories end-point.

monday_opening_hours: (string, See the note about time parameters, optional) The time that the business opens up on Mondays.

monday_closing_hours: (string, See the note about time parameters, optional) The time that the business closes up on Mondays.

tuesday_opening_hours: (string, See the note about time parameters, optional) The time that the business opens up on Tuesdays.

tuesday_closing_hours: (string, See the note about time parameters, optional) The time that the business closes up on Tuesdays.

wednesday_opening_hours: (string, See the note about time parameters, optional) The time that the business opens up on Wendesdays.

wednesday_closing_hours: (string, See the note about time parameters, optional) The time that the business closes up on Wednesdays.

thursday_opening_hours: (string, See the note about time parameters, optional) The time that the business opens up on Thursdays.

thursday_closing_hours: (string, See the note about time parameters, optional) The time that the business closes up on Thursdays.

friday_opening_hours: (string, See the note about time parameters, optional) The time that the business opens up on Fridays.

friday_closing_hours: (string, See the note about time parameters, optional) The time that the business closes up on Fridays.

saturday_opening_hours: (string, See the note about time parameters, optional) The time that the business opens up on Saturdays.

saturday_closing_hours: (string, See the note about time parameters, optional) The time that the business closes up on Saturdays.

sunday_opening_hours: (string, See the note about time parameters, optional) The time that the business opens up on Sundays.

sunday_closing_hours: (string, See the note about time parameters, optional) The time that the business closes up on Sundays.