Hauptübersicht


Anzeige aller buchbaren Tage in der Übersicht.

 

Aufruf

 
GET http://office.test.cj/reservations/available

  ["api_class"] => string(7) "Company"
  ["api_key"] => string(7) "XXXXXXXXXXXXXXXXX"
  ["api_id"] => int(XX)
  ["L"] => string(2) "de"

 

Antwort

 
  ["Persons"] => string(1) "6"
  ["Days"] => array(181) {
    ["2012-12-03"] => int(104)
    ["2012-12-04"] => int(104)
    ["2012-12-05"] => int(104)
    ["2012-12-06"] => int(104)
    ["2012-12-07"] => int(104)
    [...]
    ["2013-05-30"] => int(104)
    ["2013-05-31"] => int(104)
    ["2013-06-01"] => int(109)
  }
  ["Reservationsetting"] => array(2) {
    [0] => array(18) {
      ["id"] => string(3) "134"
      ["title"] => string(5) "Firma"
      ["description"] => string(0) ""
      ["type"] => string(9) "textfield"
      ["config"] => string(0) ""
      ["public"] => bool(true)
      ["required"] => bool(false)
    }
    [1] => array(18) {
      ["id"] => string(3) "133"
      ["title"] => string(23) "Kinderstuhl erwünscht?"
      ["description"] => string(0) ""
      ["type"] => string(8) "combobox"
      ["config"] => string(13) "["nein","ja"]"
      ["public"] => bool(true)
      ["required"] => bool(false)
    }
  }

 

Erläuterung

 
In "Days" befinden sich die verfügbaren Tage mit der maximal verfügbaren Anzahl an Plätzen. Bei "0" wäre der Tag geschlossen/ausgebucht. In "Reservationsetting" befinden sich benutzerdefinierte Zusatzfelder. In "Persons" befindet sich die maximal Anzahl an auswählbaren Gästen (wie vom Kunden eingestellt).

 

 

Einen Tag anzeigen


Einen speziellen Tag mit verfügbaren Buchungszeiten auf Basis einer ausgewählten Personenanzahl anzeigen.

 

Aufruf

 
GET http://office.test.cj/reservations/available

  ["api_class"] => string(7) "Company"
  ["api_key"] => string(7) "XXXXXXXXXXXXXXXXX"
  ["api_id"] => int(XX)
  ["L"] => string(2) "de"
  ["date"] => string(10) "2012-12-04"
  ["persons"] => string(1) "2"

 

