Skip to main content

Create a reservation of a business

POST 

/api/v1/reservations

Create a reservation of a business

Request

Body

required

    data

    object

    type stringrequired

    Possible values: [reservations]

    attributes

    object

    name stringrequired
    date daterequired
    from int32required
    to int32required
    party_size int32required
    email string
    phone string
    phone_country_code string
    phone_country_prefix string
    guest_id string

    tables

    object[]

  • Array [

  • id stringrequired
    seats_taken int32required
  • ]

  • comment string

    relationships

    object

    business

    object

    data

    object

    type stringrequired

    Possible values: [business]

    id stringrequired

    Related Business ID

    user

    object

    data

    object

    type string

    Possible values: [user]

    id string

    Related User ID

Responses

Create a reservation of a business

Schema

    data

    object

    id stringrequired
    type stringrequired

    Possible values: [reservations]

    links

    object

    required

    self stringrequired

    attributes

    object

    required

    additional-info stringnullablerequired
    comment stringnullablerequired
    date stringrequired
    email stringnullablerequired
    from numberrequired
    name stringrequired
    other-rejection-reason stringnullablerequired
    party-size numberrequired
    phone stringnullablerequired
    phone-country-code stringnullablerequired
    phone-country-prefix stringnullablerequired
    reject-reason stringnullablerequired
    state string
    status string

    table

    object

    nullable

    required

    id numberrequired
    business_id stringrequired
    floor_plan_id string
    number stringrequired
    number_of_seats numberrequired
    uuid stringrequired
    shape stringrequired
    rotation numberrequired
    position_x numberrequired
    position_y numberrequired
    guest-id string
    to numberrequired
    created-at stringrequired

    relationships

    object

    required

    bookings

    object

    required

    data

    object[]

    required

  • Array [

  • type stringrequired

    Possible values: [bookings]

    id stringrequired
  • ]

  • tables

    object

    required

    links

    object

    required

    self stringrequired
    related stringrequired

    business

    object

    required

    links

    object

    required

    self stringrequired
    related stringrequired

    user

    object

    required

    links

    object

    required

    self stringrequired
    related stringrequired

    meta

    object

    total-count numberrequired
    total-pages numberrequired
Loading...