Book a trial session

Book a free slot. Might return errorCode CONFLICT if configured resources are overbooked for this slot. In this case its advised to reload free slots and let the user select a different slot. If you get a validation error make sure all required fields are filled. Required fields are returned by the /config/validation endpoint.

Request
Request Body schema: application/json
required
studioId
required
integer <int64>
startDateTime
required
string <date-time>
required
object (CommonTrialSessionLeadCustomerDto)
note
string [ 0 .. 300 ] characters
referrerId
integer <int64>
participants
integer <int32>
sourceCampaignId
integer <int64>
referralCode
string [ 0 .. 300 ] characters
Responses
200

OK

400

Bad Request

403

Forbidden

404

Not Found

409

Conflict

500

Internal Server Error

post/connect/v1/trialsession/book
Request samples
application/json
{
  • "studioId": 1,
  • "startDateTime": "2019-04-15T07:00:00Z",
  • "leadCustomer": {
    },
  • "note": "become fit",
  • "referrerId": 10,
  • "participants": 2,
  • "sourceCampaignId": 2,
  • "referralCode": "ABCXYZ"
}