Skip to main content
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>",
  "includeSession": true,
  "clientLastName": "<string>",
  "clientPhoneNumber": {
    "countryCode": "<string>",
    "number": "<string>"
  },
  "notes": "<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
includeSession
boolean
required

Whether to include a session with the booking

clientLastName
string

Last name of the client (optional)

clientPhoneNumber
object

Phone number of the client (optional)

notes
string

Description or notes for the booking (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, must be less than sessionPrice)

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