Create Reservation
Creates a reservation at a store. Automatically discovers the reservation provider configured for the store. For OpenTable, a slotToken from the availability response is required.
OpenAPI definition
{
"openapi": "3.1.0",
"info": {
"title": "Fishbowl Public API",
"version": "1.0",
"description": "The Fishbowl Public API provides programmatic access to manage guests, loyalty programs, subscriptions, tags, and more within the Fishbowl GRM platform."
},
"servers": [
{
"url": "https://api.fishbowl.com"
}
],
"components": {
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key",
"description": "Your Fishbowl API key for authentication and rate limiting."
}
},
"schemas": {
"ApiResponse": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"data": {},
"errors": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true
},
"error_code": {
"type": "integer",
"nullable": true
},
"total": {
"type": "integer",
"nullable": true
},
"cache_hit": {
"type": "boolean"
}
}
},
"ReservationCreateRequest": {
"type": "object",
"required": [
"dateTime",
"firstName",
"lastName",
"emailAddress",
"phone"
],
"properties": {
"partySize": {
"type": "integer",
"default": 2
},
"dateTime": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 datetime."
},
"slotToken": {
"type": "string",
"description": "Token from availability response (required for OpenTable)."
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"emailAddress": {
"type": "string",
"format": "email"
},
"phone": {
"type": "string"
},
"countryCode": {
"type": "string",
"default": "US"
},
"phoneType": {
"type": "string",
"default": "mobile"
},
"specialRequest": {
"type": "string"
},
"referralCode": {
"type": "string"
},
"restaurantEmailMarketingOptIn": {
"type": "boolean",
"default": false
},
"smsNotificationsOptIn": {
"type": "boolean",
"default": false
},
"influencerCode": {
"type": "string"
},
"spend": {
"type": "number"
}
}
}
}
},
"security": [
{
"ApiKeyAuth": []
}
],
"tags": [
{
"name": "Booking API",
"description": "Manage reservations and check availability."
}
],
"paths": {
"/api/public/reservation/{storeUuid}": {
"post": {
"summary": "Create Reservation",
"description": "Creates a reservation at a store. Automatically discovers the reservation provider configured for the store. For OpenTable, a slotToken from the availability response is required.",
"operationId": "createReservation",
"tags": [
"Booking API"
],
"parameters": [
{
"name": "storeUuid",
"in": "path",
"required": true,
"description": "Store UUID.",
"schema": {
"type": "string",
"format": "uuid"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ReservationCreateRequest"
}
}
}
},
"responses": {
"200": {
"description": "Reservation details from provider.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiResponse"
}
}
}
},
"400": {
"description": "Validation error or provider error."
}
}
}
}
}
}