Skip to main content
Create Guest Booking
curl --request POST \
  --url http://localhost:3000/api/bookings/create-booking-guest \
  --header 'Content-Type: application/json' \
  --data '
{
  "artistUserId": "<string>",
  "guestEmail": "[email protected]",
  "guestFirstName": "<string>",
  "guestSessionId": "<string>",
  "bookingData": {
    "requestType": "Flash",
    "preferredLocationIds": [
      "<string>"
    ],
    "isCoverUp": true,
    "tattooPlacement": [
      "<string>"
    ],
    "selectedDates": [
      "2023-12-25"
    ],
    "desiredTimeOfDay": "Morning",
    "isOver18": true,
    "isPolicyAccepted": true,
    "flashIds": [
      "<string>"
    ],
    "description": "<string>",
    "color": "<string>",
    "length": "<string>",
    "width": "<string>",
    "otherTattooPlacement": "<string>",
    "tattooStyle": [
      "<string>"
    ],
    "images": [
      "<string>"
    ],
    "links": [
      "<string>"
    ],
    "additionalDateComments": "<string>",
    "medicalConditions": "<string>"
  },
  "guestLastName": "<string>"
}
'
{
  "success": true,
  "bookingId": "<string>",
  "clientCreated": true
}

Body

application/json
artistUserId
string
required

ID of the artist to book with

Minimum string length: 1
guestEmail
string<email>
required

Email address of the guest user

guestFirstName
string
required

First name of the guest user

Minimum string length: 1
guestSessionId
string
required

Unique session ID for the guest (used for temporary image storage)

Minimum string length: 1
bookingData
object
required

Booking request details including tattoo info, dates, and images. Can be either Flash or Custom booking type.

guestLastName
string

Last name of the guest user (optional)

Response

Guest booking created successfully

success
boolean
required

Whether the guest booking was created successfully

bookingId
string
required

ID of the created booking

clientCreated
boolean
required

Whether a new user account was created for the guest