Skip to main content
POST
/
bookings
/
create-for-client
Create Booking for Client
curl --request POST \
  --url http://localhost:3000/api/bookings/create-for-client \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientEmail": "[email protected]",
  "clientFirstName": "<string>",
  "notes": "<string>",
  "includeSession": true,
  "clientLastName": "<string>",
  "sessionType": "CONSULTATION",
  "sessionDate": 123,
  "sessionStartTime": 123,
  "sessionEndTime": 123,
  "sessionLocation": {
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "latitude": 123,
    "longitude": 123
  },
  "sessionPrice": "<string>",
  "sessionDepositFee": "<string>"
}
'
{
  "success": true,
  "bookingId": "<string>",
  "clientCreated": true
}

Body

application/json
clientEmail
string<email>
required

Email address of the client

clientFirstName
string
required

First name of the client

Minimum string length: 1
notes
string
required

Description or notes for the booking (optional)

includeSession
boolean
required

Whether to include a session with the booking

clientLastName
string

Last name of the client (optional)

sessionType
enum<string>

Type of session (required if includeSession is true)

Available options:
CONSULTATION,
TATTOO
sessionDate
number

Timestamp for the session date (required if includeSession is true)

sessionStartTime
number

Timestamp for session start time (required if includeSession is true)

sessionEndTime
number

Timestamp for session end time (required if includeSession is true)

sessionLocation
object

Location for the session (optional, defaults to artist's primary location)

sessionPrice
string

Price for the session (optional)

sessionDepositFee
string

Deposit fee for the session (optional)

Response

Booking created successfully

success
boolean
required

Whether the booking was created successfully

bookingId
string
required

ID of the created booking

clientCreated
boolean
required

Whether a new client account was created