Antwort

 
  ["Persons"] => string(1) "6"
  ["Times"] => array(3) {
    ["rooms"] => array(3) {
      [39] => array(4) {
        ["title"] => string(10) "Restaurant"
        ["times"] => array(22) {
          [1354611600] => array(16) {
            ["maxSeats"] => int(23)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(43)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(23)
            ["available"] => bool(true)
          }
          [1354613400] => array(16) {
            ["maxSeats"] => int(23)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(43)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(23)
            ["available"] => bool(true)
          }
          [...]
          }
        }
        ["rooms"] => array(1) {
          [39] => bool(true)
        }
        ["gaps"] => array(1) {
          [1354651200] => bool(true)
        }
      }
      [145] => array(4) {
        ["title"] => string(8) "Terrasse"
        ["times"] => array(22) {
          [1354611600] => array(16) {
            ["maxSeats"] => int(11)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(20)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(11)
            ["available"] => bool(true)
          }
          [1354613400] => array(16) {
            ["maxSeats"] => int(11)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(20)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(11)
            ["available"] => bool(true)
          }
          [...]
        }
        ["rooms"] => array(1) {
          [145] => bool(true)
        }
        ["gaps"] => array(1) {
          [1354651200] => bool(true)
        }
      }
      [495] => array(4) {
        ["title"] => string(10) "Biergarten"
        ["times"] => array(20) {
          [1354615200] => array(16) {
            ["maxSeats"] => int(70)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(78)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(70)
            ["available"] => bool(true)
          }
          [1354617000] => array(16) {
            ["maxSeats"] => int(70)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(78)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(70)
            ["available"] => bool(true)
          }
          [...]
        }
        ["rooms"] => array(1) {
          [495] => bool(true)
        }
        ["gaps"] => array(1) {
          [1354651200] => bool(true)
        }
      }
    }
    ["areas"] => array(2) {
      [0] => array(4) {
        ["title"] => string(12) "Hauptbereich"
        ["times"] => array(22) {
          [1354611600] => array(16) {
            ["maxSeats"] => int(34)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(63)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(34)
            ["available"] => bool(true)
          }
          [1354613400] => array(16) {
            ["maxSeats"] => int(34)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(63)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(34)
            ["available"] => bool(true)
          }
          [...]
        }
        ["rooms"] => array(2) {
          [39] => bool(true)
          [145] => bool(true)
        }
        ["gaps"] => array(1) {
          [1354651200] => bool(true)
        }
      }
      [495] => array(4) {
        ["title"] => string(10) "Biergarten"
        ["times"] => array(20) {
          [1354615200] => array(16) {
            ["maxSeats"] => int(70)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(78)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(70)
            ["available"] => bool(true)
          }
          [1354617000] => array(16) {
            ["maxSeats"] => int(70)
            ["avgVisit"] => string(2) "60"
            ["totalSeats"] => int(78)
            ["reservedOnTables"] => int(0)
            ["reservedOnTablesExternal"] => int(0)
            ["reservedNotPlaced"] => int(0)
            ["reservedExact"] => int(0)
            ["walkinOnTables"] => int(0)
            ["walkinOnTablesExternal"] => int(0)
            ["walkinNotPlaced"] => int(0)
            ["walkinExact"] => int(0)
            ["occupiedSeats"] => int(0)
            ["occupiedReservedSeats"] => int(0)
            ["occupiedWalkinSeats"] => int(0)
            ["freeSeats"] => int(70)
            ["available"] => bool(true)
          }
          [...]
        }
        ["rooms"] => array(1) {
          [495] => bool(true)
        }
        ["gaps"] => array(1) {
          [1354651200] => bool(true)
        }
      }
    }
    ["all"] => array(22) {
      [1354611600] => array(16) {
        ["maxSeats"] => int(34)
        ["avgVisit"] => string(2) "60"
        ["totalSeats"] => int(63)
        ["reservedOnTables"] => int(0)
        ["reservedOnTablesExternal"] => int(0)
        ["reservedNotPlaced"] => int(0)
        ["reservedExact"] => int(0)
        ["walkinOnTables"] => int(0)
        ["walkinOnTablesExternal"] => int(0)
        ["walkinNotPlaced"] => int(0)
        ["walkinExact"] => int(0)
        ["occupiedSeats"] => int(0)
        ["occupiedReservedSeats"] => int(0)
        ["occupiedWalkinSeats"] => int(0)
        ["freeSeats"] => int(34)
        ["available"] => bool(true)
      }
      [1354613400] => array(16) {
        ["maxSeats"] => int(34)
        ["avgVisit"] => string(2) "60"
        ["totalSeats"] => int(63)
        ["reservedOnTables"] => int(0)
        ["reservedOnTablesExternal"] => int(0)
        ["reservedNotPlaced"] => int(0)
        ["reservedExact"] => int(0)
        ["walkinOnTables"] => int(0)
        ["walkinOnTablesExternal"] => int(0)
        ["walkinNotPlaced"] => int(0)
        ["walkinExact"] => int(0)
        ["occupiedSeats"] => int(0)
        ["occupiedReservedSeats"] => int(0)
        ["occupiedWalkinSeats"] => int(0)
        ["freeSeats"] => int(34)
        ["available"] => bool(true)
      }
      [...]
    }
  }
  ["Date"] => array(1) {
    ["2012-12-04"] => string(26) "Dienstag, 4. Dezember 2012"
  }
  ["Reservationsetting"] => array(2) {
    [0] => array(18) {
      ["id"] => string(3) "134"
      ["title"] => string(5) "Firma"
      ["description"] => string(0) ""
      ["type"] => string(9) "textfield"
      ["config"] => string(0) ""
      ["public"] => bool(true)
      ["required"] => bool(false)
    }
    [1] => array(18) {
      ["id"] => string(3) "133"
      ["title"] => string(23) "Kinderstuhl erwünscht?"
      ["description"] => string(0) ""
      ["type"] => string(8) "combobox"
      ["config"] => string(13) "["nein","ja"]"
      ["public"] => bool(true)
      ["required"] => bool(false)
    }
  }
}

 

Erläuterung


