Data format for export
The owner can download all of the restaurant's data at any time under Account in the admin. Here we describe exactly what the file contains, so that the data can be moved to another system (the Data Act, EU 2023/2854, Article 26).
The file
A ZIP file with one JSON file and one CSV file per data set, manifest.json (format version, time zone, row count and SHA-256 per file), README.txt and the folder images/ with the images in the largest size. Times are in UTC (ISO 8601), prices in minor units. The CSV files are UTF-8 with comma as separator; JSON fields are written as JSON text.
Format version 1.
What is never included
Passwords, two-step secrets, passkeys, logins and tokens (including bookings' confirmation links), the values of API keys, phones' push addresses, domains' verification keys and visitor ids in the statistics.
How to get the file
Log in as the owner, go to Account and press Create export. You get an e-mail when the file is ready, and it is kept for 7 days. Questions about export or switching provider: support@gotatable.com.
The restaurant
The restaurant's details, the customer company, package and booking page.
File: restaurant.json, restaurant.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
name |
Name. |
slug |
Short name in addresses, e.g. /boka/{slug}. |
timezone |
Time zone (IANA), e.g. Europe/Stockholm. |
contact_email |
Contact e-mail. |
phone |
Phone. |
address |
Address. |
description |
Description. |
logo_url |
Address of the logo (the file is in images/). |
cover_url |
Address of the cover image (the file is in images/). |
status |
Account status. |
package |
Package. |
addon_managers |
Number of add-ons for more users. |
addon_bookings |
Number of booking add-ons. |
addon_api |
The API add-on (true/false). |
addon_menu |
The menu add-on (true/false). |
trial_ends_at |
When the trial ends. |
paid_from |
Paid from. |
paid_until |
Paid until. |
payment_state |
Payment status. |
next_charge_at |
Next charge. |
monthly_price |
Price per month. |
company_name |
The company's name. |
company_registration |
Company registration number. |
company_vat |
VAT number. |
company_country |
The company's country (ISO 3166-1, two letters). |
geo_lat |
The venue's latitude (for clocking in). |
geo_lng |
The venue's longitude (for clocking in). |
geo_radius_m |
Radius in metres counted as inside the venue. |
sms_monthly_limit |
Own cap on text messages per month. |
page_published |
The booking page is published. |
page_show_hours |
Opening hours are shown on the booking page. |
page_heading |
Heading on the booking page. |
page_menu_url |
Link to the menu. |
page_instagram_url |
Link to Instagram. |
page_facebook_url |
Link to Facebook. |
page_website_url |
Link to own website. |
staff_in_app |
Staff are shown in the iPhone app. |
menu_reminders |
Menu reminders are on. |
stripe_id |
The customer's id at Stripe. |
pm_type |
Type of card. |
pm_last_four |
The card's last four digits. |
payment_failed_at |
When a card charge failed (empty when all is paid). |
suspended_for_payment_at |
When the account was suspended for an unpaid fee. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
Booking settings
The rules for how guests can book.
File: booking_settings.json, booking_settings.csv
| Field | Meaning |
|---|---|
restaurant_id |
The restaurant's id. |
duration_minutes |
How long a booking lasts, in minutes. |
slot_minutes |
Minutes between bookable times. |
max_party |
Largest party. |
max_days_ahead |
How many days ahead one can book. |
min_hours_ahead |
At least this many hours ahead. |
auto_confirm |
Bookings are confirmed at once. |
max_guests_per_slot |
Most guests per time slot. |
contact_requirement |
Which contact details the guest must give. |
require_email_verification |
The guest confirms by e-mail. |
verify_hours |
Hours the guest has to confirm. |
sms_enabled |
Text messages are on. |
sms_confirmation |
Text message on booking. |
sms_reminder |
Text message reminder. |
sms_reminder_hours |
Hours before the visit the reminder is sent. |
sms_sender |
Sender name in text messages. |
sms_extra_line |
Extra line in text messages. |
show_duration_ack |
The guest acknowledges the seating length. |
show_marketing_optin |
The marketing opt-in box is shown. |
marketing_terms_url |
Link to marketing terms. |
terms_text |
The restaurant's own booking terms. |
allow_remember |
The guest can be remembered in the browser. |
daypart_morning_end |
When the morning ends. |
daypart_day_end |
When the day ends. |
statuses |
Booking statuses in use (JSON). |
hold_minutes |
Minutes a table is held after the booked time. |
allow_manual_overlap |
Staff may double-book. |
public_table_mode |
How tables are chosen for online bookings. |
public_max_percent |
Largest share of seats booked online. |
public_max_guests |
Most guests booked online. |
guest_data_months |
Months guests' details are kept after the visit. |
Opening hours
One row per opening period and weekday.
File: opening_hours.json, opening_hours.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
weekday |
Weekday, 1 = Monday … 7 = Sunday. |
open_time |
Opens (local time). |
close_time |
Closes (local time). |
Closed dates
Single days when the restaurant is closed.
File: closed_dates.json, closed_dates.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
closed_on |
Date. |
note |
Note. |
Exceptions
Periods with other rules, e.g. holidays.
File: booking_overrides.json, booking_overrides.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
from_date |
From. |
to_date |
To. |
label |
Text shown. |
closed |
Closed for the whole period. |
duration_minutes |
How long a booking lasts, in minutes. |
slot_minutes |
Minutes between bookable times. |
max_party |
Largest party. |
max_guests_per_slot |
Most guests per time slot. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
Floor areas
Rooms or areas of the floor plan.
File: dining_areas.json, dining_areas.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
name |
Name. |
sort |
Order. |
width |
Width. |
height |
Height. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
Tables
The tables, archived ones too.
File: dining_tables.json, dining_tables.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
area_id |
Id of the floor area (dining_areas). |
name |
Name. |
seats |
Number of seats. |
min_party |
Smallest party. |
max_party |
Largest party. |
zone |
Zone. |
active |
The table is in use. |
public_bookable |
Can be booked online. |
pos_x |
Horizontal position on the floor area. |
pos_y |
Vertical position on the floor area. |
rotation |
Rotation in degrees. |
shape |
Shape. |
width |
Width. |
height |
Height. |
chair_angles |
Placement of the chairs (JSON). |
created_at |
When the row was created. |
deleted_at |
When the row was archived (empty if active). |
Table groups
Tables that can be booked together.
File: table_groups.json, table_groups.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
area_id |
Id of the floor area (dining_areas). |
name |
Name. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
Tables in groups
Which tables belong to each group.
File: table_group_members.json, table_group_members.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
group_id |
The group's id (table_groups). |
table_id |
The table's id (dining_tables). |
sort |
Order. |
created_at |
When the row was created. |
Table links
Tables that can be joined in pairs.
File: table_links.json, table_links.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
table_a |
Id of the first table. |
table_b |
Id of the second table. |
created_at |
When the row was created. |
Fixtures
Walls, bar and other things drawn on the floor plan.
File: floor_fixtures.json, floor_fixtures.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
area_id |
Id of the floor area (dining_areas). |
kind |
Kind. |
label |
Text shown. |
pos_x |
Horizontal position on the floor area. |
pos_y |
Vertical position on the floor area. |
width |
Width. |
height |
Height. |
rotation |
Rotation in degrees. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
Bookings
All bookings with guests' details. Old guest details are removed according to the restaurant's setting.
File: bookings.json, bookings.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
table_id |
Id of the main table (all tables in booking_tables). |
guest_name |
The guest's name. |
guest_email |
The guest's e-mail. |
guest_phone |
The guest's phone. |
guest_locale |
The guest's language. |
party_size |
Number of guests. |
starts_at |
Starts. |
ends_at |
Ends. |
status |
Booking status. |
notes |
Notes. |
source |
Where the booking came from (web, staff, API …). |
seen_at |
When staff saw it. |
confirmed_at |
When the guest confirmed. |
reminder_sent_at |
When the reminder was sent. |
arrived_at |
When the guest arrived. |
locked |
The table is locked. |
created_at |
When the row was created. |
Booking tables
Every table a booking has.
File: booking_tables.json, booking_tables.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
booking_id |
The booking's id (bookings). |
table_id |
The table's id (dining_tables). |
created_at |
When the row was created. |
Change requests
Changes staff asked for and that were approved or declined.
File: booking_changes.json, booking_changes.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
booking_id |
The booking's id (bookings). |
kind |
Kind. |
status |
Status. |
before_data |
Before the change (JSON). |
after_data |
After the change (JSON). |
note |
Note. |
review_note |
Comment from the reviewer. |
requested_by |
Who asked for the change (user id). |
requested_name |
Name of the person who asked. |
reviewed_by |
Who reviewed (user id). |
reviewed_at |
When it was reviewed. |
created_at |
When the row was created. |
Messages to guests
E-mails and text messages sent to guests.
File: guest_messages.json, guest_messages.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
booking_id |
The booking's id (bookings). |
channel |
mail or sms. |
kind |
Kind. |
status |
Status. |
target |
Address or number. |
error |
Error, if it was not delivered. |
created_at |
When the row was created. |
Staff
Everyone in the restaurant with permissions, archived ones too.
File: staff.json, staff.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
user_id |
The user's id in Got a Table. |
email |
E-mail. |
display_name |
Display name. |
status |
Status. |
permissions |
Permissions (JSON list). |
requires_approval |
Changes need approval. |
approver_member_id |
Who approves (staff id). |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
deleted_at |
When the row was archived (empty if active). |
Shifts
Regular shifts per weekday.
File: staff_shifts.json, staff_shifts.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
member_id |
The staff member's id (staff). |
weekday |
Weekday, 1 = Monday … 7 = Sunday. |
start_time |
Start time (local time). |
end_time |
End time (local time). |
note |
Note. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
Shift exceptions
Changed shifts and days off.
File: staff_shift_exceptions.json, staff_shift_exceptions.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
member_id |
The staff member's id (staff). |
on_date |
Date. |
off_duty |
Off the whole day. |
start_time |
Start time (local time). |
end_time |
End time (local time). |
note |
Note. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
Attendance
Clock-ins and clock-outs. Only whether the person was at the venue is kept, never where.
File: staff_attendance.json, staff_attendance.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
member_id |
The staff member's id (staff). |
on_date |
Date. |
clock_in |
Clocked in. |
clock_out |
Clocked out. |
inside_venue |
At the venue when clocking in (true/false/empty = unknown). |
inside_venue_out |
At the venue when clocking out. |
note |
Note. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
The log
Everything logged in the restaurant.
File: event_log.json, event_log.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
user_id |
The user's id in Got a Table. |
kind |
Kind. |
message |
What happened. |
meta |
Details (JSON). |
created_at |
When the row was created. |
Booking widget look
Colours, texts and look of the booking widget.
File: widget_settings.json, widget_settings.csv
| Field | Meaning |
|---|---|
restaurant_id |
The restaurant's id. |
primary_color |
Main colour. |
background_color |
Background colour. |
text_color |
Text colour. |
radius_px |
Rounding in pixels. |
heading |
Heading. |
button_label |
Button text. |
language |
Language. |
default_locale |
Default language. |
show_language_picker |
The language picker is shown. |
layout |
Variant. |
size |
Size. |
ab_enabled |
A/B test is on. |
ab_variants |
Variants in the A/B test (JSON). |
font |
Font. |
custom_css |
Custom CSS. |
embed_mode |
How the widget is embedded. |
Booking widget statistics
Views and bookings per variant, without visitor ids.
File: widget_events.json, widget_events.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
variant |
Variant. |
event |
Event. |
created_at |
When the row was created. |
QR codes
The QR codes and where they lead.
File: qr_codes.json, qr_codes.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
code |
The code in /q/{code}. |
name |
Name. |
target |
Where the code leads. |
menu_id |
The menu's id (menus). |
url |
Own address, if the target is a website. |
scans |
Number of scans. |
last_scanned_at |
Last scan. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
deleted_at |
When the row was archived (empty if active). |
Own domains
The restaurant's own addresses for the booking page.
File: domains.json, domains.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
hostname |
The domain. |
verified_at |
When it was verified. |
unconfirmed_at |
When it stopped verifying. |
last_checked_at |
Last check. |
last_error |
Last error. |
certificate_at |
When the certificate was issued. |
certificate_attempted_at |
Last certificate attempt. |
certificate_error |
Certificate error. |
created_at |
When the row was created. |
updated_at |
When the row was last changed. |
API keys
The keys without the value: only name and start.
File: api_keys.json, api_keys.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
name |
Name. |
prefix |
Start of the key, e.g. gt_ab12cd34. |
last_used_at |
Last used. |
revoked_at |
When it was revoked. |
created_at |
When the row was created. |
Accepted terms
The proof that the terms were accepted.
File: terms_acceptances.json, terms_acceptances.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
legal_document_id |
Id of the terms version. |
user_id |
The user's id in Got a Table. |
restaurant_id |
The restaurant's id. |
accepted_at |
When they were accepted. |
method |
Where they were accepted. |
user_name |
Name of the person who accepted. |
user_email |
E-mail of the person who accepted. |
restaurant_name |
The restaurant's name at the time. |
company_name |
The company's name at the time. |
company_registration |
Registration number at the time. |
company_vat |
VAT number at the time. |
company_country |
Country at the time. |
confirmed_business |
Accepted on behalf of the company and was authorised. |
ip |
IP address. |
user_agent |
Browser. |
ended_at |
When the agreement ended. |
Overages
Months over the package's limit.
File: package_overages.json, package_overages.csv
| Field | Meaning |
|---|---|
id |
Unique id (UUID). |
restaurant_id |
The restaurant's id. |
period |
Month (YYYY-MM). |
bookings |
Number of bookings. |
booking_limit |
The limit. |
addons |
Number of add-ons needed. |
price_per_addon |
Price per add-on. |
invoiced_at |
When it was invoiced. |
created_at |
When the row was created. |