Skip to main content

Create a business

POST 

https://api.staging.powerapi.com/api/v1/businesses

Create a business record for current user

Request​

Body

required

    data

    object

    type stringrequired

    Possible values: [businesses]

    attributes

    object

    access_group_id string

    Allows a group manager to assign newly created business to one of their access groups

    average_delivery_time int32
    bill_url string
    bio string
    breakfast_service
    brunch_service
    cafe_service
    can_pay_with_cards
    can_pay_with_cash
    can_pay_with_mobile
    city stringrequired
    country_code stringrequired
    currency string
    delivery_charge_ref string
    delivery_price_participation_ratio double
    delivery_service_type_ref string
    delivery_url string
    dinner_service
    email stringrequired
    facebook string
    youtube string
    geolocation_lat string
    geolocation_lng string
    groups_list string

    Slugs of groups delimited by comma

    has_catering
    has_join_the_queue
    has_private_events
    has_reservations
    instagram string
    live_info string
    logo binary
    lunch_service
    max_reservation_size int32
    min_amount_for_delivery_cents int32
    min_time_before_reservation int32

    Minimum time before creating a reservation expressed in seconds

    name stringrequired
    online_booking_url string
    owner_role string
    phone string
    phone_country_code string
    phone_country_prefix string
    post_code stringrequired
    price_per_person string
    region_code string
    secret_code string
    snack_service
    state string
    street stringrequired
    stripe_currency string
    stripe_payment_ref string
    eat_in_ref string
    tagline string
    takeaway_service_type_ref string
    takeaway_url string
    time_of_stay int32

    Default time of staying in restaurant expressed in seconds

    time_slots int32

    Time specifying available hours for booking expressed in seconds

    timezone string
    unit_name string

    Name of the unit displayed on the floorplan, if not passed defaults to "Table"

    unit_style string

    Possible values: [Style 1, Style 2]

    Style of the unit displayed on the floorplan

    visible_in_lefood
    website string

Responses​

Create a business record for current user

Schema

    any

curl -L 'https://api.staging.powerapi.com/api/v1/businesses' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "businesses",
"attributes": {
"access_group_id": "string",
"average_delivery_time": 0,
"bill_url": "string",
"bio": "string",
"breakfast_service": {},
"brunch_service": {},
"cafe_service": {},
"can_pay_with_cards": {},
"can_pay_with_cash": {},
"can_pay_with_mobile": {},
"city": "string",
"country_code": "string",
"currency": "string",
"delivery_charge_ref": "string",
"delivery_price_participation_ratio": 0,
"delivery_service_type_ref": "string",
"delivery_url": "string",
"dinner_service": {},
"email": "string",
"facebook": "string",
"youtube": "string",
"geolocation_lat": "string",
"geolocation_lng": "string",
"groups_list": "string",
"has_catering": {},
"has_join_the_queue": {},
"has_private_events": {},
"has_reservations": {},
"instagram": "string",
"live_info": "string",
"logo": "string",
"lunch_service": {},
"max_reservation_size": 0,
"min_amount_for_delivery_cents": 0,
"min_time_before_reservation": 0,
"name": "string",
"online_booking_url": "string",
"owner_role": "string",
"phone": "string",
"phone_country_code": "string",
"phone_country_prefix": "string",
"post_code": "string",
"price_per_person": "string",
"region_code": "string",
"secret_code": "string",
"snack_service": {},
"state": "string",
"street": "string",
"stripe_currency": "string",
"stripe_payment_ref": "string",
"eat_in_ref": "string",
"tagline": "string",
"takeaway_service_type_ref": "string",
"takeaway_url": "string",
"time_of_stay": 0,
"time_slots": 0,
"timezone": "string",
"unit_name": "string",
"unit_style": "Style 1",
"visible_in_lefood": {},
"website": "string"
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Body required
{
  "data": {
    "type": "businesses",
    "attributes": {
      "access_group_id": "string",
      "average_delivery_time": 0,
      "bill_url": "string",
      "bio": "string",
      "breakfast_service": {},
      "brunch_service": {},
      "cafe_service": {},
      "can_pay_with_cards": {},
      "can_pay_with_cash": {},
      "can_pay_with_mobile": {},
      "city": "string",
      "country_code": "string",
      "currency": "string",
      "delivery_charge_ref": "string",
      "delivery_price_participation_ratio": 0,
      "delivery_service_type_ref": "string",
      "delivery_url": "string",
      "dinner_service": {},
      "email": "string",
      "facebook": "string",
      "youtube": "string",
      "geolocation_lat": "string",
      "geolocation_lng": "string",
      "groups_list": "string",
      "has_catering": {},
      "has_join_the_queue": {},
      "has_private_events": {},
      "has_reservations": {},
      "instagram": "string",
      "live_info": "string",
      "logo": "string",
      "lunch_service": {},
      "max_reservation_size": 0,
      "min_amount_for_delivery_cents": 0,
      "min_time_before_reservation": 0,
      "name": "string",
      "online_booking_url": "string",
      "owner_role": "string",
      "phone": "string",
      "phone_country_code": "string",
      "phone_country_prefix": "string",
      "post_code": "string",
      "price_per_person": "string",
      "region_code": "string",
      "secret_code": "string",
      "snack_service": {},
      "state": "string",
      "street": "string",
      "stripe_currency": "string",
      "stripe_payment_ref": "string",
      "eat_in_ref": "string",
      "tagline": "string",
      "takeaway_service_type_ref": "string",
      "takeaway_url": "string",
      "time_of_stay": 0,
      "time_slots": 0,
      "timezone": "string",
      "unit_name": "string",
      "unit_style": "Style 1",
      "visible_in_lefood": {},
      "website": "string"
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!