In "Times" befinden sich für alle Bereiche getrennt die verfügbaren Zeiten mit freien/belegten Plätzen. Verfügbarkeit jeweils unter "available".

 

 

Reservierung anlegen


Eine Reservierung durchführen und in das System eintragen.

 

Aufruf


POST http://office.test.cj/reservations/insert

  ["api_class"] => string(7) "Company"
  ["api_key"] => string(7) "XXXXXXXXXXXXXXXXX"
  ["api_id"] => int(XX)
  ["L"] => string(2) "de"
  ["reservationDate"] => string(10) "2012-12-04"
  ["reservationPersons"] => string(1) "2"
  ["reservationTime"] => string(5) "12:30"
  ["reservationArea"] => string(2) "49"
  ["gender"] => string(1) "1"
  ["firstname"] => string(9) "Christian"
  ["lastname"] => string(8) "Jaentsch"
  ["email"] => string(23) "spam@gastronovi.de"
  ["telephone"] => string(17) " 0421 40 899 28-0"
  ["description"] => string(22) "Bitte Tisch am Fenster"
  ["Setting__Setting134"] => string(24) "gastronovi GmbH & Co. KG"
  ["Setting__Setting133"] => string(1) "2"
  ["time"] => string(5) "12:30"
  ["date"] => string(10) "2012-12-04"
  ["persons"] => string(1) "2"
  ["room_id"] => string(2) "39"
  ["external"] => bool(true)

 

