Create business
Description#
Allows creation of businesses.
Input#
Business name#
- Type
- String
- Validation
- Required
- Localizable
Tagline#
- Type
- String
- Validation
- Required
- Localizable
Thumbnail#
- Type
- Image file
- Validation
- Required
Gallery#
- Type
- Array of image files
Business type#
- Type
- Enum of type string
- Options
- Restaurant
- Retail
- Validation
- Required
Categories#
- Type
- Array of category entitycategories
Delivery methods#
- Type
- Object with the following properties
- Home delivery
- Type
- Boolean
- Type
- Takeaway
- Type
- Boolean
- Type
- Eat in
- Type
- Boolean
- Type
- Home delivery
- Object with the following properties
- Validation
- Required
region entityRegion#
- Validation
- Required
City#
- Type
- String
- Validation
- Required
Address#
- Type
- String
- Validation
- Required
Coordinates#
- Type
- Coordinates
- Validation
- Required
Work hours#
- Type
- Object with the properties corresponding to each week day. Each day is an array that represents the working hours that day. Empty arrays mean the business does not work that day.
- Validation
- Required
Business website#
- Type
- String
- Validation
- Optional
Business phone#
- Type
- String
- Validation
- Required
Mechanism#
Save and create the business.
Notes#
info
- The thumbnail is not inherently a part of the gallery.
- The business type cannot be changed after creation.
- The business, by default, is not visible to clients after creation. For that, the business must be published.