Antwort

 
  ["result"] => array(1) {
    ["added"] => array(1) {
      ["Reservation"] => array(1) {
        [0] => array(31) {
          ["id"] => string(5) "81504"
          ["guid"] => NULL
          ["description"] => string(22) "Bitte Tisch am Fenster"
          ["arranger"] => NULL
          ["source"] => NULL
          ["company_id"] => string(2) "17"
          ["customer_id"] => string(2) "22"
          ["status_id"] => string(1) "1"
          ["room_id"] => string(2) "39"
          ["item_group_id"] => NULL
          ["time"] => string(10) "1354620600"
          ["persons"] => string(1) "2"
          ["settings"] => string(58) "{"Setting133":"2","Setting134":"gastronovi GmbH & Co. KG"}"
          ["code"] => string(6) "9CDFA3"
          ["visittime"] => NULL
          ["external"] => bool(true)
          ["tablestoset"] => NULL
          ["walkout"] => NULL
          ["created_by"] => NULL
          ["updated_by"] => NULL
          ["file_id"] => NULL
          ["created_at"] => string(10) "1354544904"
          ["updated_at"] => string(10) "1354544904"
          ["deleted_at"] => NULL
          ["version"] => string(1) "1"
          ["Company"] => array(39) {
            ["id"] => string(2) "17"
          }
          ["Reservationstatus"] => array(12) {
            ["id"] => string(1) "1"
            ["guid"] => string(0) ""
            ["title"] => string(10) "Vorläufig"
            ["description"] => string(63) "Ihr Reservierungswunsch ist eingegangen und wird noch geprüft."
            ["type"] => string(11) "provisional"
            ["created_by"] => string(1) "3"
            ["updated_by"] => string(1) "3"
            ["created_at"] => string(10) "1282840007"
            ["updated_at"] => string(10) "1345558432"
            ["deleted_at"] => NULL
            ["version"] => string(1) "1"
            ["Translation"] => array(1) {
              ["en"] => array(4) {
                ["id"] => string(1) "1"
                ["title"] => string(11) "Provisional"
                ["description"] => string(45) "Your request has arrived and will be checked."
                ["lang"] => string(2) "en"
              }
            }
          }
          ["ReservationTable"] => array(0) {
          }
          ["Room"] => array(14) {
            ["id"] => string(2) "39"
            ["guid"] => NULL
            ["company_id"] => string(2) "17"
            ["costunit_id"] => NULL
            ["title"] => string(10) "Restaurant"
            ["description"] => string(0) ""
            ["public"] => bool(true)
            ["created_by"] => string(1) "1"
            ["updated_by"] => string(3) "177"
            ["created_at"] => string(10) "1301648114"
            ["updated_at"] => string(10) "1334675783"
            ["deleted_at"] => NULL
            ["position"] => NULL
            ["version"] => string(1) "5"
          }
          ["Customer"] => array(25) {
            ["id"] => string(2) "22"
            ["guid"] => NULL
            ["number"] => string(7) "K-00003"
            ["title"] => string(0) ""
            ["firstname"] => string(9) "Christian"
            ["lastname"] => string(8) "Jaentsch"
            ["company"] => string(0) ""
            ["birthday"] => string(9) "433202400"
            ["description"] => string(0) ""
            ["address_id"] => string(3) "127"
            ["user_id"] => NULL
            ["company_id"] => string(2) "17"
            ["language_id"] => NULL
            ["verified"] => bool(true)
            ["optin"] => bool(false)
            ["oiauth"] => NULL
            ["created_by"] => string(1) "3"
            ["updated_by"] => string(1) "1"
            ["photo_id"] => string(5) "29780"
            ["created_at"] => string(10) "1293011681"
            ["updated_at"] => string(10) "1343053112"
            ["deleted_at"] => NULL
            ["version"] => string(2) "10"
            ["Photo"] => array(24) {
              ["url"] => string(63) "tmp/images/foto-christian-jaentsch_100x100_r_29780fa137401.jpeg"
              ["id"] => string(5) "29780"
              ["guid"] => NULL
              ["role_id"] => string(2) "48"
              ["folder_id"] => string(2) "21"
              ["class_id"] => NULL
              ["size"] => string(6) "223211"
              ["ctime"] => string(10) "1343053085"
              ["status"] => NULL
              ["title"] => string(23) "Foto Christian Jaentsch"
              ["description"] => string(0) ""
              ["keywords"] => string(0) ""
              ["name"] => string(53) "20120723-16_18_05-_133638-493931611307-3249729-o.jpeg"
              ["original"] => string(34) "133638_493931611307_3249729_o.jpeg"
              ["type"] => string(4) "jpeg"
              ["public"] => bool(true)
              ["created_by"] => string(1) "1"
              ["updated_by"] => string(1) "1"
              ["slug"] => string(35) "_133638-493931611307-3249729-o-jpeg"
              ["created_at"] => string(10) "1343053085"
              ["updated_at"] => string(10) "1343053108"
              ["deleted_at"] => NULL
              ["version"] => string(1) "2"
              ["Translation"] => array(1) {
                ["de"] => array(4) {
                  ["id"] => string(5) "29780"
                  ["title"] => string(23) "Foto Christian Jaentsch"
                  ["description"] => string(0) ""
                  ["lang"] => string(2) "de"
                }
              }
            }
            ["Address"] => array(30) {
              ["id"] => string(3) "127"
              ["guid"] => NULL
              ["country_id"] => string(1) "1"
              ["title"] => NULL
              ["description"] => NULL
              ["salutation"] => NULL
              ["gender"] => bool(true)
              ["person"] => string(18) "Christian Jaentsch"
              ["street"] => string(0) ""
              ["city"] => string(0) ""
              ["district"] => NULL
              ["zip"] => string(0) ""
              ["postbox"] => NULL
              ["telephone"] => string(9) "123456547"
              ["fax"] => string(0) ""
              ["mobile"] => string(0) ""
              ["email"] => string(23) "cjaentsch@gastronovi.de"
              ["newsletter"] => bool(false)
              ["url"] => NULL
              ["additional_url"] => NULL
              ["created_by"] => NULL
              ["updated_by"] => string(1) "1"
              ["picture_id"] => NULL
              ["created_at"] => string(10) "1284072759"
              ["updated_at"] => string(10) "1298548035"
              ["deleted_at"] => NULL
              ["latitude"] => NULL
              ["longitude"] => NULL
              ["version"] => string(1) "4"
              ["Country"] => array(13) {
                ["id"] => string(1) "1"
                ["guid"] => NULL
                ["title"] => string(11) "Deutschland"
                ["international"] => string(7) "Germany"
                ["short"] => string(1) "D"
                ["currency_id"] => string(1) "1"
                ["created_by"] => NULL
                ["updated_by"] => string(1) "3"
                ["created_at"] => string(10) "1227699914"
                ["updated_at"] => string(10) "1303317467"
                ["deleted_at"] => NULL
                ["version"] => string(1) "1"
                ["Translation"] => array(0) {
                }
              }
            }
          }
          ["Setting"] => array(2) {
            ["Setting133"] => string(1) "2"
            ["Setting134"] => string(24) "gastronovi GmbH & Co. KG"
          }
        }
      }
    }
  }